Commit Graph
7 Commits
Author SHA1 Message Date
dotCooCoo 93c598a27f Merge main into feat/split-cache-warm 2026-11-30 15:06:24 -08:00
dotCooCoo b851ac2c8d CI: drop the cache prune watcher job; cache-prune.yml prunes after each run
ci.yml's `cache prune` job held a runner beside the whole gate on every
main push and nightly run, only to delete the rolling entry that the
`cache warm` leg replaced. cache-prune.yml already runs that prune once
every CI attempt on main ends, and the warm leg is the last job to
finish, so the old entry now goes a few seconds after the save instead
of during it.

The nightly cold run's `cold cache clear` job stays. Its script used the
`cache prune` job to tell "Re-run all jobs" from a re-run of failed jobs.
It now looks for `gate / select legs` instead, which only "Re-run all
jobs" lists once the warm leg has succeeded, and it waits 5 minutes for
that job to appear before it treats the warm leg as finished in an
earlier attempt.
2026-11-30 05:16:23 -08:00
dotCooCoo 3a617b1324 CI: the cache warm on main builds its five shards in parallel
`cargo xtask ci warm` builds only shard GATE_SHARD of GATE_SHARDS when the gate sets them, and
every shard when neither is set; one set without the other, a non-number, a count other than the
shard count, or a shard out of range is an error. ci.yml turns on the gate's `warm-split`, so
main's warm runs as five `cache warm <k>/5` legs and a `cache warm` leg that saves the entry.

The cold-cache cleanup waits for the split legs before it times the saving leg's start, and fails
when a split leg fails. The cache-prune watch and both jobs' timeouts cover a split leg followed
by the saving leg.
2026-11-29 06:09:05 -08:00
dotCooCoo ab260718f5 CI: the cold cache clear fails when the warm leg starts after the start limit
start_overdue only looked at a leg that had not started, so a leg that
started 5 seconds past START_SECONDS and reached its save was let through
and the old entries were deleted. The script now exits 1 before the save
check when the leg's start time is more than START_SECONDS after the
script started.
2026-11-28 00:45:19 -08:00
dotCooCoo ada0e99dfc CI: the cold cache clear fails on a late warm leg before its job times out
The script's 160-minute wait is timed from the cache warm leg's start, and
the leg starts only after gate / select legs and a free runner. The job's
200-minute timeout left 40 minutes for that; a push to main on 2026-11-28
took 44 minutes from the run's start to the leg's start. A later start
ended the job with a timeout instead of the script's error.

The script now fails with its own error when the leg has not started 120
minutes after the script started, and the job's timeout is 290 minutes,
longer than the start wait and the 160-minute save wait together. A test
reads both timeouts from ci.yml and checks them against the script's
limits.
2026-11-28 00:18:09 -08:00
dotCooCoo 5df004faff CI: the cold cache clear fails when the warm leg's save does not finish
scripts/ci-clear-rolling-cache.py deletes the old rolling entries when
the cache warm leg's Post Setup step starts. It used to exit 0 at that
point, so a save that was canceled or failed afterwards left no rolling
entry while the job passed. The script now keeps polling the leg until
Post Setup completes or the leg ends, within the same 160-minute limit,
and exits 1 unless the save succeeded. A failure in a later post step
does not count once the save has succeeded. The header and the ci.yml
comment describe this, and say that the next run then starts cold.

Three new tests run main() with recorded API answers: a save that
succeeds after the deletion exits 0, and a save that is canceled or
fails after it exits 1.
2026-11-27 20:58:32 -08:00
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