Skip to content

fix(test): report one final failure per invocation - #134850

Merged
steipete merged 5 commits into
mainfrom
steipete/hopeful-cerf-11192e
Sep 1, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/hopeful-cerf-11192e

Conversation

@steipete

@steipete steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #134841 (duplicate final test-failure trailers).

The external integration blocker is resolved by merged #134824. The rebased candidate is awaiting final exact-head CI and native landing gates; current gate evidence.

Additional instructions

This same-repository branch is writable by maintainers.

What Problem This Solves

Fixes an issue where developers running a failing test command would see several competing final FAILED (exit N) lines for one invocation. An intentional assertion failure produced three trailers; an unknown-option startup failure produced four. Nested runners made truncated output harder to interpret.

Why This Change Was Made

The public JavaScript shim, direct TypeScript CLI, project scheduler, and private worker helpers each treated themselves as the final reporting owner. Public CLIs now report once after their execution body settles; internal child entrypoints execute the same bodies and propagate diagnostics, numeric failures, and signals without publishing another trailer.

The scheduler body moves to test-projects-run.mts, while the public test-projects.mts remains import-executed for the serial/max/import aliases. Existing process topology, namespace/group/pipe lifetimes, p-map joins with stopOnError: false, compiler borrowers/disposal, report publication, and asynchronous signal re-raise are retained. The shared failure formatter and generic JavaScript shim are unchanged. Private bootstrap/compiler/plugin trailer emitters are removed; their diagnostics and failure status remain.

Rebased onto aadafdc198c062d61c0c4dc182d311232df6df03, containing canonical release-inventory fix #134824. This carries forward #134688 (preserve shard-crash exit codes and failure reports): the moved scheduler retains getForwardedSignal() ?? signal, signal-derived exit codes, and the required signalExitCode import. Its existing seven crash cases now also require one trailer. Knip now registers the two path-spawned child modules as development entries in its existing executable roots, inherited by the full-tree and script-export scans; this models their actual consumers without adding ignore rules.

User Impact

A failed test invocation ends with one [test] FAILED (exit N) line; direct run-vitest.mts uses [vitest]. Assertion/startup diagnostics and shard summaries remain visible. Successful and help invocations emit no failure trailer. No new options, suppression environment variables, output filtering, dependency changes, or timeout increases are introduced.

Evidence

Observed before/after using an intentional expect.fail("intentional trailer ownership failure") fixture:

node scripts/run-vitest.mjs test/scripts/trailer-repair-repro.test.ts
Before: exit 1, three failure trailers.
After:  exit 1, one final [test] FAILED (exit 1); assertion diagnostic retained.

node scripts/run-vitest.mjs test/scripts/run-vitest.test.ts -- --openclaw-trailer-repro
Before: exit 1, four failure trailers.
After:  exit 1, one final [test] FAILED (exit 1); unknown-option diagnostic retained.

The temporary assertion fixture was removed after proof. The strengthened bounded-process failure/cancellation tests failed on the pre-fix implementation specifically because of duplicate trailer counts.

Integrated owner-split candidate (f99ab67e305e69c5c6aac72f1ec5c4481044145f):

  • node scripts/run-vitest.mjs test/scripts/run-vitest-bounded.test.ts test/scripts/run-vitest.test.ts test/scripts/vitest-process-diagnostics.test.ts — 183 passed. Includes 40 real CLI cases across eight routes covering assertion failure, startup failure, success, help, SIGTERM, finality, child death, and namespace/generation removal.
  • node scripts/run-vitest.mjs test/scripts/vitest-report-owner.test.ts -- -t 'preserves shard crashes' — 7 passed, 59 intentionally unselected. Serial/parallel, direct/delegated, report/non-report, SIGABRT/SIGKILL preserve exit 134/137, incomplete native reports, and exactly one final trailer.
  • node scripts/check-changed.mjs --dry-run --staged, followed by node scripts/check-changed.mjs --staged — passed on the resolved rebase candidate, including both script/test-root typechecks, formatting, script erasability, coercion guard, and full script lint.
  • node_modules/.bin/oxfmt scripts/test-projects-run.mts scripts/test-projects.mts test/scripts/vitest-report-owner.test.ts, git diff --check, and git diff --cached --check — passed.
  • Fresh isolated Codex autoreview: scoped-clean at P0, no accepted/actionable findings. Review and checks ran before git rebase --continue; that owner-split commit tree is identical to the reviewed staged tree.

Earlier proof on the same repair before main integration: 66 build-admission cases passed; all 59 report-owner cases passed across a full run plus one unchanged isolated metadata retry (the full invocation itself was not green); four real SIGINT routes passed with exit 130 and cleanup; metadata/watch-source checks and the small namespace spawn-failure/uncertain-join cases passed.

Earlier local proof limitations: the heavy compiled-artifact test ends verification failure with a failed trailer exceeded its unchanged 120000ms deadline on both this repair and an untouched same-base comparison. Real SQLite namespace cleanup cases also timed out. This establishes a baseline timeout, not correctness of those paths or a proven cause. Host load was high; compilation/deletion performance remains a separate named follow-up, Investigate compiled-worker test timeouts. No repeated heavy local retries or deadline increases were used. The Linux proof update below supersedes these execution gaps; the local performance cause remains unproven. Native preparation/merge gates remain outstanding.

Size: 22 files. Executable tooling (including test/vitest/vitest.worker-artifacts.ts) +573/-529, net +44; tests/test support +202/-33, net +169; docs +6/-0. Most tooling churn is the scheduler move. The remaining growth pays for explicit public/internal execution and signal boundaries while preserving the existing subprocess and imported-alias contracts; removing process boundaries or adding suppression flags would change those contracts or retain duplicate reporting policy.

CI follow-up: the first run, https://github.com/openclaw/openclaw/actions/runs/33472445017, failed its dependency check because Knip did not know the two new path-spawned roots and consequently reported runVitest as unused. The three-line entry registration fixes that integration gap. Before the corrective push:

  • node --import ./scripts/tsx.mjs scripts/check-deadcode-unused-files.mts — both scans passed with zero entries.
  • node --import ./scripts/tsx.mjs scripts/check-deadcode-exports.mts — production, full-tree, and script scans passed with zero entries.
  • node scripts/run-vitest.mjs test/scripts/check-deadcode-exports.test.ts test/scripts/check-deadcode-unused-files.test.ts test/scripts/check-deadcode-reporting.test.ts — 50 passed.
  • node scripts/check-changed.mjs -- config/knip.config.ts and targeted formatting/diff checks — passed.
  • Fresh isolated Codex autoreview of the mechanical registration — scoped-clean at P0, no accepted/actionable findings.

The lead approved the owner-split repair and this registration, conditioned on green exact-head CI, completed native evidence, and native landing gates. The next CI run, https://github.com/openclaw/openclaw/actions/runs/33473875709, passed all unused-file/export scans but exposed a production-entry classification error: Knip's trailing ! forces development test helpers into the production dependency scan, which reported rg and vitest. Both roots now remain registered without that production suffix. Knip 6.32.2's WorkspaceWorker.getProductionEntryFilePatterns and normal getEntryFilePatterns confirm that this retains full-tree/script consumers while selecting the proper development graph. No dependency, ignore, baseline, or suppression rule was added.

  • pnpm deadcode:full passed after this correction (production dependency audit and full-tree export audit).
  • Targeted formatting and git diff --cached --check passed.
  • Fresh isolated Codex autoreview of the development-entry correction was scoped-clean at P0, with no accepted/actionable findings.

Concrete Linux proof on runtime head a116bc548299b0294ad33ffd789875dc5a64876d now closes the earlier native execution gaps: worker-artifact lane passed all 33 cases, explicitly including ends verification failure with a failed trailer in 11.6 seconds; SQLite namespace lane passed all 23 namespace cases, including threads/forks, failures, paused teardown, explicit/sibling state preservation, and uncertain-join retention. This latest correction changes Knip configuration only. Final exact-head CI and native landing gates still need to complete.

Test behavior is documented in https://docs.openclaw.ai/reference/test.

The next exact-head run, https://github.com/openclaw/openclaw/actions/runs/33474518696, passed check-dependencies, all 33 artifact cases (lane), and all 23 SQLite namespace cases (lane). It also caught a missing dependency in the native wrapper's extracted-anchor inventory: run-vitest.mts imports vitest-cli.mts, which imports the existing src/cli/wait.ts. Both files are now included in wrapper-components.txt, so extraction and per-blob verification cover the complete imported closure. The existing real extracted-helper regression supplies the proof; its fixture allows the src directory created by that inventory. No trust-selection, guard, runner, or signal logic changed.

The ClawSweeper review found no source-level blocker and asked for failed checks to be resolved and the public/child boundary to remain lean. The retained boundary preserves subprocess and import-alias contracts; the Knip and anchor-inventory changes model its real consumers. All failed exact-head checks remain landing gates.

  • node scripts/run-vitest.mjs test/scripts/pr-wrappers.test.ts — all 35 passed, including actual extracted tooling/publisher execution and tampered-anchor refusal.
  • node scripts/check-changed.mjs --dry-run -- scripts/pr-lib/wrapper-components.txt test/scripts/pr-wrappers.test.ts, then the actual command without --dry-run — passed, including test-root typecheck, formatting, guards, and script lint.
  • Fresh isolated Codex autoreview of the inventory and fixture correction — scoped-clean at P0, no accepted/actionable findings.

Shared native fixture follow-up, commit b30d7e42764d458ae4b22c6051e77704c39c4bdb: the existing fixture creates src recursively because the verified wrapper inventory now includes src/cli/wait.ts. This preserves the fixture's full native wrapper, gate, lock, and cleanup owners.

  • node scripts/run-vitest.mjs test/scripts/pr-main-refresh.test.ts test/scripts/pr-merge-hosted.test.ts -- -t 'completes supervised prepare with three fresh checkpoints and exact stamps|revalidates prepared release-gate evidence without waiting for older stuck PR CI' — two selected tests passed, 51 intentionally unselected; both files passed.
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-root.tsbuildinfo, targeted formatting, and diff checks — passed.
  • Fresh isolated Codex autoreview — scoped-clean at P0, no accepted/actionable findings.

The earlier cancelled full fixture run remains recorded; the passing focused run closes the fixture-construction gap without claiming the entire cancelled suite passed. At that point, #134914 was the pending canonical release-planner fix. It has since been superseded by merged #134824, as recorded below. No release source was copied into this patch.

Final integration candidate 8bfe7d058420302b4e29cb1fd1d03bb8efccbf8f includes merged #134824 (eaaa6da895f625a2421853587c3ef21286325b7c). #134914 was superseded and closed without merging. The landed producer enumerates immediate package directories and captures metadata only: the same 273 inventory entries now require 23,358 bytes instead of the 1,048,865-byte recursive listing. Its 6,000-file Git-object overflow regression and metadata-symlink checks pass. No release-runtime change is part of this PR's diff.

git range-diff confirms all five task commits are unchanged by this conflict-free rebase. Focused integration proof:

node scripts/run-vitest.mjs test/scripts/release-plan-producer.test.ts test/scripts/run-vitest-bounded.test.ts test/scripts/vitest-report-owner.test.ts test/scripts/pr-main-refresh.test.ts test/scripts/pr-merge-hosted.test.ts -- -t 'Vitest CLI final outcome ownership|preserves shard crashes|completes supervised prepare with three fresh checkpoints and exact stamps|revalidates prepared release-gate evidence without waiting for older stuck PR CI|ignores large runtime trees when collecting candidate metadata|rejects candidate metadata symlinks|matches the exact current publisher inventory'

Result: 55 passed, 161 intentionally unselected: 40 CLI route/outcome cases, seven shard-crash cases, six producer cases, and two native fixture cases.

  • node scripts/check-changed.mjs --dry-run --base aadafdc198c062d61c0c4dc182d311232df6df03, followed by the actual command without --dry-run — passed, including script/test-root typechecks, formatting, script erasability, coercion guards, and script lint.
  • Fresh isolated Codex autoreview of the entire final patch against that exact main SHA — scoped-clean at P0, no accepted/actionable findings.

@clawsweeper

clawsweeper Bot commented Sep 1, 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: XL maintainer Maintainer-authored PR labels Sep 1, 2026
@steipete
steipete marked this pull request as ready for review September 1, 2026 05:08
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 3:21 AM ET / 07:21 UTC.

ClawSweeper review

What this changes

The branch makes public Vitest test commands print one final failure trailer after child cleanup and report publication while internal runners retain diagnostics and exit outcomes without competing trailers.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this maintainer-owned, protected PR open. Current main still has nested public failure reporters; the branch centralizes final reporting at the public boundary and adds real process-boundary coverage, with no blocking source defect found. Exact-head automation is still incomplete.

Priority: P2
Reviewed head: 8bfe7d058420302b4e29cb1fd1d03bb8efccbf8f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The owner split is coherent and protected by meaningful boundary tests; completion of exact-head automation remains the merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository state identifies a MEMBER-authored PR, so the external-contributor proof gate does not apply; the supplied body nevertheless includes before/after terminal evidence tied to the public wrappers, and the changed tests exercise those real process boundaries.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository state identifies a MEMBER-authored PR, so the external-contributor proof gate does not apply; the supplied body nevertheless includes before/after terminal evidence tied to the public wrappers, and the changed tests exercise those real process boundaries.
Evidence reviewed 7 items Current-main duplicate ownership: Current main’s JavaScript wrapper launches the TypeScript runner, while the project runner also wraps its own execution with the failure-trailer helper; these nested public owners explain the duplicate-trailer path addressed here.
Single public owner: The new shared CLI boundary writes a signal trailer before re-raising the signal, while child entrypoints call the exported execution bodies without wrapping them in another trailer owner.
Scheduler behavior retained: Comparison with the pre-PR project scheduler shows the scheduler move preserves its execution flow, changing only trailer ownership and signal exit delegation.
Findings None None.
Security None None.

How this fits together

OpenClaw’s repository test wrappers launch Vitest workers and project shards, then report the command outcome to developers and CI. The change separates public command reporting from internal child execution so one invocation has one final failure line.

flowchart LR
  A[Developer test command] --> B[Public test wrapper]
  B --> C[Child test runner]
  C --> D[Vitest workers and shards]
  D --> E[Child diagnostics and exit outcome]
  E --> F[Public final failure report]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head CI is not yet complete, so the refactored runner entrypoints and Knip registration still need their normal automation gate.
  • Resolve merge risk (P1) - Production tooling is net +44 lines; the added shared owner boundary is coherent, but its dead-code classification behavior depends on the pending exact-head automation run.
  • Complete next step (P2) - No repair lane is needed: there is no concrete patch defect, while exact-head CI and normal maintainer handling remain outstanding.
Agent review details

Security

None.

PR surface

Tests +167, Docs +6, Other +46. Total +219 across 22 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 9 202 35 +167
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 12 573 527 +46
Total 22 781 562 +219

Review metrics

Metric Value Why it matters
Production versus test delta production tooling +573/-529 (net +44); tests/test support +202/-33 (net +169); docs +6/-0 Most production churn is the scheduler relocation; the remaining growth establishes the shared public-versus-child reporting boundary.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #134841
Summary: This PR is the explicit candidate repair for the duplicate final-failure-trailer report.

Members:

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

Merge-risk options

Maintainer options:

  1. Complete exact-head automation (recommended)
    Let the current exact-head checks finish and repair only a failure attributable to the changed test-wrapper or dead-code entrypoint behavior before merge.

Technical review

Best possible solution:

Retain the single public-reporting boundary and merge after exact-head CI verifies the moved runner entrypoints, worker closure, and dead-code configuration.

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

Yes. Current main’s nested wrapper structure provides a high-confidence source path for duplicate trailers, and the PR’s boundary tests exercise the public commands with failure, startup, success, help, and signal scenarios.

Is this the best way to solve the issue?

Yes. Moving final reporting to a shared public CLI owner while leaving child runners responsible only for execution, cleanup, diagnostics, and outcome propagation is the narrowest maintainable fix.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4f8164436768.

Labels

Label justifications:

  • P2: This corrects misleading developer and CI failure reporting without changing OpenClaw product runtime behavior.
  • merge-risk: 🚨 automation: The PR changes repository test entrypoints and Knip’s executable-entry configuration, which exact-head automation must validate.
  • 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: Repository state identifies a MEMBER-authored PR, so the external-contributor proof gate does not apply; the supplied body nevertheless includes before/after terminal evidence tied to the public wrappers, and the changed tests exercise those real process boundaries.

Evidence

What I checked:

  • Current-main duplicate ownership: Current main’s JavaScript wrapper launches the TypeScript runner, while the project runner also wraps its own execution with the failure-trailer helper; these nested public owners explain the duplicate-trailer path addressed here. (scripts/run-vitest.mjs:4, 4f8164436768)
  • Single public owner: The new shared CLI boundary writes a signal trailer before re-raising the signal, while child entrypoints call the exported execution bodies without wrapping them in another trailer owner. (scripts/lib/vitest-cli.mts:14, 8bfe7d058420)
  • Scheduler behavior retained: Comparison with the pre-PR project scheduler shows the scheduler move preserves its execution flow, changing only trailer ownership and signal exit delegation. (scripts/test-projects-run.mts:276, 8bfe7d058420)
  • Boundary regression coverage: The new matrix exercises public wrapper, direct runner, and all project-runner aliases against failure, startup failure, success, help, and POSIX signal outcomes; it asserts cleanup and exactly one final trailer where applicable. (test/scripts/run-vitest-bounded.test.ts:29, 8bfe7d058420)
  • Documentation matches the owner split: The reference documentation accurately distinguishes the public [test] trailer from direct TypeScript [vitest] execution and says nested runners retain diagnostics without a final trailer. Public docs: docs/reference/test.md. (docs/reference/test.md:234, 8bfe7d058420)
  • Prior review follow-through: The prior ClawSweeper cycle had no outstanding code finding; its sole rank-up move was to wait for exact-head CI. The supplied check projection remains incomplete with a relevant compact check still in progress. (8bfe7d058420)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Wait for the exact-head checks to complete and resolve any branch-attributable failure.

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 (5 earlier review cycles)
  • reviewed 2026-09-01T05:26:39.948Z sha f99ab67e305e69c5c6aac72f1ec5c4481044145f :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T05:47:53.636Z sha 2d5dd249a0b87ef3ad82eede7a58bccc4884813e :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T05:57:55.183Z sha e06f9a9e57a097e0985797b87831f5aec327e7dd :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T06:22:49.354Z sha e06f9a9e57a097e0985797b87831f5aec327e7dd :: found issues before merge. :: [P1] Make the main-refresh fixture tolerate the new src inventory
  • reviewed 2026-09-01T06:35:47.454Z sha b30d7e42764d458ae4b22c6051e77704c39c4bdb :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 1, 2026
@steipete

steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Land-ready proof for candidate 8bfe7d058420302b4e29cb1fd1d03bb8efccbf8f, integrated against aadafdc198c062d61c0c4dc182d311232df6df03.

Exact-head CI is green: run 33480584284 completed successfully for this full head SHA. The required openclaw/ci-gate is SUCCESS; live checks show no failures or pending work. The previous dependency-registration, wrapper-fixture, and release-inventory failures are resolved. The latest ClawSweeper review (07:21 UTC, this exact head) has no source findings; its remaining request for completed exact-head automation is now satisfied.

Root cause: public shims, direct runners, and private helpers each emitted a final failure. Public invocation boundaries now own that report after the shared execution body settles. Internal child entrypoints preserve diagnostics and outcomes without competing trailers. Intentional assertion failure remains exit 1 and changes from three trailers to one; unknown-option startup changes from four to one. Success/help emit none. The private bootstrap/compiler/plugin final emitters are removed; the generic formatter and shim remain unchanged.

The existing p-map joins, process groups/pipes, compiler borrower disposal, namespace cleanup, report publication, imported serial/max aliases, and asynchronous signal re-raise remain intact. The seven inherited shard-crash cases retain exit 134/137 and incomplete reports. Knip registers actual spawned development consumers; the verified native inventory now contains the real helper import closure. Both fixture directory corrections preserve existing trust and cleanup assertions.

Final focused command:

node scripts/run-vitest.mjs test/scripts/release-plan-producer.test.ts test/scripts/run-vitest-bounded.test.ts test/scripts/vitest-report-owner.test.ts test/scripts/pr-main-refresh.test.ts test/scripts/pr-merge-hosted.test.ts -- -t 'Vitest CLI final outcome ownership|preserves shard crashes|completes supervised prepare with three fresh checkpoints and exact stamps|revalidates prepared release-gate evidence without waiting for older stuck PR CI|ignores large runtime trees when collecting candidate metadata|rejects candidate metadata symlinks|matches the exact current publisher inventory'

55 passed, 161 intentionally unselected: 40 real CLI route/outcome cases, seven crash cases, six release-producer cases, and two native fixture cases. node scripts/check-changed.mjs --dry-run --base aadafdc198c062d61c0c4dc182d311232df6df03, followed by the actual command without --dry-run, passed both typecheck lanes, formatting, script erasability, guards/coercion, and full script lint. Fresh managed isolated Codex autoreview of the complete final patch was scoped-clean at P0, with no accepted/actionable findings. Native review artifacts validate at this exact head with zero findings.

Concrete Linux proof already passed all 33 artifact cases, including the verification-failure trailer in 11.387 seconds, and all 23 SQLite namespace cases on the unchanged runtime patch. These include borrower joins, cancellation, namespace disposal, and uncertain-join retention. Earlier local 120-second timeouts occurred on both candidate and untouched base; the local compilation/deletion performance cause remains a separate unproven follow-up. Earlier cancelled local fixture proof and retained evidence remain recorded; no timeout was raised and no cancelled suite is relabeled passing.

The release-inventory CI blocker was resolved by merged canonical #134824, not by a release-source edit in this PR. #134914 was superseded and closed. All five commits are patch-identical after integration. Direct current-main inspection closed ClawSweeper's unavailable-source comparison gap; its sole rank-up request is addressed by final-head green CI. No actionable review finding remains.

22 files; tooling +573/-529 (net +44), tests/support +202/-33 (net +169), docs +6. The scheduler move accounts for most churn; remaining tooling growth preserves explicit public/internal subprocess and import-alias contracts. No dependency, baseline, suppression, timeout, schema, product configuration, or trust rule changed. Proceeding only through native preparation and merge under the explicit landing authorization.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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. 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: 🐚 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. 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 Sep 1, 2026
Make public test CLIs own the final failure trailer after child execution, cleanup, and report publication. Internal execution entrypoints preserve process and signal lifetimes without duplicate reporting.

Closes #134841
@steipete
steipete force-pushed the steipete/hopeful-cerf-11192e branch from b30d7e4 to 8bfe7d0 Compare September 1, 2026 07:06
@steipete steipete self-assigned this Sep 1, 2026
@steipete
steipete merged commit c904e71 into main Sep 1, 2026
175 of 176 checks passed
@steipete
steipete deleted the steipete/hopeful-cerf-11192e branch September 1, 2026 08:51
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
* fix(test): report one final failure per invocation

Make public test CLIs own the final failure trailer after child execution, cleanup, and report publication. Internal execution entrypoints preserve process and signal lifetimes without duplicate reporting.

Closes openclaw#134841

* fix(test): register spawned test runners with Knip

* fix(test): classify spawned runners as development entries

* fix(test): include trailer helper in native wrapper closure

* test(pr): allow source directory in wrapper fixtures
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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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.

Test runner prints duplicate final failure trailers

1 participant