Skip to content

fix(release): retain workflow ref after failed validation - #114104

Merged
RomneyDa merged 1 commit into
mainfrom
fix/release-retain-failed-workflow-ref
Jul 26, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/release-retain-failed-workflow-ref

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

Keep a SHA-pinned release-ci/* workflow ref when Full Release Validation ends unsuccessfully, so GitHub Actions failed-job reruns can dispatch child workflows from the same immutable source. Delete it only after a successful parent attempt.

Evidence

  • Reproduced: Full Release Validation run 30187866615 attempt 2 failed before candidate CI because its deleted workflow ref returned GitHub API 422.
  • Focused lifecycle predicate probe passed.
  • Autoreview passed with no actionable findings.

Release impact

Harness-only fix; candidate 1d1f9a2a16e845bc44552ad502f84f37015ffa45 remains unchanged.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Jul 26, 2026
@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. 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 Jul 26, 2026
@clawsweeper

clawsweeper Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 26, 2026, 9:04 AM ET / 13:04 UTC.

ClawSweeper review

What this changes

The branch keeps the temporary SHA-pinned release-ci/* ref after a failed Full Release Validation parent workflow, deleting it only for successful or dry-run attempts.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

This PR remains necessary: it narrows the release-validation cleanup lifecycle so a failed parent GitHub Actions run keeps its SHA-pinned workflow ref available for failed-job reruns. It is also a member-authored, maintainer-labeled PR, so conservative cleanup should leave it for normal maintainer review rather than auto-close it.

Priority: P1
Reviewed head: 8785601ede3f83529d8e3508c0a452c21c678feb

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is narrowly scoped, follows the existing script declaration convention, and includes focused lifecycle coverage; release-owner confirmation of retained-ref cleanup behavior remains appropriate.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored release-harness repair is not subject to the external-contributor real-behavior-proof gate; the body nevertheless records a concrete failed-run scenario and focused predicate coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored release-harness repair is not subject to the external-contributor real-behavior-proof gate; the body nevertheless records a concrete failed-run scenario and focused predicate coverage.
Evidence reviewed 4 items Targeted lifecycle repair: The proposed helper deletes the temporary workflow ref only when the branch is explicitly retained, the run is dry-run, or the parent workflow conclusion is success; non-success parent conclusions preserve the ref for GitHub reruns.
Parent result is captured before cleanup: The dispatch path records the completed parent workflow conclusion, throws for any non-success result, and uses that recorded conclusion in the finally cleanup decision.
Focused regression coverage: The test covers failed-parent retention, successful-parent deletion, and dry-run cleanup behavior through the exported lifecycle predicate.
Findings None None.
Security None None.

How this fits together

The full-release-validation script creates a temporary immutable workflow ref, dispatches GitHub Actions against it, waits for the parent workflow, and verifies release evidence. GitHub reruns and child workflow dispatches depend on that ref still existing after a failed parent run.

flowchart LR
  A[Release target SHA] --> B[Temporary SHA-pinned workflow ref]
  B --> C[Dispatch parent validation workflow]
  C --> D[Wait for workflow conclusion]
  D -->|Success| E[Verify release evidence]
  D -->|Failure or cancellation| F[Keep workflow ref for GitHub reruns]
  E --> G[Delete temporary workflow ref]
  F --> H[Operator reruns failed jobs]
Loading

Before merge

  • Resolve merge risk (P1) - After a failed or cancelled parent run, the temporary release-ci/* ref intentionally remains until a successful rerun or an operator performs cleanup; reviewers should confirm that this retained-ref lifecycle is acceptable for terminal failures.
Agent review details

Security

None.

PR surface

Tests +25, Other +26. Total +51 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 25 0 +25
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 29 3 +26
Total 3 54 3 +51

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Confirm retained-ref recovery lifecycle (recommended)
    Accept the intentional automation tradeoff that failed parent runs retain their immutable workflow ref so GitHub Actions reruns can dispatch from the same source.
  2. Pause for a different cleanup owner
    Hold the PR if release owners require a bounded cleanup mechanism for terminally failed validation refs before changing the current deletion behavior.

Technical review

Best possible solution:

Land the narrow cleanup predicate once release-workflow owners confirm retained refs are the intended recovery contract for failed parent runs, with the existing focused test kept as regression coverage.

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

Unclear: the PR body identifies a specific failed validation run and the source path makes the cleanup failure credible, but the supplied review context does not include inspectable run output for an independent live confirmation.

Is this the best way to solve the issue?

Yes: preserving the immutable workflow ref only after non-success parent conclusions is a narrow fix at the cleanup owner, rather than changing release candidates or GitHub Actions dispatch behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6a11e4449757.

Labels

Label changes:

  • add P1: A failed full-release-validation rerun can block the release automation path until the immutable workflow ref is restored or recreated.
  • add merge-risk: 🚨 automation: The patch deliberately changes the cleanup lifetime of GitHub Actions workflow refs used by release-validation reruns.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored release-harness repair is not subject to the external-contributor real-behavior-proof gate; the body nevertheless records a concrete failed-run scenario and focused predicate coverage.

Label justifications:

  • P1: A failed full-release-validation rerun can block the release automation path until the immutable workflow ref is restored or recreated.
  • merge-risk: 🚨 automation: The patch deliberately changes the cleanup lifetime of GitHub Actions workflow refs used by release-validation reruns.
  • 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 member-authored release-harness repair is not subject to the external-contributor real-behavior-proof gate; the body nevertheless records a concrete failed-run scenario and focused predicate coverage.

Evidence

What I checked:

Likely related people:

  • RomneyDa: The supplied PR context identifies RomneyDa as a repository member who authored the focused release-validation lifecycle repair and documented the observed failed-run scenario. (role: current release-validation contributor; confidence: medium; commits: 8785601ede3f; files: scripts/full-release-validation-at-sha.mjs, test/scripts/full-release-validation-at-sha.test.ts)

Rank-up moves

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

  • Confirm that retaining refs after terminal failed or cancelled parent runs matches the release-operations cleanup policy.

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.

@RomneyDa
RomneyDa merged commit 354c6db into main Jul 26, 2026
150 of 160 checks passed
@RomneyDa
RomneyDa deleted the fix/release-retain-failed-workflow-ref branch July 26, 2026 13:13
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 27, 2026
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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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