Skip to content

test(ui): remove repeated browser and Gateway fixture work - #184569

Merged
steipete merged 13 commits into
mainfrom
solid2/w-test-ci-fixture-clocks
Oct 26, 2026
Merged

steipete merged 13 commits into
mainfrom
solid2/w-test-ci-fixture-clocks

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Reuse global setup's completed Workboard declaration through the existing Vitest provide/inject context. Matching root/source consumers still read asset bytes and supply their own metadata; other roots/sources still build and missing assets fail.
  • Share catalog-reset/manual-agent-reconnect setup and control PR polling through the existing scheduler factory. Real networking, sockets, Git repositories, reader reassignment, stale-result rejection, and rendered outcomes remain.
  • Move the independent SQLite rollback drill before startup: five successful Gateway starts become four, retaining both CLI/SQLite-first entries, all nine Doctor commands, two refusal attempts, provider turn, SIGKILL/restart, writer locking, concurrent operations, and clean post-reset restart.
  • Exercise progress, motion and palettes through retained documents where those transitions are the contract. The 28 margin cases use four pages rather than seven; video boundaries remain fresh. Details retains all 51 assertion sites and 34 opt-in capture names while contexts fall 2→1. File links retain native activation and cancellation while cases fall 8→6 and boots 11→9.

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.

Removed/merged case Remaining proof
New-session shows the submitted prompt before creation responds and restores it after failure: repeated motion rows for widths1280/390 and markdown/json Each retained width/content row checks both motion modes on the same pending DOM, then runs its original recovery lifecycle. Motion changes presentation CSS, not create/retry ownership.
Sidebar Dashboard cap=false,rootLast=false and Chat cap=false,rootLast=true Dashboard cap=false,rootLast=true plus unchanged Chat children-last and capped flows; sidebar-snapshot.test.ts tests hands off the complete roster at idle after the current transcript is ready and restores before hello and saves only after rendering the settled live projection.
restores stale Stop through a terminal mock-Gateway history response Same-file retains stale Stop after a mock-Gateway history error and recovers on the next Stop; real-Gateway restores the composer after Stop targets a run the Gateway already finished also retains exact abort count/no reconnect.
refreshes cached direct activity after a session-only mock-Gateway Stop Retained descendant browser flow; run-lifecycle.abort.test.ts recognizes the canonical main row while chat uses its main alias; mounted chat-pane-run-activity.test.ts shows activity while the parent has its own live turn; chat-send-abort.test.ts targets $key ($scope, connected: $connected) retains direct session-only dispatch.
First stale sessions.changed event within clears shared session activity when chat final arrives first Later stale event, stale in-flight list, toast expiry and unrelated publication remain in the same browser case; run-lifecycle.test.ts retains exact completed-run suppression across expiry.
Removed or merged case Remaining contract proof
clears the draft after a genuine new-session route navigation settles + preserves a manually selected agent across a same-client reconnect Both complete flows remain in clears 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 settles chat-route-write-readiness.test.ts: holds direct and restored queued sends after startup until route revalidation; route-snapshot.test.ts: replaces cached admission with $response covers deleted/different-agent/different-UUID, plus revalidates cached admission through the router after hello (deleted: true). Unchanged E2E renders off-roster cached rows before resolve and reconciles deleted|moved|mismatch authority retains 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 back pull-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 and keeps the original shared retry after LRU eviction remain, including exact shared retry payload.
recovers from a pending 403 and rejected cancellation without canceling the valid avatar authenticated-avatar-route.test.ts: recovers auth %s before cleanup still 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 messages All original user-text/no-anchor/no-file-RPC assertions move to preserves 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 file separately keeps the pure grammar table.
shows a file tab before completion and honors the file intent shows a file tab before completion and honors the list intent keeps the identical pending tab, no premature view, file response and content assertions, plus a competing catalog response. Separate close row retains cancellation.
Second complete palette replay in visualizes subagents and background processes in Details Same named E2E keeps all 51 assertion sites. Both-palette native summary hit testing and desktop hover/focus/geometry remain; the single owner flow retains exact Stop RPC payloads, denial/retry, stale/empty/error states, output navigation and exact scroll restoration. chat-processes-panel.test.ts retains its independent owner/focus/error tests.

