-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
run/repro/stage add
: regroup options/flags
#7524
Conversation
Thanks for making this PR @jorgeorpinel! Besides the comment above, it looks like there are still some other arguments that don't match iterative/dvc.org#3345. Could you take a look? I'm also happy to take this one over if you want. |
Sure, I'll take a look. |
@dberenbaum UPDATE: I'm actually trying to focus on other things. I don't mean to abandon this: I still plan to address the feedback ASAP. But feel free to take it over as well. I'll resolve the current merge conflict for now... |
32c8e24
to
98e32f0
Compare
98e32f0
to
98df367
Compare
Answer to #7524 (comment):
Do we mean the options after the
We can update it here first and then make a follow-up to docs PR (maybe necessary anyway if the usage: dvc exp run [-h] [-q | -v] [-f]
{ repro options ... } [-n <name>] # adds --name
[-S [<filename>:]<params_list>] # on-the-fly params
[--queue] [--run-all] [-j <number>] [--temp] # parallel
[-r <experiment_rev>] [--reset] # for checkpoints
[targets [targets ...]] |
I can't find any missing arguments in docs other than the ones surpassed in code @dberenbaum . |
"--single-stage", | ||
action="store_true", | ||
default=False, | ||
help="Only create dvc.yaml without actually running it.", | ||
help=argparse.SUPPRESS, | ||
) | ||
_add_common_args(run_parser) |
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.
BTW shouldn't -n|--name
be added in _add_common_args()
? It's a common arg both in stage add
and run
. Cc @karajan1001
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.
Also (π
πΌ) should add_arguments()
in repro
/exp run
use a similar private method name instead? _add_common_args()
as well, even
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.
I think we can
BTW shouldn't
-n|--name
be added in_add_common_args()
? It's a common arg both instage add
andrun
. Cc @karajan1001
I think we can do that.
Also (π πΌ) should add_arguments() in repro/exp run use a similar private method name instead? _add_common_args() as well, even
I'm not quite understand here why this method to be a private method as it is used outside its file's scope.
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.
BTW shouldn't
-n|--name
be added in_add_common_args()
? It's a common arg both instage add
andrun
. Cc @karajan1001
Resolved.
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.
Never mind, rolling this change back. It breaks a bunch of tests. I think they were intentionally left separate to support some behavior that was deprecated but not actually removed (like dvc run --single-stage
), where --name
was not required in dvc run
. Let's stick with the UI changes.
98df367
to
963bd14
Compare
963bd14
to
481afdd
Compare
@jorgeorpinel @karajan1001 Could you please review the latest updates? |
481afdd
to
9fd16bd
Compare
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.
Well, run
is not exactly like in docs because of the way it's coded but I think we agreed to let that go. Everything else does match iterative/dvc.org#3345 so please merge!
Thanks, @jorgeorpinel! Based on the comments in this PR, we updated the docs in iterative/dvc.org#3435, and they should all match now AFAIK. |
Matching iterative/dvc.org#3345
β 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. π