-
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
status: support outputs as targets [qa] #4191
Comments
@jorgeorpinel Non -c status just doesn't support granularity right now. |
Closing in favor of #2180 |
To clarify:
It does support files as targets, but not files(or subdirs) in tracked directories (this is what -c/push/pull/etc support). |
@efiop so is this a bug? 👇 λ ls foo*
foo foo.dvc
λ dvc status foo
ERROR: failed to obtain data status - 'dvc.yaml' does not exist. |
@jorgeorpinel Yes, looks like a bug. Reopening. Thanks! |
adding tracked files/dirs and removing -R rel iterative/dvc#4191
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Another related question: |
@jorgeorpinel |
OK thanks. So
|
@jorgeorpinel tracked files and granularity is not the same thing. When we were talking about push/pull we were talking about being able to pull specific file (or subdir) in a tracked dataset ( |
Got it. So I think we need to clarify when file/dir targets support granularity and when they don't, after all. I'll add a note in all the sync-related ones (in #1384) both in the description and in Specific target examples. |
@jorgeorpinel , @efiop Targets in So the solution is either to support outputs as targets or to improve the message. |
@karajan1001 Adjusted the labels, thanks! 🙂 Since 1.0 we've changed the defaults, hence why it looks for |
@efiop Lines 28 to 33 in 32b5b33
While in a cloud status mode we are using Lines 378 to 382 in 32b5b33
Lines 340 to 352 in 32b5b33
Lines 79 to 89 in 32b5b33
Lines 40 to 50 in 32b5b33
And if the one stage and one output have the same name, the stage would win. This will prevent the users from selecting those outputs which have the same name with stages. (Before version 1.0, stages name will always have a |
Lines 302 to 304 in 32b5b33
Wow, had been considered before. stage is preferred to output
|
@karajan1001, there's a workaround: But, clearly, it's not implemented for |
And, we don't recommend to have a stage name same as outputs. |
fix iterative#4191 1. Add a related test which would fail on current version.
* Outputs as target supporting for `dvc status` fix #4191 1. Add a related test which would fail on current version. * Pass the tests 1. add deps to the tests. 2. make change to pass the tests. * Update tests/func/test_status.py Co-authored-by: Saugat Pachhai <[email protected]> * Solve some change request. Co-authored-by: Saugat Pachhai <[email protected]>
Bug Report
UPDATE: Jump to #4191 (comment)
Looks like
dvc status
is recursive by default now (maybe always was) from some testing I just did:targets
of the command, like all other commands that take targets (I think)?status
, but only in remote mode (-r
or-c
options), which is kind of confusing (and complicates the docs).Please provide information about your setup
The text was updated successfully, but these errors were encountered: