Repository navigation
fix(test): keep Control UI changed tests in UI lane - #126197
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review The initial exact review run expired its review lease while stuck for 45 minutes installing optional live-proof terminal tools. That run was cancelled after the lease expired; please review the unchanged head again. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 19, 2026, 2:18 AM ET / 06:18 UTC. ClawSweeper reviewWhat this changesThe PR sends root Control UI paths such as Merge readinessKeep this maintainer-labeled PR open for normal exact-head CI and human merge handling. The focused classifier repair is correct and has no actionable review finding. Likely related people: steipete (high confidence) and vincentkoc (medium confidence) from changed-test routing history. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherThe changed-test planner turns a Git diff into Vitest project plans used by flowchart LR
A[Changed Git paths] --> B[Changed-test planner]
B --> C[Path classifier]
C --> D{Control UI path}
D -->|UI root or source| E[UI test project]
E --> F[Isolated UI project]
D -->|Other path| G[Owning test project]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +13, Other 0. Total +13 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase or otherwise refresh this small owner-boundary repair onto current main, then land it once exact-head validation confirms UI-root diffs select only the UI and UI-isolated projects. Do we have a high-confidence way to reproduce the issue? Yes: current main's Is this the best way to solve the issue? Yes: aligning the classifier's UI ownership with the planner's existing AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against df9b55315051. 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
|
|
Land-ready proof for exact head
ClawSweeper's optional rank-up move to refresh against newer Proof gap: no packaged/live product proof was run because this is a deterministic test-planner repair with no product runtime behavior or package surface. |
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where
pnpm test:changedon a Control UI-only diff could execute Control UI tests under the unit Vitest configuration when the diff also changed a root UI file such asui/index.html. That produced widespread false failures and zero-test collections, hiding the useful changed-test signal.Why This Change Was Made
The changed-test planner already admits every
ui/**path, so the project classifier now assigns that same complete tree to the Control UI owner while preserving the earlier E2E and isolated-test classifications. A mixed root/source regression protects the full command boundary.User Impact
There is no product runtime change. Contributors can rely on Control UI-only diffs staying in the Control UI Vitest lanes instead of spuriously starting the unit lane.
Evidence
ui/index.html,ui/src/components/markdown.test.ts, andui/src/pages/agents/memory/dreaming.test.tsstarted the unit and UI configs; 39 suites failed, including 97/97 markdown tests and 1/45 dreaming tests.node scripts/run-vitest.mjs ui/src/components/markdown.test.ts ui/src/pages/agents/memory/dreaming.test.ts— 142/142 passed.node scripts/run-vitest.mjs test/scripts/test-projects.test.ts test/scripts/run-vitest.test.ts— 375/375 passed.node scripts/check-changed.mjs -- scripts/test-projects.test-support.mts test/scripts/test-projects.test.ts— passed.AI-assisted; implementation, root cause, and proof reviewed by the maintainer.