Repository navigation
fix(ci): resolve a reused image digest from all pages, and refuse anything but one (#1223) - #1224
Merged
Merged
Conversation
…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
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 was referenced Nov 25, 2026
This branch was previously deployed
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.
Closes #1223
What
deploy-resolve-digests.shreuses the newest ECR digest with--output json(which aggregates every page) instead of--output text(which applies--queryper page). A resolved value that is not exactly onesha256:digest now refuses the deploy.Why
Fix-forward for
main: both deploy jobs failed on 8d50786 (#1217, run 45584573593) withInvalid 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 textprinted two digests (be6e…,e935…), while--output jsonprintedbe6e…, the true newest. The new script resolvesbe6e…alone. The guard accepts the single digest and refuses the two-line value.workflow-shell-checkis 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-c08fc4820306onMac· 2026-11-25T09:41:22Zmainis green with this change on it: mergeb86f12cc. The push runsrust45586618603 andfrontend45586619104, plusinfraanddevcontainer, all succeeded.images: run 45586618157 succeeded with both builds skipped (no image source changed), and its completion triggered the deploy.deployconverged, through the FIXED reuse path. Run 45586659977 (DEPLOY_SHA: b86f12cc) reused both digests and succeeded in dev and prod. Process proof: the live colour in dev (ci/web-api-blue) and prod (app/web-api-green) runser-web@sha256:d8b2fa3b…, built from53e21928(which contains feat(docs): /docs/api — grayscale public API reference with the connect flow (#867) #1217). Both pods logged"er-server listening"at 09:35:15Z, and https://dupezero.com/docs/api answers 200.deployis green, and this is the fix for its failures on8d507865and53e21928.driftandkindwere already red on schedule before feat(api): typed response structs, batch 3 — reviews+merges (#1193) #1202.8d507865,53e21928) are superseded by this one, which contains both.--output textapplies--queryper page), and memory.Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files