Skip to content

perf(ci): keep the image build cache in GHCR - #6530

Merged
dan-petty merged 4 commits into
mainfrom
perf/6404-registry-build-cache
Nov 20, 2026
Merged

dan-petty merged 4 commits into
mainfrom
perf/6404-registry-build-cache

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

The release spent up to 141 s on the gha cache export of each of the Service, runner and MCP server images, and 14 s on the registry export of the devcontainer. Each image build now reads ghcr.io/<repository>/<target>:buildcache. Only the release build that pushes an image writes it, with mode=max (#4646). The packages are public, so the pull request jobs read the cache with no login and no new permission. The value check image_cache.py goes (owner decision): actionlint, zizmor and the build logs are the proof. The first release after the merge builds with no cache. The proofs of the export time, of the cache use and of CACHED steps in a pull request build wait for that release. Refs #5942.

Closes #6404

Change: openspec/changes/archive/2026-11-20-6404-registry-build-cache/

@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 20, 2026
@dan-petty
dan-petty force-pushed the perf/6404-registry-build-cache branch from 8f4c607 to c054430 Compare November 20, 2026 16:20
@dan-petty

Copy link
Copy Markdown
Owner Author

Owner decision (2026-11-20, direct answer): delete tests/gate/tree_checks/image_cache.py in this PR. It reads the workflows and asserts cache values, which the owner rule of 2026-11-16 (#6060) forbids. Also drop the BASE_EXCLUDE: buildcache edit of cleanup-devcontainer.yml, its requirement and its scenario. That workflow cleans only the devcontainer package, so the edit does nothing for the service, runner and mcp-server caches. The proof of the change is actionlint, zizmor, the release log ("exporting cache to registry") and a PR build log ("importing cache manifest").

@dan-petty
dan-petty force-pushed the perf/6404-registry-build-cache branch from c054430 to 62f3131 Compare November 20, 2026 17:03
The Service, runner and MCP server image builds read ghcr.io/<repository>/<target>:buildcache, and only the release build that pushes an image writes it with mode=max. The retention workflow keeps the buildcache tag. Refs #6404.
Owner decision of 2026-11-20: image_cache.py read the workflows and asserted cache values, which the rule of 2026-11-16 forbids. cleanup-devcontainer.yml cleans only the devcontainer package, so its buildcache edit did nothing for the three new caches. The spec scenarios now cite the build logs.
@dan-petty
dan-petty force-pushed the perf/6404-registry-build-cache branch from 62f3131 to 5d7dbc5 Compare November 20, 2026 17:18
@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 17:33
@dan-petty
dan-petty merged commit b5c9d12 into main Nov 20, 2026
33 checks passed
@dan-petty
dan-petty deleted the perf/6404-registry-build-cache branch November 20, 2026 17:34
dan-petty pushed a commit that referenced this pull request Nov 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.183.2](v0.183.1...v0.183.2)
(2026-11-20)


### Bug Fixes

* **roadmap:** harden the fix-checks Job process as implement does
([#6540](#6540))
([7fc3d53](7fc3d53)),
closes [#6539](#6539)


### Performance Improvements

* **ci:** keep the image build cache in GHCR
([#6530](#6530))
([b5c9d12](b5c9d12)),
closes [#6404](#6404)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(ci): keep the image build cache in GHCR

1 participant