maint: cache Rust builds in CI and widen the quality-gate timeout#45
Merged
Conversation
Cold CI builds now compile every dependency at opt-level 2 (dev-profile override added for detection speed) and no longer fit in 20 minutes, so pushes to main were timing out as cancelled. Add Swatinem/rust-cache (pinned, cache-on-failure so even a cancelled cold run warms the cache) and raise the timeout to 40 minutes for the cold path. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Claim
Pushes to main have been timing out: the last two CI runs on main ended
cancelledat the 20-minute job timeout. The dev-profileopt-level = 2override for dependencies (#41) made cold builds heavier, and the workflow has no Rust build cache, so every run pays the full cold cost.Change
Swatinem/rust-cache(SHA-pinned, v2.9.1) withcache-on-failure: trueso even a failed or cancelled cold run warms the cache for every later run.timeout-minutesfrom 20 to 40 to fit the one-time cold path; warm runs finish well under the old limit.Evidence
cancelledafter ~25 and ~30 minutes, single jobmise run checkcancelled mid-build.mise run ci(actionlint) passes on this branch.Privacy
None — CI configuration only.
🤖 Generated with Claude Code