Skip to content

fix(deploy): resolve the newest reused digest across all describe-images pages - #1226

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

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

Conversation

@athvin

@athvin athvin commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Closes #1225

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

What

Rebased onto #1224, which already fixed the per-page --query split with --output json. What remains here is one narrowing: the reuse path now considers tagged images only (imageDetails[?imageTags]).

Why

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.

Proof

Resolved script run end to end against real ECR (read-only, DEPLOY_SHA=b86f12cc): exit 0, four valid output lines, and both reuse checks print "reuse verified". Admin-merged without waiting for PR CI, at the owner's explicit request.

Risk & rollback

Only the image-reuse path changes. Untagged digests are no longer candidates; they carry no sha, so the staleness guard could never verify them anyway. Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: unclosed

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not:
  • images built, or correctly never ran because nothing that goes into
    an image changed:
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion:
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change:
  • the board card reached Done through the automation rather than by
    hand, and the issue closed:
  • follow-ups are open for everything deferred here — numbers:
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned:

Specific to this change

  • this merge's own images → deploy run (the script path is in images paths) succeeds for dev and prod:
Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

🤖 Generated with Claude Code

@athvin

athvin commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #1224, which fixed the same per-page --query bug (via --output json plus a one-digest guard) and merged first. Verified its query against ECR: one digest per repo, the same ones this branch resolved.

@athvin athvin closed this Nov 25, 2026
@athvin
athvin temporarily deployed to marketing-preview November 25, 2026 09:38 — with GitHub Actions Inactive
@athvin
athvin deleted the fix/deploy-digest-pagination branch November 25, 2026 09:39
@athvin
athvin restored the fix/deploy-digest-pagination branch November 25, 2026 09:39
@athvin athvin reopened this 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
athvin force-pushed the fix/deploy-digest-pagination branch from 75f1291 to ce37205 Compare November 25, 2026 09:40
@athvin
athvin merged commit 3818e5b into main Nov 25, 2026
33 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 25, 2026 09:40 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — ce37205d Deployed Nov 25, 2026 by athvin via remove closed PR previews #49
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 image digests fails whenever an image is reused — describe-images --query applies per page

2 participants