Cache Rust dependencies in CI - #628
Merged
Merged
Conversation
Every job compiles pyo3 from scratch, which is most of the 39 job-minutes CI spends building Logbook. uv's build cache does not help: tool.uv cache-keys invalidate on ctime, and checkout gives every file a new one, so the wheel is rebuilt in every session of every job. Cargo fingerprints registry dependencies by version and features, not by file times, so a restored target directory survives checkout. rust-cache keys on the job, the runner and the Rust toolchain, but not on the Python version, so add that. Entries are about 20 MB.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #628 +/- ##
=======================================
Coverage 85.04% 85.04%
=======================================
Files 45 45
Lines 5691 5691
Branches 459 459
=======================================
Hits 4840 4840
Misses 721 721
Partials 130 130 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
No description provided.