Skip to content

ci(release): push each image once, then verify and tag that digest - #6571

Merged
dan-petty merged 3 commits into
mainfrom
ci/6407-release-image-once
Nov 21, 2026
Merged

dan-petty merged 3 commits into
mainfrom
ci/6407-release-image-once

Conversation

@dan-petty

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

Copy link
Copy Markdown
Owner

The release built each of the service, runner and mcp-server images two times: a load build that it smoke-tested and scanned, then a push build that ran the no-cache stages again. Release run 44828633787 pushed other config digests than it scanned.

release.yml now calls the new release-image.yml once for each image, in a matrix with fail-fast false, so each image promotes on its own. Build pushes one build by digest (SBOM, provenance mode=max, the revision label of the release commit). Verify pulls that digest, runs the smoke test of ci.yml and the image scan, and can write no package. Attest & Tag runs actions/attest, imagetools create and a check that each tag names the digest.

The cache filters of main stay: the runner stage runs no apt-get upgrade. For a new outside package, a person re-runs the Build job; Re-run all jobs creates no release.

Closes #6407

Change: openspec/changes/archive/2026-11-20-6407-release-image-once/

The release built the service, runner and mcp-server images two times:
a load build that it smoke-tested and scanned, then a push build that
ran the no-cache stages again. Release run 44828633787 scanned other
config digests than it pushed.

release.yml now calls release-image.yml once for each image, in a
matrix with fail-fast false. Build pushes one build by digest. Verify
pulls that digest, runs the smoke test of ci.yml and the image scan.
Attest & Tag runs actions/attest, imagetools create and a check that
each tag names the digest. Each image promotes on its own.

Closes #6407
@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/release The release-please workflow, the changelog and the published artifacts labels Nov 20, 2026
The checkout of the release commit has a detached HEAD with no branch and no tag, so the git context of docker/metadata-action throws 'Cannot infer ref from detached HEAD' and each Build job fails. The default workflow context runs no git command; the label org.opencontainers.image.revision now takes the input sha. Corrects the release order in a test docstring.
@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 01:17
@dan-petty
dan-petty merged commit 5a66c18 into main Nov 21, 2026
27 checks passed
@dan-petty
dan-petty deleted the ci/6407-release-image-once branch November 21, 2026 01:31
dan-petty added a commit that referenced this pull request Nov 22, 2026
The release image check of `devops ci job-time` (#6522) asked for `MCP
Server Image` and `Runner Image`. No run holds these jobs. Since #6571,
the Actions API names them `<Title> Image / Build`, `/ Verify` and `/
Attest & Tag`. Thus the check read the jobs of each of the 2,385 runs of
`release.yml`, and the daily job did not end inside its 5 min timeout.

- The default list checks the six real jobs of the two images, each over
10 release runs at 360 s.
- The checks of one workflow share one read, with one request for the
jobs of each run.
- A read stops after the jobs of 100 runs
(`DEFAULT_CI_JOB_TIME_MAX_RUNS`). The short-read message names this
bound.
- The test fake uses the job names of the live API, with skipped `${{
matrix.title }} Image` runs.
- The change of #6522 is archived. The help, `docs/TESTING.md` and the
`ci.yml` comment are correct again.

Closes #6734

Change:
`openspec/changes/archive/2026-11-22-6734-release-image-job-names/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/release The release-please workflow, the changelog and the published artifacts type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(release): push each image once, then verify and tag that digest

1 participant