-
Notifications
You must be signed in to change notification settings - Fork 394
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
repro
: force committing .dvc files can cause UX problems
#2115
Comments
@jorgeorpinel You've modified the data source and repro-ed the whole pipeline. That's correct behavior and is the same as you replacing the input data with another data, we used to have this in get-started awhile back, but looks like not anymore. Moving to docs for now. CC @dberenbaum maybe you have any thoughts on this. We could open a discussion https://github.com/iterative/dvc/discussions for this, if we plan on revisiting this behavior. Btw, looks like dvc experiments might make this a bit more intuitive. |
This confused for me for a bit, which might be a sign that it's not an ideal user experience. However, after I worked through the example on my own, I don't see any unexpected behavior. The only change that As far as messaging and documentation, there are a couple of things that might be helpful:
|
Hi sorry for late reply here.
Hmm. @efiop does
@dberenbaum why do you expect that? (keeping in mind it doesn't seem to be indicated anywhere that Agree on improving core messages and docs for now. So I guess this could go back in the core repo to address that part first? |
Ah, I think I misunderstood, or maybe this is a new issue you are raising. I had assumed that |
Yes. That sounds reasonable, in fact I think that's what we aim for. Maybe we just need to fix the help output (and docs). |
repro
: force committing .dvc files can cause UX problems
Reviving this 😬
Actually @dberenbaum I don't know if that addresses this problem because without fixing the messaging it's pretty hard to even realize that you have to recover some old .dvc file version. So I think we should either transfer this back to the core repo or close it, and since users haven't run into this issue that I know of (wdyt @efiop ?) I'm closing it for now. |
BugReportDescription
Deleting contents of a tracked dir. which prevent a stage from being executed with
repro
results in a confusing project state whererepro
becomes very difficult.Reproduce
The
repro
attempt did something tods/
, but the messageVerifying data sources in stage: 'ds.dvc'
doesn't really give much of an indication of that. The only relatively visible hint to what's happening comes fromgit status
(IF you committed the firstds.dvc
version):As you can see it's pretty hard to figure out what's happening without a deep understanding of DVC. And the solution is also not obvious.
git checkout -- ds.dvc
does the trick but it's only possible if the previous version was committed to Git. Otherwise you'd have to manually restoreds.dvc
based on the cache file names (not reasonable), or re-buildds/
manually (which may or may not be doable) and re-add/commit
it.ExpectedIdeasMaybe
repro
should not force-commit things by default?At least certainly not silently, for now (improve messaging)
BTW this behavior is not documented in https://dvc.org/doc/command-reference/repro! We can transfer this one if a decision is made to keep the current behavior, but otherwise please create a corresponding docs issue.
Environment information
The text was updated successfully, but these errors were encountered: