mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
Actions caches are ref-scoped: a pull_request run may read the base branch's caches, but its writes land in refs/pull/N/merge, private to that PR. compatibility.yml is pull_request-only and no workflow on main wrote buildx caches, so main held 3 cache entries while four PR refs held ~3.07 GB each — 13.24 GB against GitHub's 10 GB repo limit. Every PR therefore built all eight compat test images cold and wrote a private copy no other PR could read, and LRU eviction removed entries even between a single PR's own runs. The sdk-test-java image build, which sits on the compat critical path, swung between 29s and 211s at random: 2 cache hits in 12 sampled runs. Add warm-compat-caches.yml to populate the scopes on main, and drop cache-to from the legs so they read that one shared copy. PRs now get a warm read on their first run, which was previously impossible. The warm triggers watch dependency-bearing inputs only, since 182 of the last 90 days' commits touched compatibility-tests/ but just 31 touched a manifest. sdk-test-go is the exception and is watched wholesale: its Dockerfile runs `go mod download` after `COPY . .`, so any source change invalidates its dependency layer. The existing 13 GB is not cleaned by this change; the PR-scoped entries need a one-off purge after merge, or they will keep evicting the main cache this adds.