mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 15:49:33 -05:00
Actions caches are ref-scoped: a pull_request run's write lands in refs/pull/N/merge where no other PR can read it. ci.yml saved ~/.m2/repository on every run, so each open PR stored a ~201 MB byte-identical duplicate of the copy main already publishes under the same key — 1.61 GB across 8 open PRs when measured, against a 10 GB repo-wide budget that had just been brought back under control. PRs already restore main's copy: four sampled PR runs all logged "Cache restored from key: maven-Linux-a80d20aaec", the key main holds. Their own save adds nothing, and main sees ~15 qualifying pushes a day so its copy stays fresh. Restore is untouched and still runs on every shard of every event; only the save is gated. A PR that edits pom.xml now misses this exact key, falls back to the restore-keys prefix for the bulk, and re-downloads its delta each re-run instead of caching it. pom.xml changed 21 times in the last 30 days, so that is a small minority of PRs paying a small delta.