Skip to content

feat(cache): raise cache-payload-max-bytes default 2GiB → 6GiB (closes #279) - #280

Merged
zackees merged 1 commit into
mainfrom
feat/raise-payload-cap-279
May 31, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/raise-payload-cap-279

Conversation

@zackees

@zackees zackees commented May 31, 2026

Copy link
Copy Markdown
Collaborator

The 2GiB default was leaving build-cache chronically inert on medium-large Rust workspaces. zccache CI itself ran 4-5 GiB / skip every run.

6 GiB matches the realistic zccache footprint for a medium-large workspace AND sits comfortably below GitHub Actions' ~10 GiB per-entry and per-repo limits.

action.yml + README updated; no source/dist changes (action.yml is read at runtime).

Closes: #279

…#279)

The 2GiB cap was leaving the build-cache layer chronically inert on
medium-large Rust workspaces. zccache CI itself ran at 4-5 GiB
post-compress every run, blew the cap, and emitted:

  ##[warning]setup-soldr: build-cache cache payload is 4.21GB before
  compression, exceeding cache-payload-max-bytes=2.00GB; skipping
  cache save

The user enabled `build-cache: true` expecting it to help. It
didn't. Every run paid the cold-restore lookup AND the post-step
census walk, then skipped the upload.

6 GiB matches:
- The realistic zccache footprint for a medium-large Rust workspace
  (zccache CI peaks ~5 GB; setup-soldr's own work +headroom).
- Comfortable headroom below GitHub Actions Cache's ~10 GiB per-
  entry limit AND the 10 GiB per-repo total budget.
- Conservative enough that a runaway producer still trips the
  guardrail (single 7+ GiB save would now be the outlier worth
  flagging).

Action.yml description updated to explain the new value + the #279
trigger. README's cache-policy table updated to match.

No source/dist changes (action.yml is runtime-read by GitHub
Actions; the bundle doesn't include it).

Closes: #279 (Fix A piece — Fix B [auto-detect chronic skip via
state] remains optional follow-up).

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@zackees
zackees merged commit 1ef7c2d into main May 31, 2026
5 of 6 checks passed
@zackees
zackees deleted the feat/raise-payload-cap-279 branch May 31, 2026 01:28
zackees added a commit that referenced this pull request May 31, 2026
Picks up #280 (#279 Fix A) — raise cache-payload-max-bytes default
2GiB → 6GiB. action.yml default soldr version stays at 0.7.48.

Co-authored-by: Claude Opus 4.7 <[email protected]>
zackees added a commit to forge-ci/zccache that referenced this pull request May 31, 2026
setup-soldr v0.9.24 raises the cache-payload-max-bytes default
2GiB → 6GiB (forge-ci/setup-soldr#280 / #279). Should let zccache's
own build-cache (4-5 GiB observed) actually save instead of
chronic-skipping every run.

19 pins bumped across 9 files.

Co-authored-by: Claude Opus 4.7 <[email protected]>
zackees added a commit that referenced this pull request May 31, 2026
…inimal cut) (#283)

Adds `StatsCollector.saveSummaryOneLine()` and logs it right after the
existing per-layer `final cache summary:` line. Operators get a
rolled-up view of how many layers actually saved + total uploaded +
total post-step wall-clock budget, without scrolling per-layer
records:

  cache save totals: layers_saved=2/4 uploaded=1.25GB total_ms=24500

Designed for diagnosing post-step waste — pairs with the per-restore
table from `summaryText()`. Each value pulled from existing
StatsCollector op records; no new instrumentation needed.

Empty (no log line) when zero save ops were recorded — exact-hit-skip
on every layer, or all layers disabled.

This is a focused subset of #269 (the full proposal includes per-
phase wall-clock breakdown + ROI ratio). The one-liner ships now to
surface the budget signal; the broader proposal can iterate from this
baseline.

Refs: #269 (full design), #279 (the bug that motivated wanting this
visibility), #280 (the fix that this signal would have caught the
absence of).

Co-authored-by: Claude Opus 4.7 <[email protected]>
zackees added a commit to zackees/ai-tools that referenced this pull request May 31, 2026
Convert all `zackees/setup-soldr@v0` (floating major tag) to the
pinned `zackees/[email protected]` so this repo explicitly carries
the perf-fix cascade landed in v0.9.21-v0.9.24:

