Repository navigation
experiments: ignore stale execution refs after HEAD moves - #11137
Open
remote-controlled-man wants to merge 1 commit into
Open
remote-controlled-man wants to merge 1 commit into
remote-controlled-man wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11137 +/- ##
==========================================
+ Coverage 90.68% 90.99% +0.31%
==========================================
Files 504 505 +1
Lines 39795 41200 +1405
Branches 3141 3265 +124
==========================================
+ Hits 36087 37489 +1402
- Misses 3042 3072 +30
+ Partials 666 639 -27 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
❗ I have followed the Contributing to DVC checklist.
📖 No documentation update is needed; this restores the existing meaning of
HEADafter an interrupted experiment.Fixes #9260
An abruptly terminated workspace experiment can leave
EXEC_BASELINEbehind. After checking out a branch or committing a new baseline,dvc exp liststill resolvesHEADthrough that leftover ref and lists experiments from the old commit. Other callers of revision resolution can also read the old baseline.Only substitute the experiment baseline while detached
HEADstill matches the executor's starting commit or its result ref. Once the user moves to another commit or returns to a branch, use the requestedHEADagain. Preserve suffixes such asHEAD~1andHEAD^during execution.Regression tests cover packed leftover refs with both branch and detached commits, along with the executor's starting and result commits. A local CLI reproduction starts a real experiment, kills its process group after the stage starts, switches to its branch, packs refs and creates a new commit;
dvc exp listis empty after the fix instead of listing the old experiment.Validation on the final commit:
pytest -n 4 --dist=worksteal --timeout=300, 103.86 s). Temporary test repositories were outside the checkout. Ran withTZ=UTC: the existingtest_gc.py::test_datecomputes UTC dates but parses the cutoff in the local timezone, and fails in timezones already on the next calendar day.pre-commit run --all-files: passed, including Ruff, codespell and mypy.