fix(ci): bound pkgcache _metadata growth to stop macmini disk-fill #110

Merged
pat-s merged 5 commits from t3code/smarter-disk-pruning-macmini into main 2026-07-13 09:31:29 +00:00

2026-06-17

fix: recompute package snapshot when missing from cache
The install-deps step precomputes pkgs_to_build.rds, r_minor_sensitive_pkgs.rds
and s3_cache.rds into /mnt/cache, but that cache volume is per-agent.
A build job scheduled on a fresh agent (or racing install-deps) finds the
snapshot absent and fails at readRDS.

Guard the reads in build-all.R: when any snapshot file is missing, source
packages-to-build.R and save the derived files (atomic temp+rename so a
concurrent job never reads a half-written rds). The first job on an agent
repopulates the shared cache for subsequent jobs; jobs that also miss redo
the work.
2026-06-17 19:47:28 +02:00