- v0.9.21 — implicit cargo-registry-cache pairing when
  prebuild-deps=soldr-cook (forge-ci/setup-soldr#267, #271). Cook now
  also enables registry cache by default — closes the "cook is on
  why is it still downloading" trap.
- v0.9.22 — pre-compress race probe avoids 19-minute waste pattern
  when sibling job wins the cache reservation race
  (forge-ci/setup-soldr#268 Fix A, #274).
- v0.9.23 — soldr 0.7.48 (zccache 1.11.8 cross-clone .obj fix) +
  ncc side-chunk dist copy hotfix (forge-ci/setup-soldr#277).
- v0.9.24 — raise cache-payload-max-bytes default 2GiB → 6GiB
  (forge-ci/setup-soldr#280). Unblocks build-cache save on
  medium-large Rust workspaces (was chronic-skipping every run).

Validated end-to-end on zccache CI: post-step wall-clock dropped
from 18m 8s → ~27s and compile-cache hit_rate jumped from 0.7% →
100% across the cascade (forge-ci/setup-soldr#282).

Co-authored-by: Claude Opus 4.7 <[email protected]>
zackees added a commit to talos-hq/clud that referenced this pull request May 31, 2026
Convert all `zackees/setup-soldr@v0` (floating major tag) to the
pinned `zackees/[email protected]` so this repo explicitly carries
the perf-fix cascade landed in v0.9.21-v0.9.24:

- v0.9.21 — implicit cargo-registry-cache pairing when
  prebuild-deps=soldr-cook (forge-ci/setup-soldr#267, #271). Cook now
  also enables registry cache by default — closes the "cook is on
  why is it still downloading" trap.
- v0.9.22 — pre-compress race probe avoids 19-minute waste pattern
  when sibling job wins the cache reservation race
  (forge-ci/setup-soldr#268 Fix A, #274).
- v0.9.23 — soldr 0.7.48 (zccache 1.11.8 cross-clone .obj fix) +
  ncc side-chunk dist copy hotfix (forge-ci/setup-soldr#277).
- v0.9.24 — raise cache-payload-max-bytes default 2GiB → 6GiB
  (forge-ci/setup-soldr#280). Unblocks build-cache save on
  medium-large Rust workspaces (was chronic-skipping every run).

Validated end-to-end on zccache CI: post-step wall-clock dropped
from 18m 8s → ~27s and compile-cache hit_rate jumped from 0.7% →
100% across the cascade (forge-ci/setup-soldr#282).

Co-authored-by: Claude Opus 4.7 <[email protected]>
zackees added a commit to FastLED/cli that referenced this pull request May 31, 2026
Convert all `zackees/setup-soldr@v0` (floating major tag) to the
pinned `zackees/[email protected]` so this repo explicitly carries
the perf-fix cascade landed in v0.9.21-v0.9.24:

- v0.9.21 — implicit cargo-registry-cache pairing when
  prebuild-deps=soldr-cook (forge-ci/setup-soldr#267, #271). Cook now
  also enables registry cache by default — closes the "cook is on
  why is it still downloading" trap.
- v0.9.22 — pre-compress race probe avoids 19-minute waste pattern
  when sibling job wins the cache reservation race
  (forge-ci/setup-soldr#268 Fix A, #274).
- v0.9.23 — soldr 0.7.48 (zccache 1.11.8 cross-clone .obj fix) +
  ncc side-chunk dist copy hotfix (forge-ci/setup-soldr#277).
- v0.9.24 — raise cache-payload-max-bytes default 2GiB → 6GiB
  (forge-ci/setup-soldr#280). Unblocks build-cache save on
  medium-large Rust workspaces (was chronic-skipping every run).

Validated end-to-end on zccache CI: post-step wall-clock dropped
from 18m 8s → ~27s and compile-cache hit_rate jumped from 0.7% →
100% across the cascade (forge-ci/setup-soldr#282).

Co-authored-by: Claude Opus 4.7 <[email protected]>
zackees added a commit to FastLED/fbuild that referenced this pull request May 31, 2026
Convert all `zackees/setup-soldr@v0` (floating major tag) to the
pinned `zackees/[email protected]` so this repo explicitly carries
the perf-fix cascade landed in v0.9.21-v0.9.24:

- v0.9.21 — implicit cargo-registry-cache pairing when
  prebuild-deps=soldr-cook (forge-ci/setup-soldr#267, #271). Cook now
  also enables registry cache by default — closes the "cook is on
  why is it still downloading" trap.
- v0.9.22 — pre-compress race probe avoids 19-minute waste pattern
  when sibling job wins the cache reservation race
  (forge-ci/setup-soldr#268 Fix A, #274).
- v0.9.23 — soldr 0.7.48 (zccache 1.11.8 cross-clone .obj fix) +
  ncc side-chunk dist copy hotfix (forge-ci/setup-soldr#277).
- v0.9.24 — raise cache-payload-max-bytes default 2GiB → 6GiB
  (forge-ci/setup-soldr#280). Unblocks build-cache save on
  medium-large Rust workspaces (was chronic-skipping every run).

Validated end-to-end on zccache CI: post-step wall-clock dropped
from 18m 8s → ~27s and compile-cache hit_rate jumped from 0.7% →
100% across the cascade (forge-ci/setup-soldr#282).

Co-authored-by: Claude Opus 4.7 <[email protected]>
zackees added a commit to zackees/clang-tool-chain-bins that referenced this pull request May 31, 2026
Convert all `zackees/setup-soldr@v0` (floating major tag) to the
pinned `zackees/[email protected]` so this repo explicitly carries
the perf-fix cascade landed in v0.9.21-v0.9.24:

- v0.9.21 — implicit cargo-registry-cache pairing when
  prebuild-deps=soldr-cook (forge-ci/setup-soldr#267, #271). Cook now
  also enables registry cache by default — closes the "cook is on
  why is it still downloading" trap.
- v0.9.22 — pre-compress race probe avoids 19-minute waste pattern
  when sibling job wins the cache reservation race
  (forge-ci/setup-soldr#268 Fix A, #274).
- v0.9.23 — soldr 0.7.48 (zccache 1.11.8 cross-clone .obj fix) +
  ncc side-chunk dist copy hotfix (forge-ci/setup-soldr#277).
- v0.9.24 — raise cache-payload-max-bytes default 2GiB → 6GiB
  (forge-ci/setup-soldr#280). Unblocks build-cache save on
  medium-large Rust workspaces (was chronic-skipping every run).

Validated end-to-end on zccache CI: post-step wall-clock dropped
from 18m 8s → ~27s and compile-cache hit_rate jumped from 0.7% →
100% across the cascade (forge-ci/setup-soldr#282).

Co-authored-by: Claude Opus 4.7 <[email protected]>
zackees added a commit that referenced this pull request May 31, 2026
…te (#269) (#285)

Extends the post-step save visibility from #283 with a verbose
companion view. `StatsCollector.saveSummaryText()` emits a table
mirroring the restore-side `summaryText()`:

  cache                 save status              archive    files     time
  ──────────────────────────────────────────────────────────────────────────
  build-cache           saved                     1.19 GB   24284    15.6s
  cargo-registry-cache  saved                    56.1 MB     3142     6.4s
  cook-cache-base       skipped-race-precheck     0 B          -      0.1s
  soldr-mini-cache      exact-hit-skip            0 B          -      0.0s
  ──────────────────────────────────────────────────────────────────────────
  2/4 saved  total upload: 1.25 GB  total wall: 22.1s

The footer rolls up the same totals as the one-liner; the rows
identify WHICH layer ate which slice of the wall-clock budget —
the question the one-liner can't answer.

Both views are logged in post.ts in sequence: table first (detail),
one-liner second (skim-readable summary). Empty when zero save ops
were recorded.

Closes #269 (the per-phase wall-clock breakdown the issue called for).
ROI ratio panel (saved_ms_estimate / stash_cost_ms) requires reading
the compile-cache report from disk + threading hits/median into the
collector; left as a follow-up enhancement since the table + one-liner
together already surface the budget regression signal.

Tests: all 14 post tests still pass (1 skipped, pre-existing
.cmd-shim limitation). Pure-formatting addition.

dist/main.js + dist/post.js rebuilt via Linux/node:24.

Refs: #283 (one-liner companion), #269 (full proposal), #279/#280
(the bug the visibility would have caught faster).

Co-authored-by: Claude Opus 4.7 <[email protected]>
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.

perf(build-cache): chronic 4-5 GB build-cache oversize-skip on zccache CI — cache layer is no-op every run, wasted restore + post-step census

1 participant