-
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
remote: separate worktree
vs version_aware
behavior
#8634
Conversation
Codecov ReportBase: 93.79% // Head: 94.17% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #8634 +/- ##
==========================================
+ Coverage 93.79% 94.17% +0.37%
==========================================
Files 432 432
Lines 33141 33055 -86
Branches 4661 4638 -23
==========================================
+ Hits 31084 31128 +44
+ Misses 1602 1501 -101
+ Partials 455 426 -29
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. β View full report at Codecov. |
a9b961a
to
3e934d1
Compare
Not a blocker, but a possible optimization: If there is a version ID in the .dvc file, it implies that this data has already been pushed. Can we assume no push is needed without checking the etags? |
I don't see DELETE flags being set for files on the cloud but missing in the workspace:
|
Should have clarified, the etag check is only done with I'll double check what's going on with deletes |
3e934d1
to
0d1ccd0
Compare
@dberenbaum delete issue should be resolved now |
0d1ccd0
to
359ff87
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. π
Will close #8409
worktree = true
now impliesversion_aware = true
(a config error will be raised if a user explicitly configures a remote withworktree = true
andversion_aware = false
)version_aware = true
(andworktree = false
) will result in pushing human-readable filenames to a cloud-versioned remote. DVC will not set DELETE flags and will not update the latest version of a file on the remote if an older version of the file has has already been pushedworktree = true
will forcedvc push
to ensure that the "latest" version of a remote always reflects the pushed workspace. DVC will set DELETE flags for files that do not exist in the current workspace, and will force pushing an updated copy of a file if the latest version on the remote does not match what is in the user's workspace (even if a previously pushed version ID already exists in the .dvc file)cloud-versioned
fetch/pull
behavior is unchanged and essentially does the same thing regardless of whether or notworktree
is set - DVC will always fetch the version IDs specified in the .dvc file.