Repository navigation
test: make full-suite fixtures portable across runtimes - #148247
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
36cc979 to
ddd1775
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 10:21 AM ET / 14:21 UTC. ClawSweeper reviewWhat this changesThe PR splits large local test runs into bounded processes and updates fixtures to respect Node-specific child processes, macOS shell behavior, and runtime-independent assertions. Merge readiness✅ Ready for maintainer review This remains a useful, focused portability repair absent from fetched main. No blocking correctness finding was identified, and the maintainer-authored, protected PR should remain open. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s test runner converts test selections into Vitest processes. These changes affect how contributors run the full suite and how fixtures exercise tooling, without changing shipped application behavior. flowchart TD
A[Contributor test command] --> B{Explicit test targets?}
B -->|Yes| C[Existing targeted runner]
B -->|No| D[Full suite planner]
D --> E[Bounded unit source chunks]
E --> F[Vitest processes]
C --> F
F --> G[Portable tooling fixtures]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +45. Total +45 across 9 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep test selection with the existing planner and use explicit Node boundaries where fixtures exercise Node-owned behavior. Do we have a high-confidence way to reproduce the issue? No complete high-confidence reproduction was established here: source supports the runtime-substitution and assertion mismatches, but the intermittent long-running Bun failure was not reproduced in this read-only review. Is this the best way to solve the issue? Yes: the patch reuses the existing chunking and Node-resolution owners while retaining meaningful output and failure assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 10d67c803047. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '3c08384584f57787a26da9998488233fc15ccf7e': (122 commits) fix(agents): keep tool result summaries when middleware details exceed shape limits (#147805) test: make full-suite fixtures portable across runtimes (#148247) refactor(qa): share unknown confidence results (#148200) chore(android): remove unused test dependencies and duplicate Wear settings (#148231) test: reuse compiled preflight in startup fixtures (#148330) test(wizard): route recovery integration through database forks (#148337) refactor(plugins): simplify provider auth patch recursion (#147933) fix(cli): drain failed web capability output (#148234) refactor(android): remove unused production helpers (#148233) fix(plugins): scope feed integrity to hosted ClawHub (#148220) test(qa): compare Telegram entities semantically (#148219) test(qa): recognize native Slack exec progress rows (#148217) test(cron): distinguish repeated delivery incidents (#148151) test(qa): preserve restart command ownership (#148218) test(qa): isolate bundled skill CLI gateway state (#148150) test(qa): align process lifecycle contracts (#148149) improve(media): reduce metadata fetched during orphan cleanup (#148244) fix(matrix): retain sync state runtime for deferred persistence (#148152) test: deduplicate gateway watch exit fixtures (#148237) refactor(cli): derive daemon status contract from gatherer (#148108) ...
What Problem This Solves
A direct local full-suite run under Bun exposed test-harness assumptions that do not represent product failures:
unit-srcproject stayed in one worker process for more than 20 minutes and intermittently surfaced a late Vitest mock-transform source-position error that did not reproduce in focused runs;\u001bescape literally, so two ANSI retry fixtures failed on macOS under both Node and Bun;__CF_USER_TEXT_ENCODINGinto the child;PATHspawn behavior as a reference even though the contract already defines the expected POSIX selection.Why This Change Was Made
Local full-suite planning now splits the complete
unit-srcinventory into five balanced processes of 129–130 files, matching the bounded-process strategy already used for unit-fast and tooling tests. This keeps worker lifetime bounded without dropping coverage or changing explicit targeted runs.The focused fixtures now assert their observable contracts: the prototype trap is observed without pinning an engine-specific count, ANSI bytes use a Bash 3.2-compatible escape, the publication worker resolves the actual Node executable while allowing only the known Darwin-injected environment key, and Node-owned tooling fixtures use the shared Node-tool resolver. The pnpm test directly verifies the expected command result through the production spawn specification.
User Impact
No production behavior changes. Contributors can run the complete local suite under Node or Bun on macOS without false failures from runtime internals, shell version, child-runtime substitution, or platform environment injection.
Evidence
unit-srcinventory remains complete at 647 files, split into five processes sized 130, 130, 129, 129, and 129.unit-srcprocess containing the formerly failing OpenAI mock suite: 130 files passed; 2,047 tests passed; 5 expected skips.pnpm build: passed.node scripts/check-changed.mjs: passed for the initial runtime-portability stack; the expanded changed-file check will run before landing.git diff --check: clean.