No PR-reader case is deleted: keeps session PR and CI results with the current workspace and reader retains all behavior. control-ui-session-pr-subscriptions.test.ts > coalesces forced refresh bursts per session and acknowledges each requester once owns 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 entrypoint and SQLite 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 dismissal failed, 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.

Proof Result
Current merged submission-menu file Red 4/5 before removal; green 5/5 after. Default pinned runtime, one worker, each candidate run once.
Targeted formatting and whitespace Composer format check and staged/unstaged diff checks passed.
Current isolated review Completed scoped-clean, zero P0–P2 findings; two passes cover the full corrected 24-file candidate with 41 owner/caller datasets. Final source/index verification matches all 65 source hashes.
Existing structural proof Workboard duplicate-compiler negative control and helper proof; ownership configuration 14/14; prior overlay 19/19; cold Details reproduced and repaired; existing Mermaid 7/7 proof retained. These are prior-head focused evidence, not current exact-head CI.
Static/unused code Previously recorded UI/tooling types, scoped lint, import-cycle/mock-export checks and production Knip. No broad rerun here.
Broad contract and cost qualification Exact-head run40387977183 attempt1 completed: 11 selected UI jobs passed, E2E5 failed the matching-main PDF assertion; no cancelled/pending jobs. No local E2E battery or new lease; no qualified runner-minute reduction claimed.

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.

Observation API total Comparable total Inclusive tests/checks Fixed/other Full selected UI path Longest job
Latest completed scheduled main, run40387557460 / 9c2ae9ac244b 138.00 min 134.82 min 110.60 min 27.40 min 1056s 1054s
Historical scheduled main, run40380874869 / d704d3b10632 139.90 min 137.33 min 117.12 min 22.78 min 1181s 1179s
Previous fixture head, run40381128500 / f96520c049ce 150.27 min 147.00 min 125.90 min 24.37 min 1033s 1026s
Corrected merged candidate, run40387977183 / d4d236332da7 109.93 min 109.93 min 90.25 min 19.68 min 742s 740s

Comparable 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.

Job Result Checkout Env Install Env/deps Download Restore Build Browser Tests incl. Upload Other Teardown Total
build-artifacts success 0.67 0.00 0.00 0.40 0.00 0.00 4.05 0.05 10.45 0.25 1.63 0.07 17.57
checks-ui-e2e-real-gateway (1/2) success 0.73 0.00 0.00 0.32 0.00 0.00 2.10 0.05 10.87 0.05 0.03 0.07 14.22
checks-ui-e2e (3/7) success 0.83 0.00 0.00 0.45 0.00 0.00 0.00 0.05 12.28 0.00 0.05 0.08 13.75
checks-ui-e2e-real-gateway (2/2) success 0.85 0.00 0.00 0.35 0.00 0.00 2.35 0.05 9.63 0.05 0.05 0.07 13.40
checks-ui-e2e (4/7) failure 0.77 0.00 0.00 0.38 0.00 0.00 0.00 0.08 10.95 0.05 0.03 0.05 12.32
checks-ui-e2e (1/7) success 0.62 0.00 0.00 0.43 0.00 0.00 0.00 0.05 10.75 0.02 0.05 0.08 12.00
checks-ui-e2e (6/7) success 0.17 0.00 0.00 0.37 0.00 0.00 0.00 0.05 10.90 0.03 0.05 0.05 11.62
checks-ui-e2e (2/7) success 0.72 0.00 0.00 0.38 0.00 0.00 0.00 0.05 8.93 0.00 0.03 0.08 10.20
checks-ui-e2e (5/7) success 0.63 0.00 0.00 0.47 0.00 0.00 0.00 0.07 8.00 0.02 0.05 0.07 9.30
checks-ui (1/3) success 0.60 0.03 0.00 0.53 0.00 0.00 0.00 0.07 5.62 0.00 0.30 0.07 7.22
checks-ui (3/3) success 0.83 0.02 0.00 0.43 0.00 0.00 0.00 0.05 5.37 0.00 0.05 0.08 6.83
checks-ui (2/3) success 0.73 0.03 0.00 0.42 0.00 0.00 0.00 0.03 5.07 0.00 0.05 0.07 6.40
control-ui-performance success 0.58 0.00 0.00 0.73 0.00 0.00 0.00 0.00 1.78 0.00 0.02 0.07 3.18
Completed total 8.73 0.08 0.00 5.67 0.00 0.00 8.50 0.65 110.60 0.47 2.40 0.90 138.00

