Repository navigation
refactor(test): remove obsolete runner facades - #124159
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 7:45 AM ET / 11:45 UTC. ClawSweeper reviewWhat this changesThe PR removes obsolete Vitest routing, delegation, and empty channel-shard facades so test commands use the canonical multi-plan runner path. Merge readinessNo blocking correctness or security findings. This protected maintainer-authored cleanup removes test-only seams while preserving the canonical multi-plan routing and process-group completion paths. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s test tooling maps requested targets to scoped Vitest plans, then launches those plans with shared process-group cleanup. This refactor simplifies that internal routing layer without changing product runtime behavior. flowchart LR
A[Test command] --> B[Test-target routing]
B --> C[Vitest run plans]
C --> D[Shared process-group runner]
D --> E[Scoped test projects]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -119, Other -55. Total -174 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Land one canonical test-plan and process-cleanup path after exact-head CI completes, leaving no test-only wrapper or empty project behind. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes internal test-tooling facades rather than fixing a user-facing failure. Is this the best way to solve the issue? Yes. The tests now exercise the multi-plan production boundary directly, while the actual runner retains its existing process-group completion owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0134c781cd1f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for
Production tooling delta: +7/-62, net -55. Tests/test support: +9/-128, net -119. Total: +16/-190, net -174. No behavior, docs, config contract, schema, protocol, dependency, or changelog change. |
|
Merged via squash.
|
What Problem This Solves
Removes obsolete test-runner surfaces that no longer represented the repository's actual execution model: an always-empty
extension-channelsVitest project, a single-plan argument builder after routing became multi-plan, a delegated-run wrapper used only by its own test seam, and two test-only runner options.These paths made the test infrastructure look more complex and more configurable than production actually is.
Why This Change Was Made
Tests now exercise
createVitestRunSpecs, the canonical multi-plan production boundary. Channel extensions remain owned by their dedicated split projects, and project-ownership coverage still proves every normal test has exactly one full-suite owner.The real
run-vitestentrypoint continues to composespawnTestProjectsRunnerwith the shared process-group completion owner. Its process-group primitives and watchdog behavior remain directly covered without preserving an alternate runner-path wrapper.User Impact
No product behavior changes. Maintainers get a smaller test-routing surface with one canonical planning and delegation path.
Evidence
coreTests,scripts,testRoot, andtoolingchanged gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready. Typechecks, formatting, lint, dead-export scans, wrapper-shadowing, plugin boundaries, and temp-creation checks passed.git diff --checkpassed.Production tooling delta: +7/-62, net -55. Tests/test support: +9/-128, net -119. Total: +16/-190, net -174. No behavior, docs, config contract, schema, protocol, dependency, or changelog change.
AI-assisted: yes.