Skip to content

perf(ci): bound the Tier 2 Linux zccache in the container and skip its unused cook (#3026, #3027) - #3028

Merged
zackees merged 2 commits into
masterfrom
infra/tier2-restore-setup
Oct 30, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/tier2-restore-setup

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

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 because Bound zccache 🧹 never ran: in this container job, ${{ github.workspace }} inside a run: script body is the host path /home/runner/work/..., which isn't mounted (action inputs and step env: 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 s soldr cook --release populate the workspace target/, which this job never reads: Rust gets built only through Corrosion, in <build>/cargo/build with an explicit target triple. The job sets prebuild-deps: none and now keeps cargo-registry-cache: true explicitly. test_rust_cache_policy/test_cook_profiles exempt only this callsite.

RED 691935c: ci/test_tier2_build_setup.py fails 3/3 (bound uses github.workspace in the script, is master-only, cook still on). GREEN 5d8496e: passes; ./lint clean apart from the known test_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.

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review: LGTM.

  • Good catch on the root cause. ${{ github.workspace }} inside a container run: body expands to the host path, so the 2048 MiB bound has never run. $GITHUB_WORKSPACE is 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: none is right for a Corrosion-only build: Corrosion builds in <build>/cargo/build with an explicit triple and never reads the workspace target/. The registry cache stays on for Corrosion's cargo. The exemption in test_rust_cache_policy/test_cook_profiles is 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-tier2 archive 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.

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