mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
These were the two buildx scopes left writing from pull_request runs after #2634, and they had grown into the largest single consumer of the repo's 10 GB Actions cache budget: 5.57 GB across 19 open PR refs, against 2.49 GB on main. Actions caches are ref-scoped, so none of it was readable by any other PR. floci-native: remove the cache entirely. The image COPYs a natively compiled binary that changes every commit, and Docker layer reuse is sequential, so nothing after that COPY can ever be reused. Measured on a real run, the build imported a cache manifest and then reported zero CACHED layers — it was write-only, while mode=max stored the whole image including that volatile multi-hundred-MB layer on every PR. The step costs ~19-28s with or without it. compat-shim: keep the cache but move production to main. This image builds FROM a published floci/floci tag and its cost is a microdnf install that changes only when the Dockerfile does, so its layers are genuinely stable and worth caching — the defect was only that no producer existed on main, so a PR's first run could never hit. warm-compat-caches.yml grows a `shim` job mirroring the consumer's context, file and build-args; the consumer becomes read-only. A one-off purge of the existing refs/pull/* entries is still needed after this merges, as it was for #2634 — the change stops the writes but does not reclaim what is already stored.