Repository navigation
test(ui): remove redundant MCP and cold-chat setup - #185745
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR moves MCP background coverage into a native browser component test and consolidates cold-chat checks into the existing standalone isolation scenario. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR removes redundant test setup while preserving distinct regression contracts; no actionable defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI test fixtures mount production components or navigate the standalone mock application, then assert rendered styles, startup readiness, replies, and network isolation. flowchart TD
A[UI test runner] --> B[Native browser fixture]
A --> C[Standalone mock server]
B --> D[Real MCP component and CSS]
C --> E[Cold chat then Profile and Terminal]
D --> F[Computed background assertions]
E --> G[Readiness reply and isolation assertions]
Technical reviewBest possible solution: Retain the consolidation and land it through the existing exact-head CI gates. Do we have a high-confidence way to reproduce the issue? This is test consolidation; source inspection confirms the redundant server lifecycle and separate cold-chat page on the base without executing target code. Is this the best way to solve the issue? The patch uses existing fixture owners, preserves the observable assertions, and removes the replaced setup without introducing production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 520212756599. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -58. Total -58 across 4 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 27, 2026, 5:54 AM ET / 09:54 UTC. |
|
Merged via squash.
|
* test(ui): remove redundant MCP and cold-chat setup * test(ui): await live catalog before checking reopen reads
What Problem This Solves
UI test jobs repeat expensive setup for checks that can use an existing component fixture or cold browser page.
User Impact
No user-visible behavior changes. This removes two test setup layers while preserving the covered contracts. There are no workflow, runner, fanout, dependency, or production changes.
Why This Change Was Made
The responsive suite started a private Vite server solely to check MCP App iframe backgrounds. The same native computed-style check now uses the existing real MCP component mount in the Chromium project. Both dashboard and transparent-inline assertions remain. A distinctive inherited
--cardcolor makes the old fallback observably wrong; the single local run also verified the historical CSS expression resolves to that card color.The standalone mock suite opened a second cold browser context for generic chat startup and sending. Those exact assertions now run in its existing cold HTTP-isolation context before full Profile and Terminal navigations. Cold entry, pane upgrade/readiness, build identity, deterministic reply, composer clearing, HTTP escape detection, and all screenshots remain. The per-file mock server remains shared; one duplicate context/page/navigation is removed.
Evidence
keeps inline MCP App reloads transparent without changing dashboard surfacesand its sole private Vite lifecyclemcp-app-view.browser.test.ts; same two computed colors, actual MCP mount and CSS inheritancestarts with aligned build identity and renders a deterministic reply after generic chat.sendkeeps cold chat startup, sending, profile and presence inside the standalone mock; unchanged startup/pane/send/reply assertions before Profile and Terminal navigationpnpm tsgo:uigit diff --checkThe temporary historical-style override and diagnostic logging were removed after the single passing MCP run. The delivered test retains both original expected colors and the distinctive inherited card color. Initial proof ran each changed file once. The focused CI-repair runner prepared its required private-QA runtime; no separate build or broad suite was requested. The Solid refactor checklist has zero production reactive/effect/owner changes.
Initial setup cut across four files: 4,488 → 4,430 (−58), including the new 28-line browser file. MCP-related files: 3,559 → 3,514 (−45); board fixture: 929 → 916 (−13). All 34 board assertions and all 8 screenshot calls remain. The browser test file count increases by one, while private responsive Vite starts fall from one to zero and standalone contexts from ten to nine. The 19-line catalog readiness repair makes the complete five-file PR 4,888 → 4,849 (−39); production remains unchanged.
CI phase evidence and limits
The following is the historical reference from scheduled main run 40468589754, head
fde1a2ef8667cd00499694dbfb806ba7e7e2aa88. It is not this PR's merge base or an after run. All 13 UI job logs were retained and every selected row was terminal. It charged 94.10 runner minutes (91.27 excluding conditional performance/locale), with 10 passes and 3 failures, and a 697 s completion path. It neither proves the 106-minute campaign baseline nor satisfies the 593 s current critical-path cap.A newer retained scheduled-main run, 40475262163, head
b3b0f1bb8105cf784f87f47a8f31a9564888f2e3, had all 13 UI rows terminal at capture: 149.40 runner minutes, 9 passes, 3 failures, 1 cancellation, and 1,219 s completion path (whole workflow still in progress at capture). Its failed/cancelled work remains charged. These differing failed runs are attribution evidence, not an A/B comparison or savings claim.Both exact-head runs are measured, but this PR's savings are not established. The −30% target against 106 minutes is not claimed. Callback timings and removed setup counts are not runner-minute savings. API job spans include teardown and are not billing invoices. Instrumented interval unions preserve overlap; unobserved work stays unclassified rather than being called test CPU.
All 13 jobs: additive phase minutes, cache/browser refinement, and fixture/Gateway setup
Additive job and owner phases
All cells are runner minutes. Env/deps and browser are refined in the next table. Setup/callback/cleanup/queue/mixed/unclassified replace the original inclusive test cell and sum to it. Unclassified on a missing-log row means the entire test window is unresolved, not test execution.
Additive environment and browser refinements
These rows replace Env/deps and Browser above; do not add them again. Cache includes only observed restore scopes. Install tail preserves a reconciliation scope crossing a rounded API boundary. Residual is uninstrumented action overhead.
Setup-only refinement and non-additive Gateway observations
Fixture-only, Gateway-only and their overlap partition just the setup-only cell above. Gateway-start/readiness unions at the right are nested observations, not additional time; they may also overlap callbacks in mixed windows.
First exact-head after run and CI repair
Run 40482487639 tested
e59a6d8bf0a2eab745e51b5c83f06dd5ef8547bc: 11/12 selected UI jobs passed, with 167.5167 runner minutes (full selected and comparable subtotal), and 1,183 s from preflight completion to the last UI row. Build, performance and locale jobs were skipped. These totals include failed work; the workload differs from the historical table and exceeds the current 593 s target. This run does not establish a cost win.The board fixture passed all 13 tests, including the consolidated cold-chat case (14.250 s). The sole failing test was
Control UI catalog bootstrap > real chat route recovers current account state after pending snapshot ordering, at the final exact request-count assertion (3 versus 2). The same named test passed on both compared scheduled-main runs, so it is not classified as inherited.The follow-up test-only repair waits for the existing native transcript-ready signal after the final reload and for the saved-composer marker to disappear before sampling the no-new-read baseline. All four ordering cases and the exact count equality remain. Source tracing shows saved controls can precede authoritative startup; no deterministic red control was added, and a passing replay alone is not claimed as causal proof. Repair formatting, scoped lint, UI typecheck and diff checks passed. The isolated repair review is scoped-clean P0–P2. The single focused file replay passed all four cases (69.024 s file; 135.80 s Vitest); replacement-head broad CI passed all 12 selected UI jobs in run 40486474087.
First exact-head after run: all 12 charged jobs and additive phase refinements
Additive job and owner phases
All cells are runner minutes. Env/deps and browser are refined in the next table. Setup/callback/cleanup/queue/mixed/unclassified replace the original inclusive test cell and sum to it. Unclassified on a missing-log row means the entire test window is unresolved, not test execution.
Additive environment and browser refinements
These rows replace Env/deps and Browser above; do not add them again. Cache includes only observed restore scopes. Install tail preserves a reconciliation scope crossing a rounded API boundary. Residual is uninstrumented action overhead.
Setup-only refinement and non-additive Gateway observations
Fixture-only, Gateway-only and their overlap partition just the setup-only cell above. Gateway-start/readiness unions at the right are nested observations, not additional time; they may also overlap callbacks in mixed windows.
Final replacement-head result
Run 40486474087, attempt 1, head
e78e02e49aef6882fbe3f2ec940ece8f36c2a81f, completed successfully: 12/12 selected UI jobs passed, including both real-Gateway shards. The observed CI merge checkout was4cad9645aa144faf29ce389d191992acdbeeb906with main parentc5be6441d3a1e4a562cafd9eedd8d0f774e17a64. The formerly failing pending-snapshot catalog case passed in 10.798 s. Board coverage remained 13/13; the consolidated cold-chat case took 12.211 s (79.851 s full file).Build-artifacts, performance and locale rows were skipped on the replacement run; they contribute no active runner time. This is not a controlled before/after comparison: the merge context and workload differ, and these totals do not establish savings against the 106-minute campaign baseline. The final run exceeds both the original 660 s and current 593 s critical-path targets; the −30% total-cost target is still unmet. This change removes one private Vite lifecycle and one cold browser context while retaining their contracts; it does not claim the campaign target.
Final exact-head phase minutes for all 12 charged UI jobs
Additive job and owner phases
All cells are runner minutes. Env/deps and browser are refined in the next table. Setup/callback/cleanup/queue/mixed/unclassified replace the original inclusive test cell and sum to it. Unclassified on a missing-log row means the entire test window is unresolved, not test execution.
Additive environment and browser refinements
These rows replace Env/deps and Browser above; do not add them again. Cache includes only observed restore scopes. Install tail preserves a reconciliation scope crossing a rounded API boundary. Residual is uninstrumented action overhead.
Setup-only refinement and non-additive Gateway observations
Fixture-only, Gateway-only and their overlap partition just the setup-only cell above. Gateway-start/readiness unions at the right are nested observations, not additional time; they may also overlap callbacks in mixed windows.
Unobserved owner phases remain unclassified, not zero. Callback-only intervals include awaited work and are not pure CPU. Fixture/Gateway overlaps and Gateway unions are non-additive. Dependency-cache observations: 11 exact hits and one skipped scope; Chromium restore hit in all 12 jobs. All exact job logs were retained for phase analysis.