flaky: toast-bar.spec 'a toast that leaves its screen carries on' (webkit-1440), 1 in 40 on dev #945

Open
opened 2026-11-04 20:32:10 +00:00 by kayg · 1 comment
Owner

Found while gating #941 (#912 PR 1). e2e/toast-bar.spec.ts:40 on webkit-1440 sometimes stays on #/note/<id>?sheet=info after the Info sheet's Delete is clicked (expect(page).not.toHaveURL(id) times out after 5 s).

Repeat-each=40, same host (dev-02, WebKit): dev @ 9377d711 1 failed / 39 passed; #941 head 1 failed / 39 passed. So it is not caused by #941. Needs a stability fix (likely the Delete click landing while the sheet is still settling).

Found while gating #941 (#912 PR 1). `e2e/toast-bar.spec.ts:40` on webkit-1440 sometimes stays on `#/note/<id>?sheet=info` after the Info sheet's Delete is clicked (`expect(page).not.toHaveURL(id)` times out after 5 s). Repeat-each=40, same host (dev-02, WebKit): dev @ `9377d711` 1 failed / 39 passed; #941 head 1 failed / 39 passed. So it is not caused by #941. Needs a stability fix (likely the Delete click landing while the sheet is still settling).
Author
Owner

Flaky lane (U4): reproduced under load, root cause found, partial fix in PR #976.

toast-bar.spec.ts:40 on WebKit failed 2 of 40 under two concurrent builds (dev 789fdaa9). The trace of a failing run shows the delete itself worked (the URL check passed); the click on Undo then waited for the toast 'to be stable' until the test timed out. The screencast shows the toast as a small empty pill, still opening 11 s later, frames 11 s apart. Cause in the product: the spring loop capped a frame at 50 ms of simulated time, so with frames of a second or more every animation ran about 20 times slower than the clock. PR #976 fixes that (unit test fails before, passes after) and is the right thing regardless. Effect on this flake: 2 of 40 before, 1 of 100 after (the other failure in that arm was 'tearing down context exceeded the test timeout' after the body had finished: the host starved the browser), so one failure either way: not statistically different. Reduced motion for this test made no difference either (1 of 100), so I did not propose it. What remains looks like whole-host starvation of software WebKit; it needs a quieter or more capable WebKit host rather than a spec change. Leaving this open.

Flaky lane (U4): reproduced under load, root cause found, partial fix in PR #976. `toast-bar.spec.ts:40` on WebKit failed 2 of 40 under two concurrent builds (dev `789fdaa9`). The trace of a failing run shows the delete itself worked (the URL check passed); the `click` on Undo then waited for the toast 'to be stable' until the test timed out. The screencast shows the toast as a small empty pill, still opening 11 s later, frames 11 s apart. Cause in the product: the spring loop capped a frame at 50 ms of simulated time, so with frames of a second or more every animation ran about 20 times slower than the clock. PR #976 fixes that (unit test fails before, passes after) and is the right thing regardless. **Effect on this flake:** 2 of 40 before, 1 of 100 after (the other failure in that arm was 'tearing down context exceeded the test timeout' after the body had finished: the host starved the browser), so one failure either way: not statistically different. Reduced motion for this test made no difference either (1 of 100), so I did not propose it. What remains looks like whole-host starvation of software WebKit; it needs a quieter or more capable WebKit host rather than a spec change. Leaving this open.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#945
No description provided.