Skip to content

ci: pushes to main check for a Rust cache without downloading it - #660

Closed
PiquelChips wants to merge 5 commits into
mainfrom
ci/main-cache-lookup-only
Closed

PiquelChips wants to merge 5 commits into
mainfrom
ci/main-cache-lookup-only

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

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-only to rust-cache: they check whether their key has a cache without downloading it. cache-hit is still set, so the *builds gate 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 docs pass. rust-cache's source at the pinned commit sets cache-hit and saves its state in lookup-only mode exactly as it does when restoring. Pull requests and the queue don't pass lookup-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)

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.
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ccfb02d0-1b8d-41bb-a755-37e4c786fd8a
Commits

Reviewing files that changed from the base of the PR and between cdd7867 and 1033996.

Files selected for processing: 6

  • .agents/skills/sourceorigin-cleanup/SKILL.md
  • .github/workflows/ci.yml
  • docs/dev/releasing.md
  • docs/dev/testing.md
  • just/db.just
  • justfile
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 21, 2026
Base automatically changed from fix/merge-queue-ci to main November 21, 2026 19:24
@PiquelChips

Copy link
Copy Markdown
Member Author

Note

🤖 Claude Opus 5.5 responding on behalf of PiquelChips

Closing: measured, this costs more runner time than it saves.

  • Saving: at most about 43s per push to main, the six rust-cache steps on an exact hit (run 44934014916).
  • Cost: on a key change, every job builds from nothing instead of from the older cache. A cold run (44940488562, prefix bumped on a throwaway branch) took about 1,170s more runner time: rust-lint 157→477s, e2e 235→384s, rust 199→636s, msrv 38→143s, infra 31→129s, package 30→91s.
  • Break-even: fewer than about one key change in 27 pushes. Recently it was about one in 10.

Main keeps restoring the cache; #656 already skips every build on an exact hit.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in sourceorigin.dev Nov 21, 2026
@PiquelChips
PiquelChips deleted the ci/main-cache-lookup-only branch November 21, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant