-
Notifications
You must be signed in to change notification settings - Fork 1.3k
machine: add machine list&machine modify
#6602
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
Conversation
1. add new command `dvc machine list` 2. complete `dvc machine modify` 3. add new unit tests for this two commands to ensure the call. 4. add functionality tests for two commands
|
documentation is still in progress. |
|
@karajan1001 tests are failing in windows |
Co-authored-by: Peter Rowlands (변기호) <peter@pmrowla.com>
Co-authored-by: Peter Rowlands (변기호) <peter@pmrowla.com>
1. capitalize global variables. 2. remove precision restriction. 3. solve windows path seperator problem.
|
This is a good start and works for now while the feature is in active development. A couple things we will want to clean up eventually before a formal release: Figure out how the best way to handle terraform/TPI errors - right now if you misconfigure something (i.e. your combination of options are rejected by AWS/Azure) you get a real ugly mess: The existing But since there's no real ideas on what the output should look like yet, we can leave it as-is for now. I'm not really sure if we want to show the detailed options in |
| cli_args = parse_args(["machine", "list", "foo"]) | ||
| assert cli_args.func == CmdMachineList | ||
| cmd = cli_args.func(cli_args) | ||
| m = mocker.patch.object(ui, "write", autospec=True) |
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.
why not use capsys?
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.
No particular reason, just used to use mocker in a unit test and capsys in a functional one.
|
I think the output of |
|
@karajan1001 Another minor UI tweak is that we need to make clear that the positional arguments are optional and all machines will be shown by default. |
fix #6480
dvc machine listdvc machine modify❗ I have followed the Contributing to DVC checklist.
📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. 🙏