Skip to content

maint: cache Rust builds in CI and widen the quality-gate timeout#45

Merged
karngyan merged 1 commit into
mainfrom
maint/ci-rust-cache
Jul 18, 2026
Merged

maint: cache Rust builds in CI and widen the quality-gate timeout#45
karngyan merged 1 commit into
mainfrom
maint/ci-rust-cache

Conversation

@karngyan

Copy link
Copy Markdown
Contributor

Claim

Pushes to main have been timing out: the last two CI runs on main ended cancelled at the 20-minute job timeout. The dev-profile opt-level = 2 override for dependencies (#41) made cold builds heavier, and the workflow has no Rust build cache, so every run pays the full cold cost.

Change

  • Add Swatinem/rust-cache (SHA-pinned, v2.9.1) with cache-on-failure: true so even a failed or cancelled cold run warms the cache for every later run.
  • Raise timeout-minutes from 20 to 40 to fit the one-time cold path; warm runs finish well under the old limit.

Evidence

  • Main runs 29661061672 and 29659503538: cancelled after ~25 and ~30 minutes, single job mise run check cancelled mid-build.
  • mise run ci (actionlint) passes on this branch.
  • This PR's own CI run is the cold-path proof.

Privacy

None — CI configuration only.

🤖 Generated with Claude Code

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>
@karngyan
karngyan merged commit 7260fdb into main Jul 18, 2026
1 check passed
@karngyan
karngyan deleted the maint/ci-rust-cache branch July 18, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant