Repository navigation
test(reports): deduplicate native process census setup - #139596
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 11:06 PM ET / September 6, 2026, 03:06 UTC. ClawSweeper reviewWhat this changesRemoves redundant setup from the native subprocess-report test while retaining the shared setup, scenarios, and assertions. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped cleanup: current main still duplicates the setup, and the retained shared hook preserves native process inspection. No actionable correctness finding remains; maintainer protection also excludes automatic closure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw's test-report tooling launches Vitest and reads its JSON results. The affected test exercises real subprocesses, whose cleanup uses native Linux process inspection. flowchart LR
A[Shared test setup] --> B[Native process inspection enabled]
B --> C[Real subprocess report test]
C --> D[Vitest JSON report]
C --> E[Process tree cleanup]
D --> F[Report assertions]
E --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -4. Total -4 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep native process inspection owned by the shared setup and preserve the existing real subprocess and report-only coverage. Do we have a high-confidence way to reproduce the issue? Not applicable: this patch removes source-visible duplicate setup rather than fixing a remaining runtime defect. Is this the best way to solve the issue? Yes: removing the repeated per-case assignment is the narrowest cleanup because the awaited shared hook already installs the same native implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cbcc1df2b32b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
283806c to
179e284
Compare
179e284 to
f6ff86f
Compare
|
Merged via squash.
|
* commit 'a2886546df92c3a601db538b1b70125e3519a16f': test(reports): deduplicate native process census setup (#139596) fix(ui): avoid refetching unrelated catalog hosts (#139570) test(compaction): consolidate classification proof at its owner (#139564) fix(apple): harden native state file permissions (#139623) improve(skills): review retained conversation for durable learning (#139656) fix(docker): stage bundled plugin runtime dependencies under the packaged plugin root (#139117) test: close HTTP fixtures before destroying their sockets (#139595) refactor(agents): simplify attempt execution and recovery (#139597) test(gateway): share HTTP authority scenarios (#139611) test(gateway): distinguish final CLI results from draft text (#139605) fix(shell-env): preserve CLI terminal ownership during login imports (#139308)
Related: #139428
What Problem This Solves
Native process census setup is now duplicated inside the real subprocess-report case and its shared beforeEach. The original missing-census issue was independently fixed by #139496 and centralized by #139491 while this PR was being validated.
Why This Change Was Made
Remove only the redundant per-case restoration. The shared beforeEach still restores native spawnSync before every case, and report-only unit cases retain their explicit mock implementations. No production cleanup, deadline or signal policy changes.
User Impact
The real subprocess proof keeps its native Linux census with one setup owner. Four test lines removed; no scenarios or assertions removed.
Evidence
The full report-utils, managed-child-process and run-node-script suites pass 94 tests, with one existing Linux-only case skipped on macOS. Root-test types, script and changed-file lint, deslop, diff check and fresh independent P2 review pass.
The complete local changed gate is currently blocked by an unrelated services test-graph inventory count of 721 against its 720 cap. This removal changes no roots; no cap or ignore was changed. Required CI must pass before landing.