Repository navigation
fix(ci): keep Matrix chunk tests aligned with inventory - #118917
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 4:09 PM ET / 20:09 UTC. ClawSweeper reviewWhat this changesThe PR changes Matrix test-planning assertions to calculate the expected number of bounded test processes from the current Matrix test inventory while retaining the 40-file limit checks. Merge readinessKeep this focused maintainer PR open. Its base revision had 121 Matrix test files while the planner limits Matrix processes to 40 files, so the three-process assertions were brittle; current Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s test planners route Matrix extension tests into bounded one-shot Vitest processes because the non-isolated suite shares module state within each process. The extension runner and full-suite planner consume the same Matrix inventory and produce CI run plans. flowchart LR
A[Matrix test files] --> B[Test inventory]
B --> C[Matrix process planner]
C --> D[40-file process limit]
D --> E[Balanced test chunks]
E --> F[Extension runner tests]
E --> G[Full-suite planner tests]
F --> H[CI test execution]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceTests +26. Total +26 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Land the test-only generalization after the current PR checks complete so Matrix CI assertions continue to match the planner whenever the tracked suite crosses another 40-file boundary. Do we have a high-confidence way to reproduce the issue? No on the inspected current main: it has 118 tracked Matrix tests, so three chunks still match the 40-file limit. The PR base provides a high-confidence source reproduction because its 121 Matrix tests require four chunks while the assertions require three. Is this the best way to solve the issue? Yes. Replacing only the brittle cardinality expectations with an inventory-derived count preserves the existing 40-file and balanced-chunk invariants without changing runtime test planning. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 317320a95eaa. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…outing-20260803 * origin/main: (34 commits) fix(config): reject unsupported diagnostics otel grpc (#93087) fix(providers): recognize configured media credentials across provider boundaries (#118761) refactor: delete dead post-landing plugin/hooks scaffolding (#118920) fix(cron): deliver child results after heartbeat-only parent responses (#118743) fix(ci): keep Matrix chunk tests aligned with inventory (#118917) fix(tts): preserve hidden speech answers when synthesis fails (#118690) test(gateway): add HTTP API QA coverage (#118809) test(qa): cover Control UI sessions and cron (#118838) fix(macos): preserve native command ownership and consent (#118914) test(qa): cover OpenClaw exec process lifecycle (#118819) test(ui): cover diagnostic operator flows (#118837) fix(search): propagate cancellation through provider-owned requests (#118895) test(gateway): cover loopback and LAN access (#118824) refactor(channels): own the lifecycle status contract in SDK patch factories (#118795) test(ui): add guarded config QA coverage (#118814) fix(feishu): fence external collaboration tool results (#118877) test(qa): cover Plugin SDK import topology (#118878) test(qa): register external app SDK proof (#118829) fix(gateway): expire temporal rows in cached session lists (#118875) test(matrix): isolate runtime state (#118892) ...
* commit 'efcced7207baa0b1b1db5e8e1836673a24212657': test(agents): prove process control roundtrip (#118843) test(qa): add memory redaction boundary coverage (#118916) fix(kilocode): model discovery overstates the usable context window (#118868) fix(media): isolate generated-provider text from delivery directives (#118780) test(gateway): add node control-plane QA coverage (#118784) fix(config): reject unsupported diagnostics otel grpc (#93087) fix(providers): recognize configured media credentials across provider boundaries (#118761) refactor: delete dead post-landing plugin/hooks scaffolding (#118920) fix(cron): deliver child results after heartbeat-only parent responses (#118743) fix(ci): keep Matrix chunk tests aligned with inventory (#118917) fix(tts): preserve hidden speech answers when synthesis fails (#118690)
…te-dry-run-no-state-mutation * commit '682f60ce56b37c5cd3205fdcbbf25b21d48708f2': (28 commits) fix(config): reject unsupported diagnostics otel grpc (#93087) fix(providers): recognize configured media credentials across provider boundaries (#118761) refactor: delete dead post-landing plugin/hooks scaffolding (#118920) fix(cron): deliver child results after heartbeat-only parent responses (#118743) fix(ci): keep Matrix chunk tests aligned with inventory (#118917) fix(tts): preserve hidden speech answers when synthesis fails (#118690) test(gateway): add HTTP API QA coverage (#118809) test(qa): cover Control UI sessions and cron (#118838) fix(macos): preserve native command ownership and consent (#118914) test(qa): cover OpenClaw exec process lifecycle (#118819) test(ui): cover diagnostic operator flows (#118837) fix(search): propagate cancellation through provider-owned requests (#118895) test(gateway): cover loopback and LAN access (#118824) refactor(channels): own the lifecycle status contract in SDK patch factories (#118795) test(ui): add guarded config QA coverage (#118814) fix(feishu): fence external collaboration tool results (#118877) test(qa): cover Plugin SDK import topology (#118878) test(qa): register external app SDK proof (#118829) fix(gateway): expire temporal rows in cached session lists (#118875) test(matrix): isolate runtime state (#118892) ...
Related: #118892
What Problem This Solves
Fixes an issue where the tooling test suite fails after Matrix gains more than 120 test files because eight assertions assume the 40-file process limit always produces exactly three chunks.
Why This Change Was Made
The extension-runner and full-suite planner tests now derive the expected Matrix process count from the current test inventory and the existing 40-file limit. Runtime chunking remains unchanged; only brittle test expectations are repaired.
User Impact
There is no runtime user impact. Main and contributor PR CI remain green as Matrix test coverage grows.
Evidence
[31, 30, 30, 30].OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/scripts/test-extension.test.ts test/scripts/test-projects.test.tspassed 422/422 tests.oxfmt --check, type-awareoxlint, andgit diff --checkpassed.v2026.7.2-beta.7orv2026.7.1.