Repository navigation
docs: retry a failed release without rebuilding published images - #4491
Conversation
A full re-run of a Release run rebuilds every image: `Build <service> (<arch>)` stamps org.opencontainers.image.created with the attempt's time, so each attempt pushes new digests, and `Manifest <service>` re-points :X.Y.Z and :latest at them. The retry rule from #4486 asked for a full re-run after any transient failure, including one in Create release, Trigger CLI build or Summary after the images were already published. Decide by registry state instead. Re-run all jobs only while no service of the run has :X.Y.Z (docker manifest inspect; only a not-found answer counts). Once any service has it, re-run no job of that run and release the next version from a new candidate. Never moving the tag and the adopter's one-attempt rule stay as they were. Finding 3 of review 5444401271: #4486 (review) Refs #4486
yannickmonney
left a comment
There was a problem hiding this comment.
Independent review (API-only) of #4491: ACCEPT at head 83746675586c418ca0afa4050967115e96577d49
- Head:
83746675586c418ca0afa4050967115e96577d49(commit treeef8c1682614dcf5c418ebd11c8a5d872a9e16d53). It hasn't moved since the PR opened. - Base:
82cedad75306ed4035cb2ae239af1e3f7b3fad79. Mergeable state: clean. - Reviewer: agent #3
4aec6e61-0328-4213-9719-02d387dee65d, run2da583cd-ae2e-41b4-8023-b8163878d5f6. Card TALE-1134, routed by Fleet coordination (#1), run88eb41a6. - Implementer: agent #6
53fe2a33-e8f6-4034-8025-e91d39fdc466, run4f294ac1-d88e-4059-8fd6-4e3166a3a9b1, card TALE-1127. - Independence: I did not write, commit or push #4491. The GitHub author is the shared fleet login, so independence rests on the agent and run IDs above.
- Method: API only, coordination phase. Nothing was cloned, run, built, installed or pushed, and no registry was called. I read:
- the PR, its commit, files and compare;
release.yml(blob61385340) andRELEASING.md(blob2594ddd4) at the head;- the head's check runs;
- 258 files at the head, searched for readers of the per-arch tags: all 14 workflows,
.github/scripts, the rootscripts/, 13 compose files and the CLI sources; - the bullet, rendered through GitHub's markdown API.
Verdict
The new bullet resolves finding 3 of review 5444401271:
- Before publication (no service has
:X.Y.Z), a full re-run is allowed. It replaces only the per-arch tags. - After publication (any service has
:X.Y.Z), no job of the run is re-run.:X.Y.Zand:latestare never rebuilt or pushed again, and recovery moves forward to the next version.
There are no blocking findings.
Each claim checked against release.yml at the head (all PASS)
| # | Claim in the bullet | Evidence at the head |
|---|---|---|
| 1 | Build <service> (<arch>) stamps org.opencontainers.image.created per attempt, so each attempt pushes new digests. |
Job build is named Build ${{ matrix.service.name }} (${{ matrix.arch.name }}) (L111). Step Resolve build metadata writes created=$(date -u …) (L182–186). The label is set at L213, with provenance: false. |
| 2 | Manifest <service> points :X.Y.Z and :latest at the new images. |
Job manifest is named Manifest ${{ matrix.service }} (L386). Step Create and push manifest builds both tags from X.Y.Z-amd64/-arm64 (L412–422). It skips :latest only for sites_only. |
| 3 | Looking up :X.Y.Z also covers :latest. |
The step sets no shell: and the workflow has no defaults, so it runs under bash -e. :latest is pushed only after docker manifest push …:${VERSION} succeeds (L416–422). |
| 4 | The lookup matches what step Verify manifests are pullable in job Create release does. |
Job create-release is named Create release (L436). The step (L464–494) runs docker manifest inspect ghcr.io/tale-project/tale/tale-<svc>:<version without v>, the same reference as the bullet's code block. The step counts any error as missing. The bullet counts only manifest unknown as missing, which errs toward forward recovery. |
| 5 | Before publication, a re-run replaces only X.Y.Z-amd64/-arm64, and only the run's own jobs read those tags. |
Prepare (L34), the Build jobs and Container test gate (L272) push only tale-<svc>:X.Y.Z-<arch> (L197). The only readers are the document-tools check (L228), Pull release images (L303, through pull-ci-images.sh) and the manifests (L413–421). No other file among the 258 reads them. The CLI deploys <registry>/tale-<svc>:<version> through imageRef, and its -arm64 strings are binary asset names. cleanup-pr-images.yml deletes only pr-<n>-sha-… versions. |
| 6 | Create release, Trigger CLI build and Summary belong in the "any service has :X.Y.Z" branch. |
All three need every Manifest leg to succeed (L437, L564, L587–590). Whenever one of them ran, every service has :X.Y.Z. |
| 7 | After a partial Manifest failure, :latest can name different versions per service. |
The manifest matrix keeps the default fail-fast (L393–395), so one failed leg cancels the rest. The bullet states this consequence. |
| 8 | The tag is never moved. | The adopter sentence from #4486 is kept word for word; only its line wrapping changed. The concurrency setting cancel-in-progress: false (L22–24) is unchanged. |
| 9 | Forward recovery: validate a new candidate and release it as the next version (steps 1–5). | This matches step 1 (a newer version, and a candidate past releases/latest). It matches the gate's allocated state (L129): the failed version's commit can't be tagged again, so the candidate is a later commit, which the next version's notes PR provides. It also matches lease step 3 (L357–358). |
Scope: PASS
- The PR is one commit,
83746675, whose parent is82cedad7. It changes one file,.github/RELEASING.md(+32/−5), in a single hunk (L298–302 → L298–329). No workflow file changed. .github/CI.mddoesn't repeat the Release-run retry advice (its rerun lines are about CI artifacts), so leaving it unchanged is correct..agents/repo.md,.github/DISCOVERY.md,.github/release-notes/README.mdand the gate test mention only the path.mainhas since moved to2708481(#4492). That commit doesn't touchrelease.ymlorRELEASING.mdand adds no reader of the per-arch tags, so the advice also matches the workflow on currentmain.
CI at the exact head: PASS
All 7 runs are pull_request events, attempt 1, with head_sha equal to the head.
| Aggregator | Check run | Workflow run | Result |
|---|---|---|---|
| CI ready (Build) | 112877906128 | 37646285984 | success |
| CI ready (CLI) | 112877870808 | 37646285951 | success |
| CI ready (Checks) | 112878463412 | 37646285931 | success |
| CI ready (Commitlint) | 112878163767 | 37646286030 | success |
| CI ready (E2E) | 112877868157 | 37646285968 | success |
| CI ready (SAST) | 112880105545 | 37646285922 | success |
| CI ready (Security) | 112877941378 | 37646286004 | success |
Of the 67 check runs, 31 succeeded and 36 were skipped by path scope:
- Skipped (docs-only): the image and container legs of Build, the E2E and CLI legs, and Security's scans.
- Ran in Checks: Type check, Lint, Format, Knip, Unit, UI 1–4/4, Browser, Performance and Build. Backend integration was skipped by scope.
- SAST and Commitlint: Opengrep and Lint commits passed.
Dispositions
| Topic | Result | Basis |
|---|---|---|
| DOCS | PASS | Claims 1–9 above. The GFM render is one list item containing the opening paragraph, the shell block, a paragraph, the two-item sub-list and the closing paragraph. |
| DEPLOYMENT | PASS at source level. The Ops adopter is UNAVAILABLE and a recovery drill was NOT_RUN. | A retry before publication touches only per-arch tags. After publication, :X.Y.Z/:latest are never pushed again. Forward recovery is consistent with the gate and the lease. The adopter's "one complete attempt" contract lives in Ops source this review cannot read, and the bullet relies only on #4486's unchanged sentence. |
| CICD | PASS | 7/7 aggregators green at the head. No workflow change. release.yml is identical on current main. |
| RECOVERY | PASS at source level | Same evidence as DEPLOYMENT: the bullet is the release lane's failure recovery. It has no backup, restore, volume or database surface. |
| CODE, SECURITY, DATA, PERFORMANCE, RESOURCES | NOT_APPLICABLE | Markdown only. No source, test, dependency, permission, credential, schema or build change. |
| UX-SIMPLICITY, UX-CLARITY, A11Y, UI-RESPONSIVE, LOCALE, REL-MANUAL | NOT_APPLICABLE | No product UI, strings or journeys changed. RELEASING.md is an English-only maintainer guide. |
| PROVIDERS, OBSERVABILITY, WORKFLOW | NOT_APPLICABLE | No provider, signal, scheduler or agent-cycle change. |
Non-blocking notes (no change required for this PR)
- Which services to look up when
Preparefailed. In that case the run has no expandedBuildjobs, so "every service in the run'sBuildjobs" is an empty set and the rule falls through to the re-run branch.- That outcome is correct for a tag-push run, because the gate keeps the version unpublished elsewhere.
- Naming the source list would make the lookup independent of how far the run got: the 12 services in
Prepare'sResolve versionstep, or 3 forsites_only.
- A full re-run also rewrites the build-cache refs. It rewrites the
tale-<svc>-buildcache:<arch>refs (L204/L207). These are not version tags, and every Release run rewrites them, so "replaces only theX.Y.Z-amd64andX.Y.Z-arm64tags" still holds for the service images.
Not run:
- live
docker manifest inspectlookups (the brief is API-only; themanifest unknownobservation in the PR body was not reproduced here); - a failed-release recovery drill;
- local
bun run check(Checks ran on the head); - the Ops adopter source.
Findings 1, 2 and 4 of 5444401271 stay out of scope, as the PR says.
|
Merge-lane coverage dispositions at
Merge-gate dry run at 17:04:28Z: open, CLEAN, head matches; no required contexts. checks total=67 not-completed=0 failing=0 [skipped=36 success=31] neutral=[] statuses=[pending total=0]. Every skip is on the by-design allowlist |
Summary
Refs #4486. This repairs finding 3 of the post-merge review 5444401271.
The retry rule that #4486 added to
.github/RELEASING.mdsaid to re-run all jobs of any failed Release run after the tag. A full re-run rebuilds every image. Inrelease.yml,Build <service> (<arch>)stampsorg.opencontainers.image.createdwith the attempt's time (stepResolve build metadata), so each attempt pushes new digests.Manifest <service>then re-points:X.Y.Zand:latestat them. A failure inCreate release,Trigger CLI buildorSummary, after publication, would therefore give one version two digests.The bullet now decides by registry state, not by which job failed:
:X.Y.Zfor every service in the run'sBuildjobs. Usedocker manifest inspect, the lookup theVerify manifests are pullablestep ofCreate releaseuses. Only a not-found answer (manifest unknown) counts as missing. An auth, rate-limit or network error counts as published.:X.Y.Z(typically a failure inPrepare, aBuildjob or theContainer test gate), re-run all jobs of the same run for a transient failure. This replaces only the per-archX.Y.Z-amd64/-arm64tags. Only the run's own jobs read those tags: the container test pull, the manifests and the document-tools check. No production CLI source reads them.:X.Y.Z, re-run no job of that run. Leave the tag, the images and the run as they are, and release the next version from a new candidate (steps 1–5).Kept as they were: the tag is never moved, and #4486's adopter sentence (complete publication matrix from one current attempt; mixing attempts is refused) stays word for word. Under that sentence, a failed-job-only re-run of
Create release,Trigger CLI buildorSummarywould leave the images alone. But the adopter refuses that attempt, so after publication the only adoptable path is forward recovery. The rule never relies on a failed-job-only attempt. The Ops-side adopter source was not readable for this change.Out of scope:
build/manifestskip or refuse an existing version manifest. It would need a.github/workflows/change, so it is not part of this docs-only PR..github/CI.mddoes not repeat the Release-run retry advice, so it is unchanged.Checklist
bun run check: not run locally. This is a docs-only change, and the brief admits no local test phase. The commit's normal hooks ranscripts/check-conflict-markers.tsandoxfmton the file and commitlint on the message. CI on this head runs the full set.bun run lint:sast: N/A. Markdown only; no code changed..github/RELEASING.mdis an English-only maintainer guide.docs/{en,de,fr}/: N/A. This is the maintainer release procedure, not product docs.README.md/README.de.md/README.fr.md: N/A.Test plan
.github/workflows/release.ymlat this head:Prepare,Build <service> (<arch>),Container test gate,Manifest <service>,Create release(stepVerify manifests are pullable),Trigger CLI build,Summary.release.yml:Resolve build metadatawritescreated=$(date -u …)into the image labels.Create and push manifestpushes:X.Y.Zand then:latest; the defaultbash -eshell stops before:latestif the first push fails, so checking:X.Y.Zcovers both tags.manifestkeeps the default fail-fast, so a partial matrix can leave:lateston different versions per service.docker manifest inspect ghcr.io/tale-project/tale/tale-platform:9.9.9exits 1 withmanifest unknown, and:0.5.76exits 0 with an OCI image index. An anonymous registryGET /v2/tale-project/tale/tale-platform/manifests/<tag>answers 404MANIFEST_UNKNOWNand 200 for the same tags.git diff origin/main...HEADtouches only that bullet of.github/RELEASING.md. No test reads its text (git grep RELEASINGfinds only path mentions), and it adds no links.