ci(check): build check-docker to cacheonly instead of exporting a tagged image #257
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/BUNYIP-227-check-docker-cacheonly"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
check-dockerbuilt the api Dockerfilebuilderstage with--tag bunyip-api-builder:check, which made BuildKit export and unpack the builder stage as a local image after every run:exporting layers(~16s),unpacking(~1.5s), plus an attestation/provenance manifest list. Nothing consumes that image; the recipe is purely a build-success gate. It also left a danglingbunyip-api-builder:checkimage thatdev-clean-allhad to clean up.This switches the recipe to
--output type=cacheonly --provenance=false. The fullbuilderstage still runs (including the BUNYIP-58 stub-leak size guard), but the resulting image is discarded instead of exported and unpacked. The now-deadbunyip-api-builder:checkcleanup entry is removed fromdev-clean-all.Why
The image export and unpack were ~17.6s of wasted work on every check run, and the leftover tagged image served no purpose.
cacheonlykeeps all the validation (compile + size guard) with none of the export cost.Verification
just check-dockerexits 0.exporting to image/exporting layers/unpackingstage and no attestation manifest.62045712 bytes(> 5 MB).bunyip-api-builder:checkimage remains after the run.just pre-commit(full fmt + clippy + build + lib tests) passes.Closes BUNYIP-227.