Skip to content

fix(postgres): query each platform's manifest digest in the pin bump - #249

Merged
vishr merged 2 commits into
mainfrom
fix/postgres-bump-platform-digest
Nov 29, 2026
Merged

vishr merged 2 commits into
mainfrom
fix/postgres-bump-platform-digest

Conversation

@vishr

@vishr vishr commented Nov 29, 2026

Copy link
Copy Markdown
Member

What this changes

build/package/postgres-bump.sh runs 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 with docker: 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 check passes locally.
  • Tests cover the new behaviour, including the failure paths. (Shell script; verified by the post-merge workflow run.)
  • Generated documentation is current (just check verifies this).
  • I have accepted the CLA, or will when the bot asks on my first pull request.

🤖 Generated with Claude Code

vishr and others added 2 commits November 29, 2026 06:34
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>
@vishr
vishr merged commit 41fe9ff into main Nov 29, 2026
6 checks passed
@vishr
vishr deleted the fix/postgres-bump-platform-digest branch November 29, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant