Commit Graph
2 Commits
Author SHA1 Message Date
dotCooCoo 6927affc24 CI: the cold cache clear waits for the warm leg's own save and reads every cache page
scripts/ci-clear-rolling-cache.py:
- The 160-minute wait is timed from the cache warm leg's start, not from
  the script's start. The clear job starts with the run, and the leg
  starts after gate / select legs and a free runner. The job's timeout
  goes from 170 to 200 minutes to leave room for that delay.
- The leg counts as saving when its Post Setup step (the gate-setup
  action's cache save) starts, not when any Post step starts. A leg that
  ends canceled or failed before that step succeeds deletes nothing and
  exits 1, as a leg that failed before its save already did.
- actions/caches is read one page at a time, sorted by creation, until a
  page holds fewer than 100 entries.

scripts/ci-clear-rolling-cache-tests.py checks the script with recorded
API answers, and Nightly check runs it when either file changes.
2026-11-27 19:55:45 -08:00
dotCooCoo a70c571415 CI: a cold cache warm leg fits its timeout and the old rolling entry goes first
After Rust stable moved to 1.100.1, main's cache warm leg built cold
and was canceled at the 90-minute timeout with three steps still to
run, so no entry was saved and every leg stayed cold. The legs now get
150 minutes, and the cache prune watch runs for 160.

The nightly cold run restores nothing, so the old rolling entry and the
new one would be in the cache together while it saves, over the 10 GB
limit. A cold cache clear job deletes the old rolling entries when the
cache warm leg starts saving (scripts/ci-clear-rolling-cache.py). It
deletes nothing when the leg fails or is canceled, and fails itself so
that re-running the failed jobs runs it again with the leg.

cache-prune.yml prunes after every CI attempt on main, so a re-run of
the cache warm leg does not leave the entry it replaced in place.
2026-11-27 16:29:27 -08:00