Skip to content

fix(release): full validation survives queued parent states - #129166

Merged
steipete merged 1 commit into
mainfrom
steipete/fix-frv-queued-parent-129104
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/fix-frv-queued-parent-129104

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Closes #129104

What Problem This Solves

Fixes an issue where the SHA-pinned Full Release Validation helper could abandon a still-running validation when GitHub transiently reported the parent as queued and the Release Decision artifact had not been created yet.

Why This Change Was Made

The helper now recognizes GitHub CLI's current named-artifact absence message as a retryable polling result. It preserves intentional early Release Decision handling so blockers can still surface while Diagnostic Drain runs, and it waits for both a completed parent status and a terminal conclusion before terminal cleanup.

The regression fixture exercises an in-progress to queued to in-progress to completed transition, verifies the missing artifact is retried rather than treated as fatal, and covers a completed parent response whose conclusion is still absent. The operator documentation now states both the early-decision and terminal-cleanup boundaries. This change is AI-assisted and was reviewed against the full affected helper, tests, docs, history, and live failure evidence.

User Impact

Release operators keep one controller attached to an expensive validation run instead of receiving a false local failure and potentially dispatching duplicate work. Early blocker visibility remains unchanged, and failed validations still retain their immutable temporary refs for diagnosis and reruns.

Evidence

  • Live failure: https://github.com/openclaw/openclaw/actions/runs/32819785885 continued running after the helper exited on no artifact matches any of the names or patterns provided.
  • Pre-fix regression proof: the focused queued-transition test failed with that exact artifact error and exit code 1.
  • Post-fix focused proof: the same regression passed, including all four parent polls and four early artifact polls.
  • Rebased helper regressions: 2 passed, 29 skipped.
  • Full helper suite: 31 passed.
  • node scripts/check-changed.mjs -- docs/reference/full-release-validation.md scripts/full-release-validation-at-sha.mts test/scripts/full-release-validation-at-sha.test.ts
  • pnpm docs:list
  • git diff --check
  • Mandatory uncommitted autoreview: clean, no accepted/actionable findings.
  • Delta: tooling +4/-2, tests +84/-4, docs +9/-7.

Handle GitHub's current missing-artifact message without abandoning active full validation, while preserving early blocker decisions. Covers #129104.
@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@steipete
steipete marked this pull request as ready for review August 25, 2026 08:33
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready verification is complete on exact head 4b29c1f8d054d8276b5912727b6fb424e23b251b.

The live failure was reproduced by Full Release Validation run https://github.com/openclaw/openclaw/actions/runs/32819785885: GitHub transiently returned a queued parent, the exact Release Decision artifact did not yet exist, and the helper exited on the current GitHub CLI absence message while the parent and children continued.

Proof completed:

The patch preserves intentional early Release Decision polling, makes the not-yet-created named artifact retryable, and requires a completed parent plus terminal conclusion before terminal cleanup. No live validation was duplicated; the original immutable parent and retained refs remain available for diagnostics.

ClawSweeper's PR review publisher is still in progress and has posted no actionable finding or rank-up move. Per repository policy, the queued publisher is not a landing blocker once exact-head CI and mandatory autoreview are green.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 4:40 AM ET / 08:40 UTC.

ClawSweeper review

What this changes

The PR keeps the full release-validation helper polling when a queued parent has not yet produced its Release Decision artifact or has no terminal conclusion.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-owned PR open: it is a focused, source-backed repair for the linked active release-validation issue, and no blocking correctness finding was found.

Priority: P2
Reviewed head: 4b29c1f8d054d8276b5912727b6fb424e23b251b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with credible regression coverage and no identified correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body also links an observed Actions failure and focused after-fix test evidence.
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 PR is exempt from the external-contributor proof gate; its body also links an observed Actions failure and focused after-fix test evidence.
Evidence reviewed 6 items Current-main failure point: Current main treats any completed parent as terminal even when its conclusion is absent, and does not recognize the named-artifact absence diagnostic as retryable.
Focused owner-boundary repair: The PR adds the current GitHub CLI absence diagnostic to the existing unavailable-artifact cases and waits for both completed status and a nonempty conclusion.
Workflow timing contract: The workflow uploads the decision artifact only after its Release Decision job runs, so its absence while the parent is active is a legitimate polling state.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs test/scripts/full-release-validation-at-sha.test.ts --run

Result: PASS (completed)

