Repository navigation
CI: Speed up the Tests workflow by restoring baseline images from the dvc-cache artifact - #9258
Merged
Merged
Conversation
… from DagsHub Each Tests job ran a full `dvc pull` from DagsHub (~1200 objects, 30-40 min per OS). The dvc-cache artifact that ci-caches.yml already uploads holds the same objects in one 85 MB zip, so download it first and let `dvc pull` fetch only what it lacks (e.g. baselines added by the PR). With nothing missing, `dvc pull` does not contact the remote. If DagsHub fails, `dvc checkout --force` restores what the cache has, as the old fallback step did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joa-quim
approved these changes
Oct 12, 2026
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.
Speeds up the Tests workflow by about 20-55 min per OS. Each job (Linux, macOS, Windows) spent ~30 min downloading ~1200 baseline images from DagsHub with
dvc pull, and the three jobs did it in parallel. This change first downloads thedvc-cacheartifact thatci-caches.ymlalready builds (one 85 MB zip, ~10 s) and then runsdvc pull, which now only fetches what the artifact lacks (e.g. baselines added by the PR). With nothing missing it does not contact DagsHub at all. If DagsHub fails,dvc checkout --forcekeeps the old fallback behavior.All 1122 baseline files were restored on every OS, and the test failures are the same as on master.
🤖 Generated with Claude Code (Claude Opus 5.5)