Repository navigation
ci: pushes to main check for a Rust cache without downloading it - #660
Closed
PiquelChips wants to merge 5 commits into
Closed
PiquelChips wants to merge 5 commits into
PiquelChips wants to merge 5 commits into
Conversation
Main receives the very commit the merge queue tested, so its run now skips every test and the jobs that save no cache, and only builds what the Rust caches and the images' layers keep.
… skill reads coverage from the queue
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 18 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Member
Author
|
Note 🤖 Claude Opus 5.5 responding on behalf of PiquelChips Closing: measured, this costs more runner time than it saves.
Main keeps restoring the cache; #656 already skips every build on an exact hit. |
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.
Stacked on #656, which makes pushes to main build Rust only when rust-cache finds no exact match. Even then, every push still downloads each job's full Rust cache, six of them, only to learn it is current and build nothing.
Now pushes to main pass
lookup-onlyto rust-cache: they check whether their key has a cache without downloading it.cache-hitis still set, so the*buildsgate works as before, and a miss still saves a new cache.The trade-off: on a miss, as after a dependency or toolchain change, main builds from nothing instead of from the older cache. Misses are rare, and every push paid for the download.
Proof: actionlint and
just docspass. rust-cache's source at the pinned commit setscache-hitand saves its state in lookup-only mode exactly as it does when restoring. Pull requests and the queue don't passlookup-only, so this PR's CI covers them. The push path first runs on the merge.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)