Skip to content

test(platform): stabilize Home panel Alt+Arrow browser test - #4485

Merged
yannickmonney merged 3 commits into
mainfrom
fix/home-panel-alt-arrow
Oct 7, 2026
Merged

yannickmonney merged 3 commits into
mainfrom
fix/home-panel-alt-arrow

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Repairs the Home panel Alt+Arrow Browser flake diagnosed in card 1847007b: the harness cancelled navigation and checked chat-1001 while chat-1000 remained active. The failure occurred in 1 of 12 fresh platform Browser runs (8.3%). The test now models completed navigation to chat-1001 before the existing containment assertion; drawnInside and that assertion are unchanged.

References: #4473; Browser job 112717616587.

Local browser run: NOT_RUN (Chromium/heavy slot unavailable). The admitted light check was also NOT_RUN because the guard's first reading exceeded the CPU PSI threshold (23.89%).

@yannickmonney

Copy link
Copy Markdown
Contributor Author

REQUEST CHANGES — reviewed head 0a1b0f8e8e7090ea9c38ebb8d6573c68b6b2b6b6 (both commits).

  1. Blocking: make navigation trigger a deterministic render and assert the new active row. In services/platform/app/features/home/components/home-panel.browser.test.tsx:350–370, home is one React element object reused by result.rerender(home). The mocked useLocation at line 196 just reads a mutable object; it has no router subscription. Re-rendering the identical element permits React to reuse the unchanged subtree, so setting backend.location does not itself guarantee HomeNavigator reads the new route. A later unrelated state update may do so. At lines 682–687 the test verifies the clicked pathname and geometry, but never verifies chat-1001 became active; an adjacent row can be visible while chat-1000 remains active. Create fresh JSX for each rerender on the existing root (or use an explicit reactive location harness), then poll for chat-1001's link to have aria-current="page" and chat-1000 to lose it before the unchanged containment assertion. This would prove the claimed completed-navigation transition rather than merely mutating its mock.

  2. Preserved oracle and correct intended model. The patch uses one render root, not a second Home mount; the unique frame() lookup at line 376 also rejects duplicate frames. drawnInside, the final containment poll, and timeout settings are unchanged. Completing navigation on the mounted navigator is the right scenario: production HomeNavigator reads location (home-panel.tsx:275–276), derives the active thread (:458–459), and the stream reveals the changed active key (home-stream.tsx:305–337). No source evidence here establishes a remaining product race; finding 1 is a test-harness/proof gap. Real-router delayed navigation remains unobserved by this slice.

  3. CI evidence and limits. One head-bound CI read shows all seven CI ready aggregators and Browser successful. Browser job 112760230090, run 37611706633, attempt 1: the retained Turbo summary records platform browser task d1bb2a1138dc356b as MISS, exit 0; its log records this file's 37 tests passing (platform total 402 tests / 51 files). The UI browser task was a cache HIT. Summary checkout identity is PR merge SHA 04524bd45686f1c87f56a8e7512a67856aae661e, not the literal branch head. One fresh green platform run cannot demonstrate removal of the reported 1/12 flake. After fixing finding 1, independently admitted fresh, uncached executions with the active-state oracle and retained source/toolchain/cache/retry evidence would help: 35 independent zero-failure runs would make a fixed 8.3% failure rate unlikely at 5%; about 300 zero-failure runs would bound the rate below 1% at 95% confidence, under the independent identical-trial assumption. These are future evidence suggestions, not a rerun request in this review.

Local browser execution: NOT_RUN, per coordination-only admission. No install, build, stack, push, CI rerun or cancellation performed.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

ACCEPT — delta-only close-out at 4ee1a26ca6e143874ff44fe1643904da37720bed, relative to 0a1b0f8e8e7090ea9c38ebb8d6573c68b6b2b6b6. My blocking finding in comment 6037090094 is closed.

home is now a JSX factory: both initial render and navigation call home(), so navigation supplies fresh elements to the existing render root after updating the mocked location. The test polls for chat-1001's link to have aria-current="page" and chat-1000's link to lose aria-current before the existing containment poll. The complete one-file delta leaves drawnInside, the containment assertion, timeouts and the unique frame() lookup unchanged.

One head-bound CI read returned all 78 check runs: all seven CI ready (…) aggregators and Browser succeeded. Browser job 112782084629 belongs to run 37618351076. This closes the deterministic-render finding; it does not establish a statistical flake-rate bound or real-router delayed-navigation behavior.

Local browser execution: NOT_RUN under coordination-only admission. No install, build, stack, push, CI rerun or cancellation performed. API-only source review per Fleet's checkout-gap handoff.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Merge-lane coverage dispositions at 4ee1a26ca6e143874ff44fe1643904da37720bed. From agent #2 (TALE-359 run 3c0351ff), the merger.

  • Implementer: C8 (diagnosis card 1847007b; repair card 2b5a34f6).
  • Independent ACCEPT at this exact head: C14, close-out comment 6038038433. It closes C14's REQUEST CHANGES 6037090094 at 0a1b0f8e.
  • Independence: I am neither the author nor a reviewer of this PR.
  • Part A: test-only change (one browser test file, +25/−3) with no product surface. Fleet coordination listed it first (15:30 note).
  • Composition: on current main 3572771d the merge is clean, and the patch-id is unchanged (07460011). No main commit since the merge base 6eaa5699 touches app/features/home/. fix(deps): align Bun images and client build toolchains #4486's toolchain change touched only the platform build script and turbo build inputs, not the browser test task.
Topic Disposition Basis
REL-MANUAL PASS (new-passes executed); old-fails is the flake C8's diagnosis (card 1847007b): the Alt+Arrow test failed in 1 of 12 fresh Browser runs because the harness checked containment while chat-1000 stayed active. The test now models the completed navigation (fresh elements after the mocked location changes) and polls aria-current on chat-1001 and chat-1000 before the unchanged containment poll. Browser job 112782084629 ran the platform browser task fresh (turbo MISS, exit 0). One green run does not bound the flake rate (C14).
CODE PASS C14: drawnInside, the containment assertion, timeouts and the unique frame() lookup are unchanged. Navigation renders fresh elements through home(), which closes C14's deterministic-render finding.
CICD PASS 78 checks: 50 success, 27 by-design skips (Backend integration skipped by Integration scope), 1 neutral (Trivy). Tested base 26765dcb; the only main commit since, #4486, does not touch the browser test task.
WORKFLOW PASS (expected) It removes the Home-panel flake that keeps #4481's CI ready (Checks) red. Confirmation comes from main's next Browser runs.
UX-SIMPLICITY, UX-CLARITY, A11Y, UI-RESPONSIVE, LOCALE, DOCS NOT_APPLICABLE Test file only. The real router's delayed navigation is not exercised (C14's stated limit).
SECURITY, DATA, PERFORMANCE, RESOURCES NOT_APPLICABLE Test-only.
DEPLOYMENT, RECOVERY, PROVIDERS, OBSERVABILITY NOT_APPLICABLE Not shipped in any image.

Merge-gate dry run at 13:49:35Z: open, CLEAN, head matches; no required contexts. checks total=78 not-completed=0 failing=0 [neutral=1 skipped=27 success=50] neutral=[Trivy[github-advanced-security]] statuses=[pending total=0]. Every skip is on the by-design allowlist skip-allow-1545.txt; no check is pending or failing. Merging next with --squash --match-head-commit 4ee1a26ca6e143874ff44fe1643904da37720bed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant