Repository navigation
fix(release): GitHub ghost rerun jobs block Full Release Validation from sealing - #161404
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 30, 2026, 4:57 AM ET / 08:57 UTC (Revision 5). ClawSweeper reviewWhat this changesThe branch filters certain queued duplicate GitHub jobs from earlier Full Release Validation child attempts and adds tests for attempt composition. Merge readiness⛔ Blocked before merge - 6 items remain Keep open. Current main still rejects the reported duplicate jobs, but the latest PR head does not handle the real job rows or unblock child receipt sealing. Both findings from the prior review remain. Priority: P1 Review scores
Verification
How this fits togetherFull Release Validation reads GitHub Actions jobs from each child run attempt and combines them into evidence for release decisions. A separate child job seals that evidence into a receipt before publication can rely on it. flowchart LR
A[GitHub child reruns] --> B[Paginated job inventory]
B --> C[Receipt publisher status check]
C --> D[Attempt composition]
D --> E[Sealed child receipt]
D --> F[Parent continuation]
E --> G[Release decision]
F --> G
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +94, Other +1. Total +95 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use one narrow qualification for stale duplicate rows in the paginated job inventory, shared by attempt composition and receipt sealing, while preserving strict checks for current-attempt and executed jobs. Do we have a high-confidence way to reproduce the issue? Yes. The cited GitHub attempt-list response supplies 17 queued duplicates, and current source shows where composition and receipt sealing reject them; this read-only review did not execute a replay. Is this the best way to solve the issue? No. The composer-only, empty-steps predicate misses the observed rows and cannot affect the publisher's earlier status check. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fa2cbc023e0b. LabelsLabel changes: No label changes. Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
d7dd93c to
7028be9
Compare
6eeed12 to
ba1eab2
Compare
ba1eab2 to
f4fa2b3
Compare
What Problem This Solves
Fixes: Full Release Validation can't continue, verify or publish a run when GitHub leaves never-executed "ghost" copies of a rerun job in a child's earlier attempt.
User Impact
User impact: a GitHub-side glitch during a child rerun no longer poisons the whole release validation run. For 2026.9.7, FRV-E (run 36617008865) had every child green but couldn't seal, and the release needed a fresh FRV-F at the same SHA.
Why This Change Was Made
CI run 36618240551, attempt 2, lists
checks-node-core-runtime-infra-process18 times: one completed success (job 109609047384) and 17 copies with statusqueued, no runner, 0 steps and nocompleted_at. They were all created at 20:38:30Z by a single rerun-failed POST.composeReleaseAttemptJobsrejects duplicate job names in any attempt. Parent verify, continuation, the publisher and child reuse all go through it, so the run couldn't be recovered at the same tooling.The function already drops completed skipped jobs before the duplicate check. This change adds the same treatment for a narrow ghost shape: status
queued, norunner_name, an emptystepsarray, and a completed job with the same name in the same attempt, only in a superseded attempt (earlier than the effective one). Duplicates stay rejected in these cases:To keep production lines near neutral,
compositeJobsDigestPayloadis inlined intoreleaseCompositeJobsSha256. It builds the same object with the same key order, so the hash is unchanged.Child reuse (
scripts/lib/full-release-child-reuse.mjs) still requires every job in an inventory to be completed. So an attempt with ghost jobs still gets a fresh child dispatch instead of reuse. That's the conservative behavior, and this PR doesn't change it.Evidence
test/scripts/full-release-validation-state.test.tsbuild the observed shape (ghosts beside a completed job in superseded attempt 2, effective attempt 3). The main case fails without the fix and passes with it. The negative cases (effective attempt, no completed sibling, copy with a runner) still reject.full-release-validation-state,frvandfull-release-artifact-contracttests: 440 passed.node scripts/run-vitest.mjs test/scripts/full-release-validation-state.test.ts --maxWorkers=1takes 9.9 s wall for 299 tests. The 4 new cases take milliseconds.This is a follow-up for main. It doesn't need to land before the 2026.9.7 publish, which continues at tooling e89ae26 via FRV-F.