Skip to content

fix(cache): save-cache=auto saves fully on a local runner (act/act2) (Fixes #537) - #563

Merged
zackees merged 1 commit into
mainfrom
fix/537-local-runner-saves
Oct 2, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/537-local-runner-saves

Conversation

@zackees

@zackees zackees commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Fixes #537.

save-cache: auto skipped every durable save on a pull_request event. That's right on GitHub (a PR entry is ref-scoped and counts against the 10 GB budget) and wrong under act: its cache server has no ref scoping or budget, and local runs are pull_request on purpose so PR labels select jobs, so every local run restored and never saved.

Tests (RED -> GREEN)

Three new #537 tests in __tests__/save-policy.test.ts (decision matrix, ACT env resolution, every layer saves on pull_request under act) fail on main and pass here. The harness now sets ACT explicitly so the suite gives the same answers when it runs under act. Full suite: 863 pass; the one failure (companion archive round trips without requiring a standalone zstd executable) fails identically on the untouched tree in a node:24 container, so it's environmental and unrelated.

Removes the need for repositories' save-cache: ${{ env.ACT && 'true' || 'auto' }} overrides: ACT-003 exception forge-ci/ci.yml#216. Coordinated with zackees/clud (local CI migration to bosn → act2), forge-ci/act2#1, zackees/bosn.

…ixes #537)

auto skipped every durable save on a pull_request event. Right on GitHub
(PR entries are ref-scoped and count against the 10 GB budget), wrong
under act: its cache server has no ref scoping or budget, and local runs
are pull_request on purpose so PR labels select jobs. Every local run
restored and never saved, so every local Rust build was cold.

auto now saves when ACT is truthy (act and act2 always export it); true
and false still override, and GitHub runs keep #527's behaviour. The
save-policy tests control ACT explicitly so the suite answers the same
under act.

Removes the need for repositories' save-cache: ${{ env.ACT && 'true' ||
'auto' }} overrides (zackees/ci.yml ACT-003 exception #216).

Co-Authored-By: Claude <[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.

fix(cache): save-cache=auto should save fully on local runners (act/bosn) — PR-event skip leaves every local run cold

1 participant