-
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
repo: brancher/switch: reset parsed fields #9758
Conversation
Related iterative#9754 and fixes `dvc fetch`.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #9758 +/- ##
==========================================
+ Coverage 90.46% 90.48% +0.01%
==========================================
Files 480 480
Lines 36588 36586 -2
Branches 5263 5265 +2
==========================================
+ Hits 33101 33104 +3
+ Misses 2889 2886 -3
+ Partials 598 596 -2
☔ View full report in Codecov by Sentry. |
self.root_dir = saved_root | ||
self.dvc_dir = saved_dvc_dir | ||
self._reset() # pylint: disable=protected-access |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clunky and brancher should go away in favor of switch
/etc, but this will do for now.
@@ -203,7 +203,8 @@ def test_verify_hashes(tmp_dir, scm, dvc, mocker, tmp_path_factory, local_remote | |||
# Removing cache will invalidate existing state entries | |||
dvc.cache.local.clear() | |||
|
|||
dvc.config["remote"]["upstream"]["verify"] = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In-memory changes to config can't work between command sessions, the logic is really the same as with us resetting index, because other commands/instances could modify the config while we are not holding a lock. Same in changed tests below.
This used to work like so but by accident, when we didn't reload config at all when collecting other revisions. Regression from iterative#9758
This used to work like so but by accident, when we didn't reload config at all when collecting other revisions. Regression from #9758
Related #9754 and fixes
dvc fetch
.