Repository navigation
test(ui): remove repeated browser and Gateway fixture work - #184569
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 consolidates browser scenarios, reuses fixture pages, controls PR-refresh pacing, and removes a redundant SQLite Gateway restart. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it makes useful, maintainer-directed fixture reductions, and source review found no actionable introduced bug. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe test fixtures feed synthetic session data into browser and Gateway flows, exercise real rendering and SQLite lifecycle boundaries, and produce regression assertions and CI results. flowchart LR
A[Synthetic session fixtures] --> B[Browser scenarios]
B --> C[Control UI]
C --> D[Gateway transport]
D --> E[SQLite lifecycle fixtures]
B --> F[Assertions and CI evidence]
E --> F
Technical reviewBest possible solution: Retain the focused fixture consolidation and assess its completed CI results against the stated cost and coverage targets. Do we have a high-confidence way to reproduce the issue? This is fixture maintenance rather than a product bug; the base source directly shows the repeated page boots, restart, and refresh waits being removed. Is this the best way to solve the issue? The change reuses existing fixture and scheduler owners without production seams, and the retained tests support the removed-case ledger. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eb9f9fa1dc31. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -20. Total -20 across 9 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 26, 2026, 7:43 AM ET / 11:43 UTC. |
Move the prepared build record to the shared preview context owner to remove the type import cycle. Mark the fixture compiler mock's intended isolation while retaining real asset loading and validation.
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…184569) * test(ui): remove repeated browser and Gateway fixture work * fix(ui): retire command menus when a draft is sent * test(ui): reuse the Details fixture across palette checks * test(ui): reuse file-link navigation coverage * perf(test): reuse prepared UI fixtures across file workers * test(ui): fix prepared fixture validation Move the prepared build record to the shared preview context owner to remove the type import cycle. Mark the fixture compiler mock's intended isolation while retaining real asset loading and validation. * test(ui): update prepared fixture type import * test(ui): stabilize animated overlay geometry checkpoints * test(ui): await lazy Details and prepare Mermaid fixture * test: use an owned reply operation in admission fixture
Problem and change
UI CI repeats native-plugin compilation, page bootstrap, and fixture lifecycles across cases that can share prepared state. This change reduces that repetition while preserving native browser, Gateway, persistence, cancellation, and geometry contracts. It does not change application behavior or visuals.
Candidate head:
d4d236332da70d9b04e9b35deb1169f284dd550e; integrated main:fdd83b2d4212b85d88d137cb55278dbb711bbb53. The final diff is 24 files, 12,660 → 12,820 LOC; +827/−667, all test infrastructure and tests. Application production delta: 0. The admission fixture and composer implementation now match main exactly and are excluded from this diff.Accepted edges: a failed shared setup can fail its dependent case; mixed progress and dark presentation use live transitions instead of duplicate cold documents, with separate cold-entry coverage retained. Native layout/input are not replaced by fake clocks. No new cache owner, runtime seam, timeout relaxation, worker cap, runner label, or performance budget is added.
Contract-preservation ledger
Every removed case has a named keeper. Browser networking, persistence and native geometry remain at their owning boundary.
shows the submitted prompt before creation responds and restores it after failure: repeated motion rows for widths1280/390 and markdown/jsoncap=false,rootLast=falseand Chatcap=false,rootLast=truecap=false,rootLast=trueplus unchanged Chat children-last and capped flows;sidebar-snapshot.test.tstestshands off the complete roster at idle after the current transcript is readyandrestores before hello and saves only after rendering the settled live projection.restores stale Stop through a terminal mock-Gateway history responseretains stale Stop after a mock-Gateway history error and recovers on the next Stop; real-Gatewayrestores the composer after Stop targets a run the Gateway already finishedalso retains exact abort count/no reconnect.refreshes cached direct activity after a session-only mock-Gateway Stoprun-lifecycle.abort.test.tsrecognizes the canonical main row while chat uses its main alias; mountedchat-pane-run-activity.test.tsshows activity while the parent has its own live turn;chat-send-abort.test.tstargets $key ($scope, connected: $connected)retains direct session-only dispatch.sessions.changedevent withinclears shared session activity when chat final arrives firstrun-lifecycle.test.tsretains exact completed-run suppression across expiry.clears the draft after a genuine new-session route navigation settles+preserves a manually selected agent across a same-client reconnectclears a navigated draft and preserves a manually selected agent across reconnect; one context/bootstrap is removed.holds sends after empty startup until deleted route authority settles;holds sends after empty startup until moved route authority settles;holds sends after empty startup until mismatch route authority settleschat-route-write-readiness.test.ts:holds direct and restored queued sends after startup until route revalidation;route-snapshot.test.ts:replaces cached admission with $responsecovers deleted/different-agent/different-UUID, plusrevalidates cached admission through the router after hello (deleted: true). Unchanged E2Erenders off-roster cached rows before resolve and reconciles deleted|moved|mismatch authorityretains all three native outcomes. Positive empty-startup still presses Enter and proves disabled/no-send/draft retention until resolution.keeps the original shared retry after navigating away and backpull-request-state.test.ts:retains an operation through presentation replacement: unknown/: replacement;chat-github-publication.test.ts:retains a published/unknown/selection-rejection response that arrives while the pane is hidden. Native personal navigation andkeeps the original shared retry after LRU evictionremain, including exact shared retry payload.recovers from a pending 403 and rejected cancellation without canceling the valid avatarauthenticated-avatar-route.test.ts:recovers auth %s before cleanupstill runs 401 and 403. The retained native 401 case proves actual stalled-response cancellation, cancellation rejection, server socket closure, recovery, visible decoded blob image and successful response never canceled. Native route-404, identity-404 and bounded-503 cases remain.preserves domain/path text in user messagespreserves domain text and root-distinct file targets through click and keyboard, before intentional file activations.markdown-file-links.test.ts:never treats the domain/path reference %s as a workspace fileseparately keeps the pure grammar table.shows a file tab before completion and honors the file intentshows a file tab before completion and honors the list intentkeeps the identical pending tab, no premature view, file response and content assertions, plus a competing catalog response. Separatecloserow retains cancellation.visualizes subagents and background processes in Detailschat-processes-panel.test.tsretains its independent owner/focus/error tests.No PR-reader case is deleted:
keeps session PR and CI results with the current workspace and readerretains all behavior.control-ui-session-pr-subscriptions.test.ts > coalesces forced refresh bursts per session and acknowledges each requester onceowns the 9,999/10,000ms pacing interval. Both SQLite entry cases remain:SQLite sessions/transcripts flip built CLI proof proves the lifecycle through the built gateway CLI entrypointandSQLite sessions/transcripts flip proof harness proves isolated gateway lifecycle state stays SQLite-first; their restart/history contracts remain as described above.Proof and integration repair
Main now owns draft-aware command-menu settlement. Retaining this branch's older unconditional resets would close suggestions for a draft that Send did not clear. The merged candidate reproduced that exact failure:
slash menu follows the retained draft without pointer dismissalfailed, with 4 passed / 1 failed (8.35s Vitest, 10.91s wrapper). Removing only the two resets makes the composer byte-identical to main and the same file passes 5/5 (3.53s Vitest, 5.95s wrapper). The added delayed-catalog regression remains in the test diff. The admission test also matches main exactly.Both initial review passes independently reported the same retained-draft P2; no other concrete P0–P2 defect was established. The corrected isolated review completed scoped-clean. The lead verified the actual MERGE_HEAD and main/index/worktree equality locally; the reviewer assessed supplied frozen sources across two evidence batches and did not execute project code. All named keepers above remain; no assertion tolerance was relaxed.
Real CI phase timings
The original target is 106 → 74.20 total runner minutes (−30%), with the current order's 593s critical-path bound. This candidate is not qualified against either. Runs below are observations of different source/runtime conditions, not additive PR effects or normalized benchmarks. Latest scheduled main is completed/failure; no green-main claim is made.
9c2ae9ac244bd704d3b10632f96520c049ced4d236332da7Comparable totals exclude conditional performance/locale rows and charge the entire active producer. Failed work is included; skipped locale work is not invented. The historical two runs and latest scheduled main each have 12 selected UI jobs passed, 1 failed, 0 cancelled, 1 skipped. The corrected candidate has 11 passed, 1 failed, 0 cancelled, 2 skipped; performance and locale selections are skipped. The candidate is 3.71% above the original 106-minute baseline, and its 742-second path exceeds 593s. These failed, differently conditioned runs do not establish a performance win.
Latest completed scheduled main phase table
Run40387557460, head
9c2ae9ac244bd67f55cc1cdbb6c5b2051bbd1327, attempt1, was observed completed/failure at20:07UTC. All selected UI rows are terminal; both real-Gateway rows pass. The only failing UI test is the same PDF download assertion as this PR. The full run also contains non-UI failures; those are not transferred to this PR's failure attribution. Its entire successful producer is charged.Historical scheduled main phase table
Run40380874869, head
d704d3b10632ea100ecfebec07da2ffbcccfb152, completed/failure. This is historical scheduled-main evidence, not the candidate's integrated main revision.Previous fixture head phase table
Run40381128500, head
f96520c049ceb24c4868daa9c74adc165fa8d1b0, tested mergec701b53c680f3d5abe22d7a56acaea95938da088with first parentd704d3b10632ea100ecfebec07da2ffbcccfb152. This is predecessor evidence only; it does not validate the corrected merged candidate.Corrected candidate phase table
Run40387977183, head
d4d236332da70d9b04e9b35deb1169f284dd550e, attempt1, completed/failure. Actual checkout15cc9c45c4c5eef98c597b745f11b63f06acd24bhas first parentf052ce9261c98bbf59083ca582d6041da2a02551. All 68 run jobs are terminal: 40 success, 2 failure, 26 skipped.These are whole-second GitHub job/step spans, not invoices. Env/deps combines runtime, dependency/cache setup, and frozen reconciliation. Separate install/download/restore columns of zero mean no separately classified step, not zero nested work. Tests includes imports, discovery, fixture/Gateway startup, nested builds, and in-test cleanup. Exclusive subphases cannot be fabricated from composite steps. Other retains separately named checks/packaging and uncovered gaps. The second-level source rows sum to each API job span; displayed minutes are rounded, and nested intervals are not added again. Queue/dependency admission appears only in the full completion path.
Exact current failure attribution
Current E2E5 job121801963227 fails exactly
ui/src/e2e/chat-session-file-pdf.e2e.test.ts > Session file PDFs > previews linked PDFs above and below the inline cap and downloads fresh bytes. It records 512 passed tests and one failed test. Its 17-line timestamp-normalized error/stack is byte-identical to latest scheduled-main E2E4 job121800276709, as well as the retained historical E2E4 job121776723303:Path is not available when connecting remotely. Use saveAs() to save a local copy.Both fail at PDF line150, where Playwright rejectsdownload.path()before the path RPC. The small-PDF iteration aborts; large-PDF and later workspace flow are not claimed to pass. The gate job121808461082 is the only other failed job; security-fast independently passes.Latest completed scheduled main is now run40387557460/
9c2ae9ac244bd67f55cc1cdbb6c5b2051bbd1327, observed completed/failure at20:07UTC. The lead personally compared the exact PDF test name and normalized17-line block with this fixture run; SHA-256 isa56801eff720126978b650688c75ca7ed71da01b9add59b8c1b02b4ffa3c0e41. Historical main40380874869/d704d3b10632ea100ecfebec07da2ffbcccfb152remains retained evidence and is an ancestor of the tested merge's actual first parent. The complete 18-input source manifest is retained, with 14 unchanged causal inputs and these four changed preparation inputs explicitly disclosed:test/vitest/vitest.ui-e2e.bundled.global-setup.tsprovides completed native-plugin declarations with existing URL/build facts.test/vitest/vitest.ui-e2e.setup.tsforwards declaration metadata through the existing shared-preview setter.ui/src/test-helpers/control-ui-e2e-shared-preview.tsstores that metadata with existing URL/build identity.ui/src/test-helpers/control-ui-plugin-fixture.tsreuses declarations only for matching root/source; asset reads remain.The lead personally inspected all four diffs against the actual main parent, plus PDF line150 and the suite's
chromium.connectselection. Those changes neither choose Chromium transport nor call downloads. Whole fixture-graph equality is not claimed. The native unchanged-source list deliberately contains the 14 causal paths; all four changed full diffs remain in the evidence. PDF repair #184943 (e123464) already landed separately; this PR does not duplicate it. Neither the historical nor latest failure comparison claims a rerun of that repair or a passing PDF contract.This qualifies the specific failed test as inherited; CI remains failed, and no successful PDF contract or timing win is inferred. Native review/preparation and current authority checks remain required.
Final changed-file LOC
test/helpers/sqlite-sessions-transcripts-flip-proof-assertions.tstest/helpers/sqlite-sessions-transcripts-flip-proof.tstest/vitest-ui-e2e-config.test.tstest/vitest/vitest.ui-e2e.bundled.global-setup.tstest/vitest/vitest.ui-e2e.setup.tsui/src/components/markdown-mermaid-native.browser.test.tsui/src/components/overlay-anchor.browser.test.tsui/src/e2e/chat-agent-avatar.real-gateway.e2e.test.tsui/src/e2e/chat-file-links.e2e.test.tsui/src/e2e/chat-github-publication.e2e.test.tsui/src/e2e/chat-mobile-bubble-margin.e2e.test.tsui/src/e2e/chat-run-lifecycle.e2e.test.tsui/src/e2e/chat-snapshot-route.e2e.test.tsui/src/e2e/new-session-page.catalog-reconnect.e2e.test.tsui/src/e2e/new-session-page.transition.e2e.test.tsui/src/e2e/session-details-background-work.e2e.test.tsui/src/e2e/session-pr-reader-lifetime.real-gateway.e2e.test.tsui/src/e2e/session-progress-live-placement.e2e.test.tsui/src/e2e/sidebar-complete-roster.e2e.test.tsui/src/pages/chat/chat-composer-solid.test.tsxui/src/pages/chat/components/chat-details.browser.test.tsui/src/test-helpers/control-ui-e2e-shared-preview.tsui/src/test-helpers/control-ui-plugin-fixture.node.test.tsui/src/test-helpers/control-ui-plugin-fixture.tsNo screenshots are applicable to this test-infrastructure change; application rendering is unchanged. No Testbox/Crabbox lease is held. Native preparation/review/landing remain the publishing owner's responsibility; exact-head CI is fully recorded above.