Skip to content

ci: Size merge-queue compiler caches to their measured entries - #2287

Merged
zackees merged 2 commits into
masterfrom
ci/queue-cache-model
Oct 25, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/queue-cache-model

Conversation

@zackees

@zackees zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member

The merge-queue compiler caches outgrew their declared max in ci.toml. ci-lint cache audit --default-branch master (CACHE-004) flags all three:

family live entry old max new max
zccache-tier2 1,171,438,427 B 550MB 1.5GB
windows-tier2-ccache 284,960,603 B 128MB 400MB
macos-tier2-xcas 143,462,861 B 128MB 200MB

A janitor that enforces per-family max would evict the queue's warm cache and force cold Tier 2 builds. Today, every queue run restores these caches and gets 98–99% hits, so the risk is only latent.

  • RED (ci: Require queue compiler cache maxes…): records the measured sizes in docs/ci-evidence/2026-10-24-queue-compiler-caches.json and adds a test requiring each max to be at least 1.25× its entry. Three subtests fail.
  • GREEN: raises the three maxes. The combined footprint is about 4.15 GiB, under the existing cap of about 4.4 GiB, so the combined-cap test is unchanged. The 2× donor check still passes.

Total usage is about 5.7 GB of the 10 GB budget. The nightly AppImage cache is not raised, since it may build cold.

ci-lint cache audit (CACHE-004) reported zccache-tier2 (1.17 GB vs 550MB),
windows-tier2-ccache (285 MB vs 128MB) and macos-tier2-xcas (143 MB vs
128MB) above their declared max. Raise each to hold its entry with room;
the combined footprint stays under the existing cap.
@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

General lesson filed upstream: forge-ci/ci.yml#425

@zackees
zackees enabled auto-merge October 25, 2026 01:11
@zackees
zackees added this pull request to the merge queue Oct 25, 2026
Merged via the queue into master with commit 0adc933 Oct 25, 2026
30 checks passed
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Done in obs-rust Multiview Oct 25, 2026
@zackees
zackees deleted the ci/queue-cache-model branch October 26, 2026 15:42
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