-
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
sync: skip if remote doesn't match output remote #10365
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10365 +/- ##
=======================================
Coverage 90.68% 90.69%
=======================================
Files 501 501
Lines 38825 38853 +28
Branches 5620 5623 +3
=======================================
+ Hits 35210 35238 +28
Misses 2968 2968
Partials 647 647 ☔ View full report in Codecov by Sentry. |
As far as I remember, this is intentional. We expect |
I think it is undefined. I don't see any discussion or tests that show it was intentional. The docs here and here seem to indicate that dvc will only pull from the specified remote.
This PR doesn't change non-default remotes specified in
Yes, and this is why I think it's a worthwhile change even if the current behavior is intended. Current behavior has no product benefit that I can see, while this change makes |
The change (at least direction) makes total sense to me. Thanks @dberenbaum ! |
We have always treated
I understand the motivation/use case. We had too many bugs last year with regard to |
It changes behavior, but I don't think we need to consider it a breaking change. Regardless of any internal understanding of the expected behavior, I don't see any docs or external understanding that current behavior is expected rather than undefined, and indeed we have 2 people in #8298 who expected the opposite. |
Fixes #8298.
Take an example where there is an output like:
Previously,
dvc push/pull/fetch -r bar_remote
would push/pull/fetch outputfoo
fromfoo_remote
. With this PR, it skips outputfoo
.