Skip to content

fix(ci): adopt dispatched release validation runs - #120342

Merged
steipete merged 3 commits into
mainfrom
steipete/2026-8-1-release-validation-d90625
Aug 7, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/2026-8-1-release-validation-d90625

Conversation

@steipete

@steipete steipete commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

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 run command 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

@steipete
steipete marked this pull request as ready for review August 7, 2026 20:24
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 7, 2026
@steipete

steipete commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 7, 2026, 6:36 PM ET / 22:36 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep 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
Reviewed head: bd588d610916ee86a9f4b37f81eb417c89107aeb
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The repair is focused and addresses the prior blocking path, with one external-contract evidence gap before merge confidence is maximal.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored CI reliability PR is exempt from the external-contributor proof gate; its cited incident and mock workflow tests are useful but do not constitute a post-fix live dispatch trace.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored CI reliability PR is exempt from the external-contributor proof gate; its cited incident and mock workflow tests are useful but do not constitute a post-fix live dispatch trace.
Evidence reviewed 5 items Prior cancellation finding resolved: The head validates non-SHA identity, records the child run, installs the cleanup trap, and only then rejects a mismatched workflow SHA, so the prior unowned-child exit path is removed.
All child workflows share the repaired path: The dispatch anchor is reused by all five release-validation children, and focused tests cover direct URL adoption, fallback polling, identity rejection, and SHA-mismatch cancellation.
Current main still needs the repair: Current main has not changed any of the four PR-touched paths since the PR base and retains the list-based child-run discovery path.
Findings None None.
Security None None.

How this fits together

Full 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]
Loading

Decision needed

Question Recommendation
Is the cited GitHub CLI v2.97 source plus focused mock coverage sufficient to merge, or should this PR first include a redacted real dispatch trace showing the returned run URL is adopted? Require production-path evidence: Capture a redacted v2.97 dispatch output and resulting adopted child run before merge.

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

  • Resolve merge risk (P1) - GitHub CLI v2.97's exact non-TTY stdout shape was not independently inspected, and the focused harness supplies the expected URL literally rather than exercising a real dispatch.
  • Resolve merge risk (P1) - Exact-head CI is still incomplete; merge should wait for its required automation checks and either upstream-source confirmation or a redacted post-fix dispatch trace.
  • Complete next step (P2) - No mechanical repair remains; a release-workflow owner should resolve the direct GitHub CLI contract and post-fix dispatch-proof gate before merge.
Agent review details

Security

None.

PR surface

Tests +114, Config +46, Other 0. Total +160 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 121 7 +114
Docs 0 0 0 0
Config 1 75 29 +46
Generated 0 0 0 0
Other 1 4 4 0
Total 4 200 40 +160

Review metrics

Metric Value Why it matters
Production versus test LOC production +79/-33; tests +121/-7 The workflow growth is justified by authoritative child-run identity and cleanup ownership; the accompanying tests cover the new dispatch and cancellation branches.

Merge-risk options

Maintainer options:

  1. Capture a real dispatch trace (recommended)
    Before merge, show a redacted GitHub CLI v2.97 dispatch whose returned URL is adopted by the parent workflow.
  2. Accept the bounded CI risk
    Treat the linked upstream source and exact-head CI as sufficient despite the absent direct dispatch trace.

Technical review

Best 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.

Labels

Label justifications:

  • P1: A lost release-validation child can make an active release operation fail despite the child workflow having started.
  • merge-risk: 🚨 automation: The PR changes release workflow dispatch, child ownership, polling fallback, and cancellation behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored CI reliability PR is exempt from the external-contributor proof gate; its cited incident and mock workflow tests are useful but do not constitute a post-fix live dispatch trace.

Evidence

What I checked:

Likely related people:

  • steipete: Authored all four commits in this focused PR, including the follow-up that addresses the earlier cancellation-order review finding; deeper main-history attribution was unavailable in the partial checkout. (role: recent release-validation workflow contributor; confidence: medium; commits: 579e9a4db9d4, 72e6a6f8f85a, 205fac6de476; files: .github/workflows/full-release-validation.yml, test/scripts/package-acceptance-workflow.test.ts, test/scripts/release-no-push-workflow.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach a redacted real dispatch trace or independently verify the linked GitHub CLI v2.97 output contract.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-07T20:55:38.629Z sha 72e6a6f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-07T21:45:17.402Z sha 72e6a6f :: needs changes before merge. :: [P1] Cancel an owned child before failing direct-URL validation

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 7, 2026
@steipete
steipete requested a review from a team as a code owner August 7, 2026 22:29
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 7, 2026
@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: d0fe3cc0eaacdd810532bbf202abc9a4a857745d

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 7, 2026
@steipete
steipete force-pushed the steipete/2026-8-1-release-validation-d90625 branch from bd588d6 to d0fe3cc Compare August 7, 2026 22:42
@github-actions github-actions Bot removed the dependencies-changed PR changes dependency-related files label Aug 7, 2026
@clawsweeper clawsweeper Bot removed the rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. label Aug 7, 2026
@steipete

steipete commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

steipete commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready verification is complete for d0fe3cc0eaacdd810532bbf202abc9a4a857745d.

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.

@steipete
steipete merged commit 7016b9c into main Aug 7, 2026
116 checks passed
@steipete
steipete deleted the steipete/2026-8-1-release-validation-d90625 branch August 7, 2026 23:44
@steipete

steipete commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 8, 2026
* fix(ci): adopt dispatched release validation runs

* test(ci): update release child validation guard

* fix(ci): cancel mismatched release children
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant