Skip to content

refactor(test): prove release validation through its harness - #124245

Merged
steipete merged 2 commits into
mainfrom
test/trim-full-release-source-checks
Aug 15, 2026
Merged

steipete merged 2 commits into
mainfrom
test/trim-full-release-source-checks

Conversation

@steipete

@steipete steipete commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The full-release validation tests partially re-read scripts/full-release-validation-at-sha.mts and searched for implementation strings. Those assertions broke under behavior-preserving refactors and duplicated behavior already observable through the repository's executable dispatch fixture.

Why This Change Was Made

Release context, candidate SHA, unreleased-changelog policy, exact REST polling, and the absence of GraphQL or gh run watch are now asserted from the real subprocess's recorded git/gh calls. The old source-order check is removed because the existing old-schema fixture already proves zero remote pushes and zero GitHub calls before trusted-harness validation succeeds.

The bounded 720-minute deadline, 45-second poll interval, bounded remaining sleep, retry cap removal, and dispatch timeout distinction remain independently guarded.

This PR is AI-assisted as part of the maintainer-requested repository test-value audit.

User Impact

No release behavior changes. Maintainers keep the same release-safety coverage with less coupling to source layout and local expression spelling.

Evidence

  • node scripts/run-vitest.mjs test/scripts/full-release-validation-at-sha.test.ts — 19 passed after the review correction
  • The executable fixture parses every trailing workflow input as an adjacent -f / key=value pair before asserting the required release fields
  • node scripts/check-changed.mjs -- test/scripts/full-release-validation-at-sha.test.ts — passed via the documented local fallback; test typecheck, formatting, lint, and tooling guards were green
  • git diff --check — passed
  • Structured autoreview after the pairwise assertion correction — clean

Production/tooling delta: 0. Test delta: -1 net line. No docs, changelog, release behavior, schema, protocol, or operator-state change is required.

@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 15, 2026 18:59
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 15, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 3:14 PM ET / 19:14 UTC.

ClawSweeper review

What this changes

The PR replaces source-text checks in the Full Release Validation test with assertions over Git and GitHub CLI calls recorded by its executable dispatch fixture.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

The updated harness assertion resolves the prior P2: it now verifies adjacent -f key=value inputs, exact REST polling, and the absence of GraphQL or gh run watch from the executed fixture. Current main has not incorporated this test refactor, so the PR remains useful and correct.

Priority: P3
Reviewed head: 9f7bf097ad0ad0062a798b6ad94176f1a7428c62

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch cleanly moves coverage to the executable boundary and fixes the sole prior review concern.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a maintainer-authored, test-only change; the focused executable fixture is the relevant validation evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a maintainer-authored, test-only change; the focused executable fixture is the relevant validation evidence.
Evidence reviewed 4 items Executable dispatch contract: The current release-validation owner builds dispatch inputs from the target ref, expected SHA, optional release context, and defaults, then serializes every entry as an adjacent -f key=value pair.
Prior finding addressed: The PR parses all arguments after the fixed workflow prefix as adjacent flag/value pairs before asserting required release inputs; it also observes the exact REST run query and excludes GraphQL and gh run watch.
Current-main owner history: Blame attributes the current dispatch construction to Peter Steinberger; earlier history identifies the client-pushed target-ref implementation as a release-validation change by the same area owner.
Findings None None.
Security None None.

How this fits together

Full Release Validation creates SHA-pinned temporary refs, dispatches the release workflow, and polls the selected workflow run. Its test fixture intercepts the Git and GitHub CLI calls, turning that release-safety boundary into observable test evidence.

flowchart LR
A[Release candidate inputs] --> B[Release validation script]
B --> C[Git and GitHub CLI calls]
C --> D[Executable dispatch fixture]
D --> E[Recorded arguments and responses]
E --> F[Release-safety assertions]
Loading

Before merge

  • Complete next step (P2) - The prior actionable finding is fixed and no bounded repair task remains; continue through normal exact-head PR checks.
