Stability: tint.spec.ts:292 (phone swipe tint) fails 1-2% on chromium-390 #1112

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

Stability: tint.spec.ts:292 ("a swipe tints each block exactly", phone, chromium-390) fails now and then

Found while gating Notes Float slice 1b (#1107). It is not caused by 1b: it fails on the integration head too.

Evidence

  • Command: bunx playwright test --project=chromium-390 --workers=1 --repeat-each=10 e2e/tint.spec.ts:292 e2e/tint.spec.ts:313 (120 runs per head, dev-01, one ordinary slot job as load).
  • port/notes-float 4f0b58327 (baseline): 2 failed / 118 passed.
  • port/notes-float-1b 2fc208620: 1 failed / 119 passed.
  • Failing runs are all tint.spec.ts:292 (the "plain, dark" and "daily, dark" variants); :313 passed every time.
  • Error: expect(locator('.cm-picked-bg')).toHaveCount(1) timed out at tint.spec.ts:300, received 0, right after the swipe (swipe(page, browserName, from, to) at line 299). The swipe did not pick the block in those runs.

Likely cause (not verified)

The synthetic swipe starts before the editor is ready for touch, so the pick never happens. Worth checking that the spec waits for the same ready signal the other swipe specs use, and that the gesture helper does not depend on timing.

Per the flaky rule

It reproduces on dev's line of code (the integration head includes dev 796d80cba) at about 1 to 2 %, so it does not block 1b. A fix should make the spec wait for the editor to be ready before it swipes.

# Stability: `tint.spec.ts:292` ("a swipe tints each block exactly", phone, chromium-390) fails now and then Found while gating Notes Float slice 1b (#1107). It is not caused by 1b: it fails on the integration head too. ## Evidence - Command: `bunx playwright test --project=chromium-390 --workers=1 --repeat-each=10 e2e/tint.spec.ts:292 e2e/tint.spec.ts:313` (120 runs per head, dev-01, one ordinary slot job as load). - `port/notes-float` 4f0b58327 (baseline): **2 failed / 118 passed**. - `port/notes-float-1b` 2fc208620: **1 failed / 119 passed**. - Failing runs are all `tint.spec.ts:292` (the "plain, dark" and "daily, dark" variants); `:313` passed every time. - Error: `expect(locator('.cm-picked-bg')).toHaveCount(1)` timed out at `tint.spec.ts:300`, received 0, right after the swipe (`swipe(page, browserName, from, to)` at line 299). The swipe did not pick the block in those runs. ## Likely cause (not verified) The synthetic swipe starts before the editor is ready for touch, so the pick never happens. Worth checking that the spec waits for the same ready signal the other swipe specs use, and that the gesture helper does not depend on timing. ## Per the flaky rule It reproduces on dev's line of code (the integration head includes dev 796d80cba) at about 1 to 2 %, so it does not block 1b. A fix should make the spec wait for the editor to be ready before it swipes.
Author
Owner

Full-suite lane, 14 Nov: chromium-390 first run failed tint.spec.ts:292 (and :313, light and dark) with a toHaveCount mismatch. Repeat x10 on 4f0b58327: 120/120 pass for both lines. Dev 796d80cba: 120/120 pass. Flaky, not branch-specific.

Full-suite lane, 14 Nov: chromium-390 first run failed `tint.spec.ts:292` (and `:313`, light and dark) with a `toHaveCount` mismatch. Repeat x10 on 4f0b58327: 120/120 pass for both lines. Dev 796d80cba: 120/120 pass. Flaky, not branch-specific.
Author
Owner

Stability lane (15 Nov), dev 42c219afd: reproduced once, not diagnosed, not fixed

e2e/tint.spec.ts:292, --workers=1 --retries=0, one slot job each:

  • dev-01 (x86, load average ~23 from other lanes) chromium-390 --repeat-each=10 (60 runs, 6 variants): 3 failed (plain/tagged/daily dark and light variants), the issue's own error: locator('.cm-picked-bg') expected 1, received 0 at line 300, right after swipe(...).
  • dev-01 chromium-390 --repeat-each=20 a little later, with a debug console.log in the editor's touch handler: 120 / 120 pass (the host was quieter).
  • dev-02 (aarch64) chromium-390 --repeat-each=15 (90 runs): 0 failures.

Hypothesis (not shown): the spec's swipe() sends each CDP touch event with an await, and blocks/touch.ts treats a first move that comes more than QUICK (300 ms, by Date.now() in the handler) after touchstart as a hold, not a swipe (swipe-start.ts), so under load the pick never happens. swipe-row.ts already measures that gap with the event's own timeStamp and swipe-rows.spec.ts carries a comment about exactly this. I did not get a failing run with the timing logged, so no fix is proposed here. A fix that would hold either way: touch.ts reads e.timeStamp as the list rows do, and the spec's CDP events carry explicit timestamps.

## Stability lane (15 Nov), dev `42c219afd`: reproduced once, not diagnosed, not fixed `e2e/tint.spec.ts:292`, `--workers=1 --retries=0`, one slot job each: - dev-01 (x86, load average ~23 from other lanes) chromium-390 `--repeat-each=10` (60 runs, 6 variants): **3 failed** (`plain/tagged/daily` dark and light variants), the issue's own error: `locator('.cm-picked-bg')` expected 1, received 0 at line 300, right after `swipe(...)`. - dev-01 chromium-390 `--repeat-each=20` a little later, with a debug `console.log` in the editor's touch handler: **120 / 120 pass** (the host was quieter). - dev-02 (aarch64) chromium-390 `--repeat-each=15` (90 runs): 0 failures. Hypothesis (not shown): the spec's `swipe()` sends each CDP touch event with an `await`, and `blocks/touch.ts` treats a first move that comes more than `QUICK` (300 ms, by `Date.now()` in the handler) after `touchstart` as a hold, not a swipe (`swipe-start.ts`), so under load the pick never happens. `swipe-row.ts` already measures that gap with the event's own `timeStamp` and `swipe-rows.spec.ts` carries a comment about exactly this. I did not get a failing run with the timing logged, so no fix is proposed here. A fix that would hold either way: `touch.ts` reads `e.timeStamp` as the list rows do, and the spec's CDP events carry explicit timestamps.
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#1112
No description provided.