Historical scheduled main phase table

Run40380874869, head d704d3b10632ea100ecfebec07da2ffbcccfb152, completed/failure. This is historical scheduled-main evidence, not the candidate's integrated main revision.

Job Result Checkout Env Install Env/deps Download Restore Build Browser Tests incl. Upload Other Teardown Total
build-artifacts success 0.18 0.00 0.00 0.37 0.00 0.00 5.07 0.07 12.00 0.27 1.63 0.07 19.65
checks-ui-e2e-real-gateway (2/2) success 0.20 0.00 0.00 0.37 0.00 0.00 3.25 0.05 12.17 0.03 0.05 0.08 16.20
checks-ui-e2e-real-gateway (1/2) success 0.17 0.00 0.00 0.28 0.00 0.00 2.42 0.05 11.68 0.07 0.05 0.10 14.82
checks-ui-e2e (2/7) success 0.17 0.00 0.00 0.53 0.00 0.00 0.00 0.07 12.53 0.00 0.05 0.07 13.42
checks-ui-e2e (6/7) success 0.18 0.00 0.00 0.42 0.00 0.00 0.00 0.05 11.42 0.03 0.07 0.07 12.23
checks-ui-e2e (3/7) success 0.18 0.00 0.00 0.35 0.00 0.00 0.00 0.07 11.27 0.00 0.03 0.08 11.98
checks-ui-e2e (4/7) failure 0.18 0.00 0.00 0.50 0.00 0.00 0.00 0.07 10.75 0.03 0.03 0.07 11.63
checks-ui-e2e (5/7) success 0.23 0.00 0.00 0.42 0.00 0.00 0.00 0.05 10.68 0.00 0.03 0.08 11.50
checks-ui-e2e (1/7) success 0.18 0.00 0.00 0.45 0.00 0.00 0.00 0.05 9.45 0.00 0.05 0.08 10.27
checks-ui (3/3) success 0.17 0.02 0.00 0.45 0.00 0.00 0.00 0.03 4.97 0.00 0.07 0.08 5.78
checks-ui (1/3) success 0.17 0.03 0.00 0.30 0.00 0.00 0.00 0.03 4.32 0.00 0.18 0.07 5.10
checks-ui (2/3) success 0.17 0.02 0.00 0.35 0.00 0.00 0.00 0.05 4.07 0.00 0.05 0.05 4.75
control-ui-performance success 0.18 0.00 0.00 0.53 0.00 0.00 0.00 0.00 1.82 0.00 0.02 0.02 2.57
Completed total 2.37 0.07 0.00 5.32 0.00 0.00 10.73 0.63 117.12 0.43 2.32 0.92 139.90

Previous fixture head phase table

Run40381128500, head f96520c049ceb24c4868daa9c74adc165fa8d1b0, tested merge c701b53c680f3d5abe22d7a56acaea95938da088 with first parent d704d3b10632ea100ecfebec07da2ffbcccfb152. This is predecessor evidence only; it does not validate the corrected merged candidate.

