Skip to content

test(ui): avoid repeated Appearance boots in rail checks - #180369

Merged
steipete merged 1 commit into
mainfrom
solid2/w-test-speed-rail-routes
Oct 22, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-test-speed-rail-routes

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The reader-position rail tests cold-boot the app to reopen Appearance for every saved width. Those repeated Appearance boots prepare the next edit; the subsequent cold Chat loads prove persistence.

User Impact

Test-only speed improvement. Native file duration falls from 56.070 s to 40.901 s (15.169 s, 27.05%). Production behavior and startup assets are unchanged.

Why This Change Was Made

Keep the first cold Appearance entry in each theme and all twelve cold Chat entries, including all eight width reloads. Use the existing application router and committed-route wait for the six later Appearance edits. Every fill/Tab, storage, computed-width, rail, gutter, keyboard, animation, focus, and continuation assertion remains. No direct settings writes or shared browser contexts.

Evidence

Frozen acceptance: at least 10% lower native file duration including hooks, the same four ordered cases, every strict per-case ceiling, and all 14 UI jobs passing. All gates passed on head 23e63b8a62e636f43ab01ef42e3c40c1b1b9ee6f in CI 39734399436.

Baseline: scheduled main 39728678350, head 0d0df35a139ac9e71a830691bcd115764740e585. Target source was unchanged at the branch base.

Metric Before After
Native file F, including hooks 56.070 s 40.901 s
Dark reader case 25.141 s 18.161 s
Light reader case 25.499 s 17.432 s
Dark continuation case 2.579 s 2.487 s
Light continuation case 2.707 s 2.573 s
E2E1/9 Test step 563 s / 97 files 487 s / 98 files
Cases / contexts 4 / 4 4 / 4
Document entries 20 14
Cold Appearance / cold Chat entries 8 / 12 2 / 12
Test LOC 752 764
Production LOC / Solid checklist sites 0 0

Strict ceilings remained 30.1692, 30.5988, 3.0948, and 3.2484 seconds in case order. The 76 s shard-step reduction is observational because membership changed. Shard weights await the canonical refitter's two eligible matching-source scheduled-main samples.

pnpm tsgo:ui, targeted formatting, whitespace checks, and complete-context independent review through P2 passed. Full CI supplied browser proof; no local E2E, build, or parity run. All assertions, timeouts, and screenshots remain. Native review initialization is queued on the shared allocator; no merge request is armed.

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

clawsweeper Bot commented Oct 22, 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.

@steipete
steipete marked this pull request as ready for review October 22, 2026 06:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 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-22T06:33:07.659362Z 23e63b8 Draft marked ready
ℹ️ 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR replaces six repeated Appearance document loads with application-router navigation in the chat-position rail tests.

Example: The dark-theme test changes the saved message width from 100% to none.

  • Before: Opening Appearance reloads the document before editing the width.
  • After: The existing router opens Appearance; saving and the subsequent cold Chat persistence check remain unchanged.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is focused and supported by successful browser CI; the claimed optimization remains a candidate until its acceptance metrics are checked.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored, test-only PR is outside the ordinary contributor proof gate; exact-head UI browser checks passed, and no production behavior or stored format changes.
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 full application boots add avoidable setup work to rail browser checks.
Reason: The maintainer-authored direction removes repeated setup through existing helpers while retaining the observable persistence and rail contracts.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored PR makes a focused test-only optimization while preserving saved-width persistence coverage; no actionable correctness or security findings were identified.

Priority: P3
Reviewed head: 23e63b8a62e636f43ab01ef42e3c40c1b1b9ee6f

Before merge

  • Complete next step - Check the existing candidate run for native file duration at or below 50.463 seconds and all four original strict case ceilings; retain the change only if those declared thresholds pass.

Findings

None.

Tests

  • Missing end-to-end proof: Browser CI passed; the declared file-duration and strict per-case performance thresholds remain unverified because the timing logs were inaccessible.
Agent review details

How this fits together

The browser E2E suite drives the bundled Control UI against a mock Gateway, saves message widths through Appearance, and checks persisted settings, rendered Chat widths, and rail visibility.

flowchart LR
  A[Browser E2E case] --> B[Application router]
  B --> C[Appearance width input]
  C --> D[Persisted UI settings]
  D --> E[Cold Chat document load]
  E --> F[Width and rail assertions]
Loading

Technical review

Best possible solution:

Retain this small router-based setup change if the existing CI timing output meets the predeclared performance acceptance rule.

Do we have a high-confidence way to reproduce the issue?

Source confirms four Appearance document loads per reader case on main, although the runtime cost was not independently measured during this read-only review.

Is this the best way to solve the issue?

The patch uses existing navigation and committed-route owners, retains one cold Appearance entry per theme and every cold Chat persistence check, and introduces no redundant machinery or test groups.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 63415c568253.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 3e428b8 adds ui/src/e2e/chat-position-rail.e2e.test.ts:546 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3e428b843ad8; files: ui/src/e2e/chat-position-rail.e2e.test.ts)
  • Vyctor H. Brzezowski: Raw commit 1f4517a adds ui/src/e2e/chat-position-rail.e2e.test.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1f4517ae9b79; files: ui/src/e2e/chat-position-rail.e2e.test.ts)
  • Martin Cleary: Raw commit e7590cd adds ui/src/e2e/chat-position-rail.e2e.test.ts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e7590cd58042; files: ui/src/e2e/chat-position-rail.e2e.test.ts)

PR surface

Tests +12. Total +12 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 13 1 +12
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 13 1 +12

Labels

Label changes:

  • add P3: This is a test-runtime improvement 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: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is a test-runtime improvement with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 22, 2026, 2:45 AM ET / 06:45 UTC.

@steipete
steipete merged commit 8c5918e into main Oct 22, 2026
164 of 165 checks passed
@steipete
steipete deleted the solid2/w-test-speed-rail-routes branch October 22, 2026 07:52
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant