-
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
fetch: warn if cloud-versioned file has no version ID #9669
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #9669 +/- ##
==========================================
- Coverage 90.55% 90.53% -0.02%
==========================================
Files 479 479
Lines 36309 36335 +26
Branches 5219 5224 +5
==========================================
+ Hits 32878 32897 +19
- Misses 2843 2850 +7
Partials 588 588
β View full report in Codecov by Sentry. |
4945d74
to
dc092b1
Compare
Looks great @pmrowla! Should we also give some more info about why checkout failed (either by default or in verbose mode)? |
It's not really straightforward for us to tell why the checkout failed. The checkout step is completely separate from the fetch (and the fetch technically succeeds, since we fetch the latest version of the file). If anything, we could probably just update the linked troubleshooting page with a note about the cloud versioned use case |
π€ Should it really be the default behavior that fetching from a cloud-versioned remote should fetch the latest versions when there is no version ID? I wonder if we should fail on fetch unless maybe |
When we had the discussion about the original issue a while back we decided that the warning would be sufficient for now, but if we want to just not fetch anything we can do that. I think fetching the latest version by default was more useful when worktree was a thing and it was possible that users may be updating files in the remote. |
Sorry for the lack of clarity. I'm trying to think if I'm missing some scenario, but by default it makes more sense to me to fail fast here rather than try to fetch everything first. |
dc092b1
to
8751d9d
Compare
@dberenbaum updated the initial comment in the PR, we now warn and then fail if files are unversioned (we will still try fetch whatever data was available for files that are properly versioned) |
8751d9d
to
0fc8170
Compare
β 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. π
Closes #9226