Job Result Checkout Env Install Env/deps Download Restore Build Browser Tests incl. Upload Other Teardown Total
checks-ui-e2e (2/7) success 0.62 0.00 0.00 0.52 0.00 0.00 0.00 0.07 15.78 0.00 0.03 0.08 17.10
checks-ui-e2e (1/7) success 0.17 0.00 0.00 0.38 0.00 0.00 0.00 0.15 15.38 0.00 0.03 0.08 16.20
checks-ui-e2e (5/7) failure 0.78 0.00 0.00 0.52 0.00 0.00 0.00 0.05 14.67 0.03 0.03 0.07 16.15
checks-ui-e2e-real-gateway (1/2) success 0.17 0.00 0.00 0.28 0.00 0.00 2.30 0.05 12.35 0.05 0.07 0.05 15.32
checks-ui-e2e-real-gateway (2/2) success 0.58 0.00 0.00 0.30 0.00 0.00 2.37 0.03 10.87 0.03 0.05 0.07 14.30
checks-ui-e2e (3/7) success 0.67 0.00 0.00 0.37 0.00 0.00 0.00 0.07 10.25 0.00 0.05 0.08 11.48
checks-ui-e2e (4/7) success 0.72 0.00 0.00 0.33 0.00 0.00 0.00 0.05 10.00 0.02 0.03 0.08 11.23
build-artifacts success 0.73 0.00 0.00 0.38 0.00 0.00 3.20 0.05 5.53 0.03 0.05 0.07 10.05
checks-ui-e2e (6/7) success 0.67 0.00 0.00 0.35 0.00 0.00 0.00 0.05 8.77 0.05 0.03 0.05 9.97
checks-ui (3/3) success 0.62 0.03 0.00 0.73 0.00 0.00 0.00 0.07 7.30 0.00 0.08 0.08 8.92
checks-ui (1/3) success 0.73 0.02 0.00 0.38 0.00 0.00 0.00 0.35 7.10 0.00 0.20 0.07 8.85
checks-ui (2/3) success 0.70 0.03 0.00 0.43 0.00 0.00 0.00 0.05 6.10 0.00 0.05 0.07 7.43
control-ui-performance success 0.63 0.00 0.00 0.75 0.00 0.00 0.00 0.00 1.80 0.00 0.02 0.07 3.27
Completed total 7.78 0.08 0.00 5.73 0.00 0.00 7.87 1.03 125.90 0.22 0.73 0.92 150.27

Corrected candidate phase table

Run40387977183, head d4d236332da70d9b04e9b35deb1169f284dd550e, attempt1, completed/failure. Actual checkout 15cc9c45c4c5eef98c597b745f11b63f06acd24b has first parent f052ce9261c98bbf59083ca582d6041da2a02551. All 68 run jobs are terminal: 40 success, 2 failure, 26 skipped.

Job Result Checkout Env Install Env/deps Download Restore Build Browser Tests incl. Upload Other Teardown Total
checks-ui-e2e-real-gateway (1/2) success 0.80 0.00 0.00 0.22 0.00 0.00 1.52 0.03 9.62 0.05 0.03 0.07 12.33
checks-ui-e2e (2/7) success 0.68 0.00 0.00 0.27 0.00 0.00 0.00 0.05 10.90 0.00 0.03 0.08 12.02
checks-ui-e2e-real-gateway (2/2) success 0.75 0.00 0.00 0.23 0.00 0.00 1.77 0.03 8.77 0.05 0.03 0.07 11.70
checks-ui-e2e (4/7) success 0.65 0.00 0.00 0.27 0.00 0.00 0.00 0.03 9.87 0.02 0.03 0.08 10.95
checks-ui-e2e (6/7) success 0.60 0.00 0.00 0.28 0.00 0.00 0.00 0.03 8.55 0.03 0.12 0.05 9.67
build-artifacts success 0.15 0.00 0.00 0.28 0.00 0.02 3.00 0.03 5.27 0.05 0.05 0.05 8.90
checks-ui-e2e (5/7) failure 0.68 0.00 0.00 0.28 0.00 0.00 0.00 0.03 7.65 0.03 0.10 0.07 8.85
checks-ui-e2e (1/7) success 0.65 0.00 0.00 0.33 0.00 0.00 0.00 0.03 7.00 0.00 0.12 0.08 8.22
checks-ui-e2e (3/7) success 0.60 0.00 0.00 0.27 0.00 0.00 0.00 0.03 7.02 0.00 0.12 0.08 8.12
checks-ui (1/3) success 0.63 0.03 0.00 0.35 0.00 0.00 0.00 0.35 5.77 0.00 0.20 0.08 7.42
checks-ui (2/3) success 0.77 0.02 0.00 0.30 0.00 0.00 0.00 0.03 4.65 0.00 0.10 0.05 5.92
checks-ui (3/3) success 0.17 0.02 0.00 0.32 0.00 0.00 0.00 0.03 5.20 0.00 0.05 0.07 5.85
Completed total 7.13 0.07 0.00 3.40 0.00 0.02 6.28 0.73 90.25 0.23 0.98 0.83 109.93

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 rejects download.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 is a56801eff720126978b650688c75ca7ed71da01b9add59b8c1b02b4ffa3c0e41. Historical main40380874869/d704d3b10632ea100ecfebec07da2ffbcccfb152 remains 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.ts provides completed native-plugin declarations with existing URL/build facts.
  • test/vitest/vitest.ui-e2e.setup.ts forwards declaration metadata through the existing shared-preview setter.
  • ui/src/test-helpers/control-ui-e2e-shared-preview.ts stores that metadata with existing URL/build identity.
  • ui/src/test-helpers/control-ui-plugin-fixture.ts reuses 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.connect selection. 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

