Repository navigation
fix(postgres): query each platform's manifest digest in the pin bump - #249
Merged
Merged
Conversation
The first scheduled-style run failed on the runner with "docker: cannot overwrite digest": the containerd image store will not pull one index digest for a second platform. Run each platform's own manifest digest instead, which also fails clearly if the base image drops a platform. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address review: fetch the image index a single time and fail with the registry error when that fails, instead of reporting a missing platform. Take exactly one manifest per architecture, so a duplicate or variant entry cannot produce a multi-line image reference. Surface a failed candidate probe as its own error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 of 4 tasks
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.
What this changes
build/package/postgres-bump.shruns each platform's own manifest digest,postgres@<platform digest>, instead of the multi-arch index digest with--platform.Why this is correct
The first manual run of
postgres-image-bump.yml(run 46273453669) failed in Refresh pins withdocker: cannot overwrite digest sha256:64c8…. The runner's containerd image store refuses to pull the same index digest for a second platform after the first. A platform manifest digest is unique to its platform, so the two runs no longer collide. If the base image ever drops a platform, the script now fails with a clear message.shellcheck passes. I couldn't rerun the script locally because Docker Hub rate-limited my anonymous pulls. The bump workflow always checks out
main, so the real test is dispatching it after merge.Effect on the safety envelope
None. The script only edits pins in a candidate branch; it publishes nothing.
Checklist
just checkpasses locally.just checkverifies this).🤖 Generated with Claude Code