Repository navigation
ci: fix the multi-arch manifest check, which failed a correct manifest - #559
Merged
Merged
Conversation
#552) The verification step matched '"architecture":"[a-z0-9]+"' against the output of `docker buildx imagetools inspect --raw`. That output is pretty-printed -- the bytes are '"architecture": "amd64"', with a space -- so the regex matched nothing, `got` came back empty, and the step failed a manifest list that was correct. Seen on the first real publish: :latest was stitched properly and advertises linux/amd64 and linux/arm64, but the job that exists to prove that reported failure. The step only runs on a dispatch or a version tag, so it had never executed before and shipped unexercised. Parse the index with jq instead of grepping its formatting, and assert on os/arch pairs. Checked both ways against the live registry: it passes the current multi-arch :latest and fails :latest-amd64.
3 of 4 tasks
This was referenced Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found by running the first real publish. The good news is in #548:
ghcr.io/orlyatomics/orly:latestis now a genuine multi-arch manifest. The bad news is that the job whose entire purpose is to prove that reported failure while doing it correctly.The bug
imagetools inspect --rawpretty-prints. The actual bytes are:"architecture": "amd64"— with a space. The regex requires none, so it matched zero times,gotcame back empty, and both assertions failed:Meanwhile the stitch above it had worked perfectly.
Why it shipped
The step only runs on
workflow_dispatchor av*tag. Neither had ever happened — the repo has nov*tags at all — so this ran for the first time on the first publish, which is exactly the run it was supposed to protect. A gate that has never executed is not a gate.The fix
Parse the index instead of grepping its formatting:
Asserting on
os/archpairs rather than architecture alone also makes the check say what it means — alinux/amd64+windows/arm64pair would have satisfied the old one.Checked both directions against the live registry rather than reasoning about it:
:latest(multi-arch)linux/amd64,linux/arm64:latest-amd64(single)The
?andselect(. != null)are what make the second row a clean failure instead of a jq error.