Repository navigation
perf(ci): bound the Tier 2 Linux zccache in the container and skip its unused cook (#3026, #3027) - #3028
Merged
Conversation
zackees
commented
Oct 30, 2026
zackees
left a comment
Member
Author
There was a problem hiding this comment.
Coordinator review: LGTM.
- Good catch on the root cause.
${{ github.workspace }}inside a containerrun:body expands to the host path, so the 2048 MiB bound has never run.$GITHUB_WORKSPACEis the container path. Printing the size on every run makes that visible from now on. - The bound still drops the cache only on master pushes, so PR and queue runs keep their restored seed.
prebuild-deps: noneis right for a Corrosion-only build: Corrosion builds in<build>/cargo/buildwith an explicit triple and never reads the workspacetarget/. The registry cache stays on for Corrosion's cargo. The exemption intest_rust_cache_policy/test_cook_profilesis limited to this one callsite, marked with(#3027).- RED → GREEN with
ci/test_tier2_build_setup.py(3/3). - Fits #1801 phase A: a ~250 MB
zccache-tier2archive instead of 2.1 GB, and one fewer Linux cook layer, frees most of the headroom that decision is after. Please put the before/after archive size from the first master save on #3026.
Queue on green.
This was referenced Oct 30, 2026
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.
Refs #3026, Refs #3027
Rust Tier 2 Linux 🐧 (build)setup, baseline queue run 41023136317: zccache restore 58 s (2.13 GB archive: 21 s download + 37 s extract; master push 41020034958: 86 s), soldr setup 28 s.#3026 zccache. The build uses
1490 artifacts (1.3 GB); a local zccache dir of that shape tars to 1.55 GB and zstd -3 compresses it to 199 MB. The CI archive is 2.13 GB becauseBound zccache 🧹never ran: in this container job,${{ github.workspace }}inside arun:script body is the host path/home/runner/work/..., which isn't mounted (action inputs and stepenv:are translated, so restore/save and zccache itself worked). The step now reads$GITHUB_WORKSPACE, prints the size on every run, and still drops the cache only on master pushes over 2048 MiB. Expected effect: one cold master build re-seeds a cache about one build in size, then the restore is a ~250 MB archive.#3027 soldr. 12 s
soldr load(mtimes on 118,946 files) + 2.7 ssoldr cook --releasepopulate the workspacetarget/, which this job never reads: Rust gets built only through Corrosion, in<build>/cargo/buildwith an explicit target triple. The job setsprebuild-deps: noneand now keepscargo-registry-cache: trueexplicitly.test_rust_cache_policy/test_cook_profilesexempt only this callsite.RED 691935c:
ci/test_tier2_build_setup.pyfails 3/3 (bound usesgithub.workspacein the script, is master-only, cook still on). GREEN 5d8496e: passes;./lintclean apart from the knowntest_check_changes"git: command not found" environment failure.Tiers: CI configuration only; Tier 1-4 not applicable. No Rust tests added (no Test cost line).
Before/after: the PR run shows the restored dir size (new print). The archive only shrinks after the first master save once this lands.