Stability: search-palette.spec.ts:47 empty-frame check failed once on chromium-390 (does not reproduce) #1113

Open
opened 2026-11-13 21:27:13 +00:00 by kayg · 2 comments
Owner

Found by the full Playwright run of the #861 stack head 9a3d38586 (Attachments stack, restacked on dev 796d80cba), project chromium-390.

  • Spec: apps/web/e2e/search-palette.spec.ts:47 "the list never shows an empty frame between two keys"
  • First run: expect(received).toBe(expected), expected 0, received 3, at search-palette.spec.ts:68.
  • Repro, --repeat-each=10 --workers=1 --retries=0 on chromium-390: branch 10/10 pass, dev 796d80cba 10/10 pass.

Verdict: does not reproduce, so flaky under the rule, not a blocker for #861. This issue is a stability fix only: find what makes the empty-frame counter fire in about 1 of 100 runs (timing window after the second key), and make the check deterministic or state why the window is allowed.

Found by the full Playwright run of the #861 stack head `9a3d38586` (Attachments stack, restacked on dev `796d80cba`), project `chromium-390`. - Spec: `apps/web/e2e/search-palette.spec.ts:47` "the list never shows an empty frame between two keys" - First run: `expect(received).toBe(expected)`, expected 0, received 3, at `search-palette.spec.ts:68`. - Repro, `--repeat-each=10 --workers=1 --retries=0` on `chromium-390`: branch 10/10 pass, dev `796d80cba` 10/10 pass. Verdict: does not reproduce, so flaky under the rule, not a blocker for #861. This issue is a stability fix only: find what makes the empty-frame counter fire in about 1 of 100 runs (timing window after the second key), and make the check deterministic or state why the window is allowed.
Author
Owner

Full-suite lane, 14 Nov (on 4f0b58327 and dev 796d80cba): first run failed once on chromium-390 (expected 0 empty frames, got 3). Repeat x10 on both: 10/10 pass. Does not reproduce. Still a stability issue, no code change.

Full-suite lane, 14 Nov (on 4f0b58327 and dev 796d80cba): first run failed once on chromium-390 (expected 0 empty frames, got 3). Repeat x10 on both: 10/10 pass. Does not reproduce. Still a stability issue, no code change.
Author
Owner

Stability lane (15 Nov), dev 42c219afd: not reproduced in 370 runs

e2e/search-palette.spec.ts:47, --workers=1 --retries=0: dev-02 chromium-390 ×40 (with load), dev-02 chromium-390 ×100, dev-02 chromium-1440 ×100, dev-01 chromium-390 ×30 (load average ~23): 0 failures. I also tried to widen the window in a scratch copy by delaying the search.query answers by 400 ms (page.route): 0 empty frames in 3 runs (I did not confirm that the delay was applied, so this says nothing yet).
Reading the code: an empty frame needs the held rows (composer/hold.ts, 160 ms, the timer restarts on every push) to expire while the engine (search-state.svelte.ts, one ask in flight, the newest waits) has not answered for the word you went back to, and instantNotes() has nothing for it. That is a window, not a race in the spec, but I could not make it open. Not fixed; if it fails again on a train, its trace's network log shows whether search.query was slow.

## Stability lane (15 Nov), dev `42c219afd`: not reproduced in 370 runs `e2e/search-palette.spec.ts:47`, `--workers=1 --retries=0`: dev-02 chromium-390 ×40 (with load), dev-02 chromium-390 ×100, dev-02 chromium-1440 ×100, dev-01 chromium-390 ×30 (load average ~23): **0 failures**. I also tried to widen the window in a scratch copy by delaying the `search.query` answers by 400 ms (`page.route`): 0 empty frames in 3 runs (I did not confirm that the delay was applied, so this says nothing yet). Reading the code: an empty frame needs the held rows (`composer/hold.ts`, 160 ms, the timer restarts on every push) to expire while the engine (`search-state.svelte.ts`, one ask in flight, the newest waits) has not answered for the word you went back to, and `instantNotes()` has nothing for it. That is a window, not a race in the spec, but I could not make it open. Not fixed; if it fails again on a train, its trace's network log shows whether `search.query` was slow.
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#1113
No description provided.