File Main Candidate
test/helpers/sqlite-sessions-transcripts-flip-proof-assertions.ts 368 367
test/helpers/sqlite-sessions-transcripts-flip-proof.ts 2463 2453
test/vitest-ui-e2e-config.test.ts 504 520
test/vitest/vitest.ui-e2e.bundled.global-setup.ts 69 70
test/vitest/vitest.ui-e2e.setup.ts 18 22
ui/src/components/markdown-mermaid-native.browser.test.ts 174 184
ui/src/components/overlay-anchor.browser.test.ts 396 403
ui/src/e2e/chat-agent-avatar.real-gateway.e2e.test.ts 527 524
ui/src/e2e/chat-file-links.e2e.test.ts 597 604
ui/src/e2e/chat-github-publication.e2e.test.ts 686 685
ui/src/e2e/chat-mobile-bubble-margin.e2e.test.ts 251 256
ui/src/e2e/chat-run-lifecycle.e2e.test.ts 834 804
ui/src/e2e/chat-snapshot-route.e2e.test.ts 325 297
ui/src/e2e/new-session-page.catalog-reconnect.e2e.test.ts 638 626
ui/src/e2e/new-session-page.transition.e2e.test.ts 792 796
ui/src/e2e/session-details-background-work.e2e.test.ts 848 897
ui/src/e2e/session-pr-reader-lifetime.real-gateway.e2e.test.ts 601 624
ui/src/e2e/session-progress-live-placement.e2e.test.ts 830 837
ui/src/e2e/sidebar-complete-roster.e2e.test.ts 480 479
ui/src/pages/chat/chat-composer-solid.test.tsx 497 523
ui/src/pages/chat/components/chat-details.browser.test.ts 667 671
ui/src/test-helpers/control-ui-e2e-shared-preview.ts 34 44
ui/src/test-helpers/control-ui-plugin-fixture.node.test.ts 0 61
ui/src/test-helpers/control-ui-plugin-fixture.ts 61 73

