mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
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.