Skip to content

ci(cache-cleanup): drop hourly cron, trigger on-demand from cache-adding workflows - #520

Merged
zackees merged 1 commit into
mainfrom
ci/cache-cleanup-on-demand
May 31, 2026
Merged

zackees merged 1 commit into
mainfrom
ci/cache-cleanup-on-demand

Conversation

@zackees

@zackees zackees commented May 31, 2026

Copy link
Copy Markdown
Collaborator

Per user request: revert the hourly schedule, just trigger when necessary.

Now runs:

  • workflow_dispatch (manual)
  • workflow_run after CI / Integration / Coverage / Benchmark Stats / Perf Cluster Rust complete

Gated on cache usage > 8 GB high-water mark — no-op when under threshold so we don't waste runner time on idle runs.

🤖 Generated with Claude Code

…ing workflows

Removes the hourly schedule. Cleanup now runs:

- workflow_dispatch: manual trigger.
- workflow_run after CI / Integration / Coverage / Benchmark Stats /
  Perf Cluster Rust: those are the workflows that ADD large
  per-commit cache entries (cook-delta, zccache-test-*,
  cargo-target-bench-*). Triggering after them lines up the
  cleanup with the moment new entries land.

Gated by a high-water-mark check (8 GB). Cleanup is a no-op when
cache usage is under the threshold — no wasted runner time on
runs that don't need to prune. The 8 GB threshold leaves 2 GB
headroom under the 10 GB GitHub cap for in-flight workflow saves
to complete without forcing LRU eviction of small long-lived
caches.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@zackees
zackees merged commit c85bcee into main May 31, 2026
14 checks passed
zackees added a commit that referenced this pull request May 31, 2026
Patch release covering the fixes and CI hardening that landed since
1.11.8:

- fix(persist): retry artifact rename through AV-scanner share lock on
  Windows (#509)
- fix(request-cache): scope worktree-bound entries to their originating
  root (#511)
- fix(cli): add `analyze` + `kv` to KNOWN_SUBCOMMANDS to stop wrap-mode
  misroute (#507)
- perf(guard): gate rust-workspace-link Cold ratio (issue #517) (#519)
- perf(bench): emit zccache_rust_miss_profile lines in
  benchmark-stats logs (#521)
- ci(cache-cleanup): switch to count-based policy, broader per-commit
  families, on-demand trigger (#515, #516, #520)
- ci: setup-soldr pin bumps v0.9.21 -> v0.9.38 (#485–#518)

Co-authored-by: Claude Opus 4.7 <[email protected]>
zackees added a commit that referenced this pull request Jun 20, 2026
…ks CI (#851)

Main CI has been red since the cross-repo dev pin in zccache#842 landed a
\`file:///C:/Users/niteris/dev/zccache/.extern-repos/running-process\`
patch-pin into the workspace Cargo.toml. CI runners can't see that path,
so every Cargo build that resolves running-process aborts with:

  Updating git repository \`file:///C:/Users/niteris/dev/zccache/.extern-repos/running-process\`
  Unable to update file:///C:/Users/niteris/dev/zccache/.extern-repos/running-process#baf2d60b

Visible on the latest main push (PR #850's merge run 27879118164):
Integration / Perf Guard / Linux / macOS / Windows all failed at "Build
integration test binaries" with that exact error.

Fix: replace the file:// pin with the equivalent public git+rev on the
running-process \`fix/broker-v2-hardening-rp517-518-519\` branch (PR
zackees/running-process#520). The pinned commit ca0a7ad2 is the current
tip after the clippy manual_flatten fix landed (so PR #520 itself is
also unblocked on the lint front).

Iteration cycle is unchanged for the maintainer's local clone — bump
the rev to the new branch tip after pushing upstream.

Reverts to the published \`running-process = "4.5.6+"\` line once
upstream PR #520 merges and the next release ships.

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
zackees added a commit that referenced this pull request Jun 20, 2026
…ad) (#852)

zackees/running-process PR #520 merged at 2026-06-20T18:07:55Z, closing
upstream issues #517, #518, #519. The fix branch's tip
\`ca0a7ad2\` was squash-merged into \`main\` as commit \`502040ad\`.

Move the zccache pin from the now-deleted PR-branch rev to main HEAD so
- the cargo dep is anchored on a long-lived branch (not a soon-to-be-GC'd PR tip),
- the next sub-PR can land additional running-process hardening without
  blocking on a release cut.

The published \`running-process = \"4.5.5\"\` line in \`[workspace.dependencies]\`
still can't be used directly: 4.5.5 ships the pre-#518 \`BrokerV2Error::Refused\`
shape (\`details: Box<Refused>\`), but zccache's \`BrokerRefusal::from_brokerv2_error\`
now destructures the post-#518 top-level \`retry_after_ms\` field. Will revert
the patch entry entirely once running-process cuts 4.5.6+.

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@zackees
zackees deleted the ci/cache-cleanup-on-demand branch November 5, 2026 05:55
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.

1 participant