Repository navigation
fix(ci): adopt dispatched release validation runs - #120342
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 7, 2026, 6:36 PM ET / 22:36 UTC. ClawSweeper reviewWhat this changesThe PR makes Full Release Validation adopt and validate the exact child workflow run returned after dispatch, retain list-based recovery for legacy output, and cancel an owned child when its workflow SHA is rejected. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep this PR open: it remains necessary, and the previous cancellation-order blocker is fixed on the current head. The remaining merge gate is evidence for the external GitHub CLI stdout contract and a real post-fix dispatch trace; the source checkout could not retrieve that upstream contract because DNS was unavailable. Priority: P1 Review scores
Verification
How this fits togetherFull Release Validation is the release parent workflow that dispatches several child validation workflows and monitors their results. Dispatch output flows through child identity validation and ownership tracking before the parent reports success, failure, or cleanup. flowchart LR
Parent[Release validation parent] --> Dispatch[Dispatch child workflow]
Dispatch --> Output[GitHub CLI output]
Output --> Identity[Validate child identity]
Identity --> Ownership[Record child and install cleanup]
Ownership --> Monitor[Monitor child workflow]
Monitor --> Result[Release validation result]
Decision needed
Why: The source path is coherent and the previous defect is repaired, but DNS prevented independent upstream-source inspection and the available harness does not establish the external CLI output shape. Before merge
Agent review detailsSecurityNone. PR surfaceTests +114, Config +46, Other 0. Total +160 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the validated direct-run adoption with legacy polling fallback, then document the v2.97 output contract or attach a redacted real dispatch trace before landing. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction was run here: the cited historical parent and child runs establish the failure mode, and current-main source shows the list-only path, but a real dispatch could not be executed in this read-only review. Is this the best way to solve the issue? Yes, conditionally: adopting the authoritative dispatch result at the workflow owner and retaining polling only as fallback is the clean fix, but the external CLI output contract still needs independent confirmation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8bf62e70075b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Dependency graph guard clearedThis PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh
|
bd588d6 to
d0fe3cc
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready verification is complete for The original failure was parent run https://github.com/openclaw/openclaw/actions/runs/31125954087 losing the already-created CI child https://github.com/openclaw/openclaw/actions/runs/31129806068 because list propagation lagged. This head adopts the authoritative URL returned by GitHub CLI, validates identity before ownership, preserves exact-name recovery for legacy/ambiguous responses, and cancels an identified child before rejecting a workflow-SHA mismatch. Proof:
Maintainer decision: the pinned GitHub CLI v2.97 source contract, historical real parent/child incident, shell-backed tests, and exact-head CI are sufficient. A new live dispatch trace is not required before landing. |
|
Merged via squash.
|
* fix(ci): adopt dispatched release validation runs * test(ci): update release child validation guard * fix(ci): cancel mismatched release children
What Problem This Solves
Resolves a release-blocking problem where Full Release Validation could fail after successfully dispatching a child workflow because the parent discarded the exact run URL and depended only on an eventually consistent run listing. During the 2026.8.1 beta validation, the CI child existed and ran, but the parent timed out without recording its run ID.
Why This Change Was Made
The parent now adopts the exact child run identity returned by GitHub CLI when available, validates the run's workflow, title, branch, workflow SHA, and event before taking ownership, and keeps exact-name polling only for legacy empty responses or ambiguous transient dispatch errors. The dispatch POST remains one-shot, so recovery cannot create duplicate children.
GitHub CLI v2.97's
workflow runcommand requests run details and prints the run URL on non-TTY stdout when the API supports it; older 204 responses remain supported by the polling recovery path.This PR is AI-assisted. I reviewed the implementation and the upstream GitHub CLI contract, and Codex-backed autoreview reported no actionable finding.
User Impact
Release operators can run Full Release Validation without a successfully created child being lost to list-API propagation delay. There is no product-runtime behavior change.
Evidence
node scripts/run-vitest.mjs test/scripts/release-no-push-workflow.test.ts test/scripts/package-acceptance-workflow.test.ts test/scripts/ci-workflow-guards.test.ts— 285 passed, 2 skippednode scripts/check-workflows.mjs— passedactionlint .github/workflows/full-release-validation.yml— passedgit diff --check— passed[email protected]and has no lockfile deltagpt-5.6-solautoreview passes after implementation, the stale-guard follow-up, and the cancellation-order repair — clean, no accepted/actionable findingsd0fe3cc0eaacdd810532bbf202abc9a4a857745d, found no code finding, and left only the maintainer proof-sufficiency decision