Agent review details

Security

None.

PR surface

Tests -1. Total -1 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 29 30 -1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 29 30 -1

Review metrics

Metric Value Why it matters
Production versus test LOC production 0, tests -1 net The patch changes only test coverage and removes net test code without altering release tooling or runtime behavior.

Technical review

Best possible solution:

Land the behavior-level fixture assertions so release-safety coverage follows the executable dispatch contract rather than source formatting.

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

Not applicable: this PR refactors release-validation test coverage rather than reporting a user-facing failure; the PR body supplies a focused fixture run as validation evidence.

Is this the best way to solve the issue?

Yes. The executable fixture observes the dispatch and polling boundary directly, while the remaining source checks retain inexpensive guards for timing and read-timeout contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8668aeb96987.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P3: This is a contained test-quality refactor with no user-facing or release-runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This is a maintainer-authored, test-only change; the focused executable fixture is the relevant validation evidence.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger introduced the client-pushed target-ref release-validation flow and is the current-main blame owner for dispatch construction. (role: release-validation feature owner; confidence: high; commits: 18dd70cec021, 7e0941270d0d; files: scripts/full-release-validation-at-sha.mts, test/scripts/full-release-validation-at-sha.test.ts)
  • vincentkoc: Vincent Koc authored the recent release-validation retry and soak work, which shares the polling and release-evidence contract covered here. (role: recent adjacent contributor; confidence: medium; commits: 1f591bba562b; files: scripts/full-release-validation-at-sha.mts, test/scripts/full-release-validation-at-sha.test.ts)

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 (1 earlier review cycle)
  • reviewed 2026-08-15T19:04:55.849Z sha 96b05c5 :: found issues before merge. :: [P2] Assert workflow input flag/value pairs

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for 9f7bf097ad0ad0062a798b6ad94176f1a7428c62:

  • node scripts/run-vitest.mjs test/scripts/full-release-validation-at-sha.test.ts — 19 passed after the review correction.
  • The executable fixture now validates the command prefix and parses every trailing workflow input as an adjacent -f / key=value pair before asserting ref, expected_sha, target_context_ref, and allow_unreleased_changelog.
  • Exact REST polling and the absence of GraphQL or gh run watch are asserted from recorded gh calls.
  • The independently meaningful 720-minute deadline, 45-second interval, bounded remaining sleep, retry-cap removal, and read-versus-dispatch timeout checks remain.
  • node scripts/check-changed.mjs -- test/scripts/full-release-validation-at-sha.test.ts — passed via the documented local fallback; test typecheck, formatting, lint, and tooling guards were green.
  • git diff --check — passed.
  • Fresh structured autoreview after the pairwise correction — clean.
  • Exact-head hosted CI — green: https://github.com/openclaw/openclaw/actions/runs/31903081251
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 124245 — complete. The native wrapper accepted exact hosted CI in hosted_exact_or_recent_parent mode; no separate remote lease or Testbox run was used.
  • Native review artifacts validated with READY FOR /prepare-pr and zero findings.

The prior exact ClawSweeper review identified one assertion-shape finding: #124245 (comment). The adjacent-pair parser above resolves that finding and its rank-up moves, and the corrected head has green focused proof plus exact-head CI. An automatic fresh review is currently running for the corrected head; per repository policy, this publisher/review refresh does not block landing when the only post-review change addresses the recorded finding.

Production/tooling delta: 0. Test delta: -1 net line. Known proof gaps: none for this test-only release-harness refactor. No release behavior, runtime, persistent data, migration, docs, changelog, schema, protocol, or operator-state change.

@steipete
steipete merged commit ab5b8b9 into main Aug 15, 2026
162 of 163 checks passed
@steipete
steipete deleted the test/trim-full-release-source-checks branch August 15, 2026 19:14
@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 16, 2026
…w#124245)

* refactor(test): move release validation proof to harness

* test(release): assert dispatch input pairs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant