Repository navigation
fix(test): route extension roots through bounded planner - #124553
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 8:23 AM ET / 12:23 UTC. ClawSweeper reviewWhat this changesThe PR sends exact extension-root test commands through the shared project planner, adds a 40-file Codex process limit, and covers local and CI fallback plans. Merge readinessKeep open: this is a focused repair with no blocking correctness finding. It needs normal maintainer handling because it is maintainer-authored and carries the protected Priority: P2 Review scores
Verification
How this fits togetherLocal test commands enter the Vitest wrapper, which either invokes Vitest directly or delegates eligible targets to the project planner. The planner selects an extension configuration and emits bounded fresh-process test shards for lanes that cannot safely retain all test state in one process. flowchart LR
A[Local test command] --> B[Vitest wrapper]
B --> C{Eligible extension root?}
C -->|yes| D[Project planner]
C -->|no| E[Direct Vitest]
D --> F[Extension configuration]
F --> G[Bounded process plans]
G --> H[Vitest shards]
H --> I[Test summary]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +70, Other +30. Total +100 across 6 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. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep a single planner-owned route for exact extension roots and retain the narrow routing and limit entries; land only with the demonstrated one-shot commands and exact-head automation checks still green. Do we have a high-confidence way to reproduce the issue? Yes: the linked issue gives the current-main commands and clean Linux/macOS results, and current source confirms that an exact Codex extension root bypasses the planner before this patch. Is this the best way to solve the issue? Yes: routing the direct entrypoint to the existing bounded planner keeps process-lifetime policy in one owner; a separate wrapper-only sharding path would duplicate the Matrix and Telegram precedent. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 66db70133b2c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
ClawSweeper rank-up handling:
Exact-head CI is green at |
|
Merged via squash.
|
…4553) * fix(test): route extension roots through bounded planner * test: cover bounded Codex fallback shards
Fixes #124413
What Problem This Solves
Fixes an issue where maintainers running either
pnpm test extensions/codexornode scripts/run-vitest.mjs extensions/codexcould finish the Codex tests and then lose the run toWorker exited unexpectedlyduring teardown. The issue's clean Linux/macOS A/B evidence isolated this to the one-shot lane itself (Crabbox leasescbx_d0045e753f72andcbx_e4c804319801).Why This Change Was Made
Codex is enrolled in the existing bounded-extension planner with the Matrix-precedent limit of 40 files, producing five fresh processes for the current 165-file lane. Exact existing
extensions/<id>directory targets now delegate from the direct Vitest wrapper to that same canonical project router, so both documented entrypoints share one process-lifetime owner. Explicit files, extension subdirectories, watch/project/config modes, and the direct--configpath remain unchanged; affected Codex CI fallback shards consume the same bounded file sets.User Impact
pnpm test extensions/codexandnode scripts/run-vitest.mjs extensions/codexnow complete with real summaries instead of dying during worker teardown. Product behavior is unchanged. Codex fallback CI plans preserve complete, duplicate-free test coverage while bounding each descriptor to 40 files.Evidence
Pre-fix planner regression:
Pre-fix wrapper-routing regression:
Post-fix proof:
node scripts/run-vitest.mjs test/scripts/run-vitest.test.ts test/scripts/test-projects.test.ts— 2 files, 371 tests passed.node scripts/run-vitest.mjs extensions/codex— emitted five[test] starting test/vitest/vitest.extension-codex.config.tsinvocations;[test] passed 5 Vitest shards in 276.52s.pnpm test extensions/codex—[test] passed 5 Vitest shards in 273.42s.pnpm test extensions/codex—[test] passed 5 Vitest shards in 265.59s.node scripts/run-vitest.mjs test/scripts/ci-changed-node-test-plan.test.ts— 32 tests passed; bounded Codex fallback descriptors are complete and duplicate-free.CI=1 node scripts/check-changed.mjs— passed on the final six-file diff.node_modules/.bin/oxfmton all six touched files — clean.node scripts/run-oxlint.mjs scripts test/scriptsalso surfaced 17 pre-existing findings in untouched current-main test files; none are in this diff or selected bycheck-changed..agents/skills/autoreview/scripts/autoreview --mode uncommitted— clean after the final test update, no accepted/actionable findings.AI-assisted: yes. The change was reviewed against the owning router/planner boundaries and verified through both real entrypoints.