Repository navigation
test: share broad tooling routing assertions - #133971
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 4:37 AM ET / 08:37 UTC. ClawSweeper reviewWhat this changesThe PR replaces two duplicated broad Merge readinessKeep open. This is a newly opened maintainer PR with a protected Priority: P3 Review scores
Verification
How this fits togetherThe test-project planner converts selected paths into ordered Vitest shard plans. The changed test protects broad script-target routing, including isolated, Docker, tooling, and E2E plan handling. flowchart LR
A[Broad script target] --> B[Test-project planner]
B --> C[Target classification]
C --> D[Vitest shard plans]
D --> E[Routing assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -61. Total -61 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the single table-driven assertion body, preserving both target rows and all plan-order, chunking, exclusion, uniqueness, and E2E-forwarding checks. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing test coverage rather than reporting a product failure. Is this the best way to solve the issue? Yes. One parameterized test retains both distinct broad-target inputs and the full routing invariant, eliminating duplicate assertion maintenance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5f714efd47bd. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
The test-project planner’s broad-directory and flat-glob cases duplicate the same 60-line assertion body. Keeping two copies makes routing expectations easier to update inconsistently.
Why This Change Was Made
Use one two-row table with both original case names and inputs:
test/scriptsandtest/scripts/*.test.ts. Each case still calls the real planner once and runs all eight original assertions. Exact owner-plan order, tooling chunk bounds, required inclusions/exclusions, uniqueness and the E2E forwarding plan remain unchanged. The separate routing suite is retained in full.The glob case now runs immediately after the directory case, moving across five unchanged planning/watch cases. The suite’s existing hook and all configuration, fixtures and expected literals are unchanged.
User Impact
No user-facing or runtime behavior change. Tests have 61 fewer lines (+5/-66); production LOC is unchanged. This is a maintenance cleanup, not a measured execution-time improvement. No test selection, sharding, concurrency, deadline, retry or mock change.
Evidence
test-projects.test.tsand 83 intest-projects-routing.test.ts.The full changed gate passed on Blacksmith Testbox, including test-root typechecking and script lint. The one-shot lease stopped successfully and its temporary checkout was removed. Exact-head CI run 33373158583 subsequently completed successfully. Fresh compositions at afd1 and landed main 22dcf4c both passed all 450 cases with identical per-file names, order and statuses. The latter preserves the canonical build-stamp ownership mapping from #133974. These focused runs are separate from the earlier full changed gate.