node scripts/run-vitest.mjs test/scripts/full-release-validation-at-sha.test.ts --run
runner@runnervm76f27:/tmp/clawsweeper-live-proof-129166-8dHrZy/target$ node scripts/run-vitest.mjs test/scripts/full-release-validation-at-sha.test.ts --run
node scripts/run-vitest.mjs test/scripts/full-release-validation-at-sha.test.ts --run
[test] starting test/vitest/vitest.tooling.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-129166-8dHrZy/target

 ✓  tooling  test/scripts/full-release-validation-at-sha.test.ts (31 tests) 9630ms
     ✓ pushes the target transport ref, dispatches the candidate SHA, and cleans both refs  1187ms
     ✓ retries an absent decision artifact through a parent status regression  1305ms
     ✓ waits for a terminal conclusion across every nonterminal parent state  1368ms
     ✓ dispatches non-main tooling only when its exact protected tag is supplied  1069ms
     ✓ disables evidence reuse and omits the contract 2 input for contract 1 tooling  1085ms
     ✓ rejects pinned old-schema tooling before either remote ref is pushed  703ms
     ✓ rejects pinned pre-contract tooling before either remote ref is pushed  729ms
     ✓ rejects an arbitrary older release-branch ancestor with the wrong package version  484ms
     ✓ keeps both temporary refs with --keep-branch  1080ms
     ✓ fails clearly before dispatch when the target SHA is absent after the named fetch  456ms

 Test Files  1 passed (1)
      Tests  31 passed (31)
   Start at  08:41:24
   Duration  10.16s (transform 270ms, setup 57ms, import 106ms, tests 9.63s, environment 0ms)

[test] passed 1 Vitest shard in 16.26s
runner@runnervm76f27:/tmp/clawsweeper-live-proof-129166-8dHrZy/target$ node scripts/run-vitest.mjs test/scripts/full-release-validation-at-sha.test.ts --run

























Assertions:

  • PASS expect_output: retries an absent decision artifact through a parent status regression
  • PASS expect_output: waits for a terminal conclusion across every nonterminal parent state

How this fits together

The release-validation helper dispatches and monitors a pinned validation workflow, reads early decision artifacts for blockers, and removes temporary refs only after a verified successful terminal result.

flowchart LR
  Operator[Release operator] --> Helper[Validation helper]
  Helper --> Parent[Parent workflow status]
  Helper --> Artifact[Release Decision artifact]
  Parent --> Terminal{Completed with conclusion?}
  Artifact --> Blocker{Blocking decision?}
  Terminal --> Verify[Evidence verification]
  Verify --> Cleanup[Temporary ref cleanup]
  Blocker --> Result[Operator outcome]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +80, Docs +2, Other +2. Total +84 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 84 4 +80
Docs 1 9 7 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 4 2 +2
Total 3 97 13 +84

Review metrics

Metric Value Why it matters
Production versus test delta tooling +4/-2; docs +9/-7; tests +84/-4 The small production change is directly paired with process-level regression coverage for both observed nonterminal states.

Stored data model

Persistent data-model change detected: serialized state: test/scripts/full-release-validation-at-sha.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #129104
Summary: This PR is the explicit candidate repair for the linked queued-parent release-validation failure.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Merge the focused polling repair once the exact-head checks finish, preserving early blocker reporting while reserving cleanup for a conclusively completed parent.

Do we have a high-confidence way to reproduce the issue?

Yes: the linked Actions failure and the process-level fixture provide a high-confidence queued-parent path, though this read-only review did not execute it.

Is this the best way to solve the issue?

Yes: normalizing this exact missing-artifact result as unavailable and requiring a terminal conclusion repairs the polling owner without changing early blocker behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 063fcaf89e25.

Labels

Label changes:

  • add P2: This repairs a bounded release-operator workflow failure that can cause false local failure and duplicate validation dispatches.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: This repairs a bounded release-operator workflow failure that can cause false local failure and duplicate validation dispatches.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Authored several recent release-validation refactors and blocker-handling work, including the early-blocker behavior this repair preserves. (role: recent release-validation feature contributor; confidence: high; commits: a2f0b84e8ada, fa86caf94f64, 750f2f37629d; files: scripts/full-release-validation-at-sha.mts, docs/reference/full-release-validation.md)
  • Peter Steinberger: Previously authored full-SHA validation dispatch work and authored the current focused repair. (role: prior release-validation contributor and current repair author; confidence: high; commits: e1051ceea302, b3248bf8f1a3, 4b29c1f8d054; files: scripts/full-release-validation-at-sha.mts, test/scripts/full-release-validation-at-sha.test.ts)

Rank-up moves

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

  • Let the in-progress exact-head checks complete before merge.

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.

@steipete
steipete merged commit 72b06b0 into main Aug 25, 2026
204 checks passed
@steipete
steipete deleted the steipete/fix-frv-queued-parent-129104 branch August 25, 2026 08:55
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
…129166)

Handle GitHub's current missing-artifact message without abandoning active full validation, while preserving early blocker decisions. Covers openclaw#129104.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Full release helper exits while queued parent is still active

1 participant