Skip to content

fix(ci): resolve a reused image digest from all pages, and refuse anything but one (#1223) - #1224

Merged
athvin merged 1 commit into
mainfrom
fix/1223-deploy-digest-pagination
Nov 25, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/1223-deploy-digest-pagination

Conversation

@athvin

@athvin athvin commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Closes #1223

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

deploy-resolve-digests.sh reuses the newest ECR digest with --output json (which aggregates every page) instead of --output text (which applies --query per page). A resolved value that is not exactly one sha256: digest now refuses the deploy.

Why

Fix-forward for main: both deploy jobs failed on 8d50786 (#1217, run 45584573593) with Invalid format 'sha256:e935…', so #1217's er-web image (/docs/api) is not live. Any merge that leaves one image unbuilt hits this, now that er-api has 131 images across two pages.

Proof

Reproduced read-only against ECR: --output text printed two digests (be6e…, e935…), while --output json printed be6e…, the true newest. The new script resolves be6e… alone. The guard accepts the single digest and refuses the two-line value. workflow-shell-check is clean.

Risk & rollback

Changes only the reuse branch of digest resolution, plus a stricter refusal. Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306 on Mac · 2026-11-25T09:41:22Z

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

…thing but one (#1223)

deploy-resolve-digests.sh reused the newest digest with --output text,
which applies --query per page. er-api now holds 131 images (two pages),
so 'the newest' was one digest per page. The er_api= output line split,
GitHub rejected the stray line ('Invalid format sha256:e935…'), and both
deploy jobs failed on 8d50786 (#1217), so its er-web image never
shipped. --output json aggregates every page before the query runs:
verified read-only, it returns be6e… alone where text printed be6e… and
e935…. A digest that is not exactly one sha256: now refuses the deploy
rather than shipping whichever line came first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin merged commit b86f12c into main Nov 25, 2026
43 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 25, 2026 09:34 — with GitHub Actions Inactive
athvin pushed a commit that referenced this pull request Nov 25, 2026
#1224 fixed the per-page --query split by switching to --output json.
This narrows the candidates to tagged images: an untagged digest is a
platform child of a tagged index and carries no sha, so the staleness
guard could not verify it and would silently abstain.

Closes #1225

Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin added a commit that referenced this pull request Nov 25, 2026
#1224 fixed the per-page --query split by switching to --output json.
This narrows the candidates to tagged images: an untagged digest is a
platform child of a tagged index and carries no sha, so the staleness
guard could not verify it and would silently abstain.

Closes #1225

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
marketing-preview — aeb2f7fe Deployed Nov 25, 2026 by athvin via remove closed PR previews #47
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.

deploy-resolve-digests: --output text paginates the reuse query, so a reused digest is two lines and the deploy fails

2 participants