No 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.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T19:37:04.218560Z d4d2363 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates browser scenarios, reuses fixture pages, controls PR-refresh pacing, and removes a redundant SQLite Gateway restart.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused test maintenance with no actionable source finding; incomplete candidate validation limits confidence in the claimed performance outcome.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored fixture-only PR is outside the ordinary contributor product-proof gate; candidate browser and Gateway CI provides supporting validation, with the performance comparison still incomplete.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Repeated browser and Gateway fixture work consumes CI resources and delays feedback.
Reason: The maintainer-directed change removes concrete repeated work, documents accepted coverage tradeoffs, and leaves production contracts unchanged.

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
Reviewed head: 6bae159b7af5c937edcbce5c2f2c9cdbf3a35862

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: A completed successful candidate comparison has not yet established the stated runner-cost and completion-path targets.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • SQLite lifecycle proof keeps the original intent (d096bd6: Own acquired resources and keep destructive maintenance in a stopped Gateway epoch; history also traces the original proof through scripts/e2e/sqlite-sessions-transcripts-flip-proof.ts.)
  • Mobile margin page reuse changes intended behavior with a stated reason (f77c1a4: Reduce repeated app boots while preserving native media and geometry assertions.)
  • Tall progress-card scrolling changes intended behavior with a stated reason (4e3611c: Prove long Markdown and mixed plan content remain reachable through scrolling; the PR explicitly accepts live-update coverage for the second variant.)
  • Cached route admission keeps the original intent (8e639ee: Mount scoped cached transcripts early while holding message delivery until authoritative route confirmation.)
  • Avatar response cleanup keeps the original intent (d4d2c3d: Release failed native response streams without breaking credential recovery or successful images.)
  • New-session draft and reconnect flows keeps the original intent (de13b4b: Preserve destination-owned drafts across asynchronous loading and reconnect while clearing drafts on genuine navigation.)
  • PR reader lifetime keeps the original intent (6b0b111: Keep late PR and CI results bound to the current workspace and authorized reader while preserving other readers' shared work.)
  • Publication retry retention keeps the original intent (c56fcc8: Preserve publication state across navigation and split panes; shared retry identity remains covered by owner tests and native eviction coverage.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Verified introduced change: The pinned introduction diff changes only test/support code; the fetched main has no changes to these paths relative to the introduction base. (6bae159b7af5)
  • Full discussion and accepted tradeoffs: Read the complete PR body and comments. The body matches captured SHA-256 6555f4e8e8645194cc96b21e16b75da28aeff52d3b985fd1fbba903e5cdfda78. It explicitly accepts live-update progress coverage and larger margin rosters while retaining video page boundaries. (6bae159b7af5)
  • Retained coverage verified: The retained route-readiness, snapshot reconciliation, publication-state, avatar recovery, and subscription-pacing tests substantiate the removed-case ledger; native route outcomes and shared publication retry after eviction remain. (ui/src/pages/chat/chat-route-write-readiness.test.ts:31, 6bae159b7af5)
  • SQLite drill remains independent: The rollback drill uses its own rollback-drill store, so moving it before initial startup preserves stopped-writer maintenance; imported-history reads, abrupt restart, contention, concurrent lifecycle operations, and clean post-reset restart remain. (test/helpers/sqlite-sessions-transcripts-flip-proof.ts:949, 6bae159b7af5)
  • Current candidate validation: Both real-Gateway jobs and build-artifacts passed in https://github.com/openclaw/openclaw/actions/runs/40315290097; one mocked UI shard remained running at inspection. (6bae159b7af5)
  • Failed UI check remains unattributed: The failed shard annotation reports a slash-menu element intercepting the provider-setup button in an untouched test. No matching base failure was established, so this is neither attributed to the diff nor declared inherited. Raw log retrieval was blocked by the artifact host allowlist. (ui/src/e2e/inference-setup-gate.e2e.test.ts:72, 6bae159b7af5)

Likely related people:

  • Shakker: Raw commit 6b0b111 adds ui/src/e2e/session-pr-reader-lifetime.real-gateway.e2e.test.ts:36 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6b0b11199466; files: ui/src/e2e/session-pr-reader-lifetime.real-gateway.e2e.test.ts)
  • Vyctor H. Brzezowski: Raw commit 7aec37e adds ui/src/e2e/chat-mobile-bubble-margin.e2e.test.ts:14 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7aec37e140e4; files: ui/src/e2e/chat-mobile-bubble-margin.e2e.test.ts)
  • Vincent Koc: Raw commit d4d2c3d adds ui/src/e2e/chat-agent-avatar.real-gateway.e2e.test.ts:91 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d4d2c3dd1e3e; files: ui/src/e2e/chat-agent-avatar.real-gateway.e2e.test.ts)

PR surface

Tests -20. Total -20 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 9 161 181 -20
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 161 181 -20

Review metrics

Metric Value Why it matters
Production versus test/support LOC Production +0/-0; tests/support +161/-181 The net reduction comes from consolidating fixture work while retaining distinct regression assertions.

Labels

Label changes:

  • add P3: This is test-suite efficiency maintenance with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test-suite efficiency maintenance with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Establish the candidate's completed coverage and measured savings against its stated acceptance targets.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

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.
@steipete
steipete enabled auto-merge (squash) October 26, 2026 16:59
@steipete
steipete disabled auto-merge October 26, 2026 17:05
@steipete
steipete merged commit 9f5a6ea into main Oct 26, 2026
116 of 122 checks passed
@steipete
steipete deleted the solid2/w-test-ci-fixture-clocks branch October 26, 2026 20:23
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant