Skip to content

fix(platform): poll home-panel browser scroll assertions - #4473

Merged
yannickmonney merged 1 commit into
mainfrom
fix/home-panel-scroll-assertion
Oct 7, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/home-panel-scroll-assertion

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Poll home-panel virtualizer containment checks until scroll measurement settles. The Alt+Arrow test now waits for chat-1001 to be drawn inside the stream after navigation, and the identical immediate post-scroll check in the stream drag test uses the same poll helper. The containment assertion remains unchanged.

Fixes the flaky Browser failure in checks run 37573792852, job 112638305330 (line 669). Local browser run: NOT_RUN as directed; CI Browser is the oracle.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

ACCEPT — independent CODE/CICD review at a50aeeb6552386501c343cac4ac336bc67c66c3f, base 524e438626f8cf156c9c8b86a5223dc55d5d6b8f.

  • CODE: Both changed assertions retain drawnInside(...).toBe(true). The helper still requires the row’s top and bottom to lie inside the scrollport, using the unchanged subpixel tolerance. Both use awaited expect.poll with the same default timeout convention as neighboring containment assertions; no catch-and-ignore, predicate relaxation, or timeout override. The Alt+Arrow test still separately requires the exact chat-1001 navigation. The drag test previously checked immediately after setting scrollTop = scrollHeight; polling correctly waits before picking up the row.
  • Completeness: Searched browser-test containment and scroll helpers at this source (84 other browser-test blobs match the local read-only checkout). drawnInside/streamRows occur only in home-panel. No identical immediate post-scroll containment check remains. Related follow-ups: home-panel line 702 still immediately checks chat-0 in the separate stream after project-list keyboard navigation (a cross-scrollport isolation assertion); tasks-list.windowing.browser.test.tsx lines 156–160 still snapshot full-row containment after scrolling, awaiting row presence and one animation frame (potential settling risk, but not the same immediate pattern). Its next test polls containment. SearchableSelect’s equivalent visibleInside checks poll; DataTable windowing checks await row mounting, and useVirtualList’s immediate native-offset checks test synchronous offset behavior rather than drawn containment. Task-log geometry after scrolling is checked inside waitFor.
  • CICD: Browser job 112648481646 succeeded. Artifact 11463665245, turbo-test-browser-37577150188-1, records @tale/platform#test:browser MISS, local/remote false, exit 0. Its platform log explicitly reports home-panel.browser.test.tsx 37 tests passed (18,462 ms), with 51 files / 402 tests passed overall. This was fresh execution, not replay. Checkout/summary SHA is PR merge 260a02fbf29f9efac4095124f45e0fbbe8120ef9; GitHub git-commit records prove its tree and this head’s tree are identical: 35da025ba3b50319ab8f0b624de15f3384db2b6a.
  • Scope/limits: Exactly one test file changed (+4/−2); product code unchanged. One green execution supports the fix but does not establish the flake is eliminated. Several clean main Browser executions with confirmed platform task cache misses and this file running, ideally across varied runner timing, would strengthen that evidence. Cached green main checks would not. No local tests, installs, builds, stacks, CI reruns, branch updates, or merge performed.

Fleet may route the merge to #2; this review does not merge the PR.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Merge-lane coverage dispositions at a50aeeb6552386501c343cac4ac336bc67c66c3f. From agent #2 (TALE-359 run 9d246852), the merger.

Topic Disposition Basis
REL-MANUAL PASS (new-passes executed); old-fails is the flake Main's Browser job 112638305330 failed at :669: an immediate containment check right after a navigation poll that passed. At this tree, Browser job 112648481646 ran fresh (turbo MISS, artifact 11463665245): home-panel 37 of 37, 402 of 402 overall. One green run does not prove the flake is gone (C11); main's next Browser runs are the observation.
CODE PASS C11: both assertions keep drawnInside(...).toBe(true) with the unchanged tolerance, now in an awaited expect.poll with the default timeout. There is no catch, predicate relaxation or timeout override, and both immediate post-scroll checks in this file are converted.
CICD PASS 78 checks: 50 success, 27 by-design skips, 1 neutral (Trivy). Backend integration is skipped by Integration scope (no backend path). Tested base = current main 524e4386.
WORKFLOW PASS (expected) This restores main's Browser signal, which #5 needs before taking a release candidate. Confirmation is main's next run.
UX-SIMPLICITY, UX-CLARITY, A11Y, UI-RESPONSIVE, LOCALE, DOCS NOT_APPLICABLE Test file only; no product code, copy or markup change.
SECURITY, DATA, PERFORMANCE, RESOURCES NOT_APPLICABLE Test-only. Polling adds wait time only while the row is still settling.
DEPLOYMENT, RECOVERY, PROVIDERS, OBSERVABILITY NOT_APPLICABLE Not shipped in any image.

Merge-gate dry run at 07:56:22Z: 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 a50aeeb6552386501c343cac4ac336bc67c66c3f.

@yannickmonney
yannickmonney merged commit 4b0e3bb into main Oct 7, 2026
@yannickmonney
yannickmonney deleted the fix/home-panel-scroll-assertion branch October 7, 2026 07:56
yannickmonney added a commit that referenced this pull request Oct 7, 2026
Cover all ten merges after a89498d through e011cc8: #4464, #4422,
#4468, #4470, #4457, #4465, #4472, #4469 and #4474, plus test-only
#4473. Apply C3's cumulative upgrade path from v0.5.74 and pin its
v0.5.75 notes link to the v0.5.75 tag. Drop the #4438, #4466 and #4440
known issues, now fixed, and list the Environment docs drift (#4454).
yannickmonney added a commit that referenced this pull request Oct 7, 2026
Model the router completing navigation in the Home panel Alt+Arrow browser
test: navigation renders fresh elements after the mocked location changes,
and the test waits for chat-1001 to become the active row before the
unchanged containment assertion. Fixes the flaky Browser failure diagnosed
in 1 of 12 fresh runs.

Independent review: ACCEPT at 4ee1a26 (PR comment 6038038433).

Refs #4473
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