-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLOUDP-202283: print warning for unsupported distros #2327
Conversation
case "darwin": | ||
// MacOS Intel and M1 are supported | ||
return true | ||
case "windows": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should avoid that we use sysinfo
for windows machines, but there is a test failure I'm investigating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated with a more known library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Local deployment tests are failing. It seems that is printing OS not supported for rhel
deployments_local_test.go:118:
[2023/10/03 13:23:15.981] Error Trace: /data/mci/ba99dbf9685aecc06f0fc28d64e7772e/src/github.com/mongodb/mongodb-atlas-cli/test/e2e/atlas/deployments_local_test.go:118
[2023/10/03 13:23:15.981] Error: Not equal:
[2023/10/03 13:23:15.981] expected: "NAME TYPE MDB VER STATE\ntest LOCAL 7.0.1 IDLE\n"
[2023/10/03 13:23:15.981] actual : "Local deployments are not supported on this OS, to see local deployments requirements visit https://www.mongodb.com/docs/atlas/cli/stable/atlas-cli-deploy-local/.\nNAME TYPE MDB VER STATE\ntest LOCAL 7.0.1 IDLE\n"
[2023/10/03 13
|
||
func (opts *DeploymentOpts) LocalDeploymentPreRun(ctx context.Context) error { | ||
if !localDeploymentSupportedByOs() { | ||
_, _ = log.Warningln("Local deployments are not supported on this OS, to see local deployments requirements visit https://www.mongodb.com/docs/atlas/cli/stable/atlas-cli-deploy-local/.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mongodb/docs-cloud-team asking for review here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
func (opts *DeploymentOpts) LocalDeploymentPreRun(ctx context.Context) error { | ||
if !localDeploymentSupportedByOs() { | ||
_, _ = log.Warningln("Local deployments are not supported on this OS, to see local deployments requirements visit https://www.mongodb.com/docs/atlas/cli/stable/atlas-cli-deploy-local/.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Proposed changes
Jira ticket: CLOUDP-202283
Notes:
Ubuntu test
Checklist
make fmt
and formatted my codeFurther comments