Dev is red: pwa-update test fails every time; WebKit crashes in the toast tests; served.spec waits for a removed status #277

Closed
opened 2026-10-14 12:53:50 +00:00 by kayg · 2 comments
Owner

Found by #11:

  1. apps/web/e2e/pwa-update.spec.ts (from #164) fails every time, even run alone. It may be the test, or the update fix itself may not work, which matters because kayg's phone relies on it. Find out which and fix it.
  2. Playwright's Linux WebKit (libWPEWebKit-2.0.so.1.12.0, compositor thread) segfaults during the primitives toast tests: 14 times since 2026-10-13 17:00, according to the kernel log. It's likely environment-only (no GPU). Confirm whether a real Safari path is affected. If not, run those specs on Chromium only in CI, or pin a WebKit build, and record why.
  3. served.spec "the app boots, connects live and saves" waits for a status role that no longer exists, since #139 removed the visible save status. Assert on data-save instead.
Found by #11: 1. **apps/web/e2e/pwa-update.spec.ts** (from #164) fails every time, even run alone. It may be the test, or the update fix itself may not work, which matters because kayg's phone relies on it. Find out which and fix it. 2. **Playwright's Linux WebKit** (libWPEWebKit-2.0.so.1.12.0, compositor thread) segfaults during the primitives toast tests: 14 times since 2026-10-13 17:00, according to the kernel log. It's likely environment-only (no GPU). Confirm whether a real Safari path is affected. If not, run those specs on Chromium only in CI, or pin a WebKit build, and record why. 3. **served.spec** "the app boots, connects live and saves" waits for a `status` role that no longer exists, since #139 removed the visible save status. Assert on `data-save` instead.
Author
Owner

One PR per item:

  1. pwa-update, #309. The feature was broken in Chrome, not only the test. Reload while a new version is waiting. The old worker often serves the new page, and Chrome then holds the takeover until that worker has been idle for 30 s. The app waits for the takeover at startup, so the screen was blank.
    • Plain Chrome, no DevTools on the worker: 3/6 reloads blank for about 31 s.
    • Playwright: blank forever, because its DevTools keep the old worker alive.
    • CDP trace: the waiting worker gets update-now, but skipWaiting() never resolves. A page load hands over at once.
    • Fix: reload after 1 s if the takeover hasn't happened. Plain Chrome 8/8 show the new version within 1.6 s. WebKit was already fine (4/4).
    • The test also asserted the save text that #139 removed; it now uses data-save. The spec runs in WebKit. The signed-out test is fixme because Playwright WebKit can't route requests through a service worker.
  2. WebKit crash, #313. Same null read in libWPEWebKit-2.0.so.1.12.0, ThreadedCompositor thread, 22 times in the kernel log. Reproduced locally: 1 crash in 360 primitives tests, in toast.spec. That compositor exists only in the Linux ports, so Safari (Core Animation) is not affected. On CI, toast.spec now runs on Chromium only.
  3. served.spec, #310. Waits on article.page[data-save=saved]. 6/6 pass in Chromium and WebKit.

Infra note: orphaned calternal serve processes from crates/calternal/tests/notes_crash_typing.rs (agent 222's target dir, PPID 1, --dev-user 2d3e4f5a…) inherit the build-slot lock fd and held all three slots. I killed about 20 of them twice. build-slot.sh should close fd 9 for children, or that test should stop leaking servers.

One PR per item: 1. **pwa-update, #309. The feature was broken in Chrome, not only the test.** Reload while a new version is waiting. The old worker often serves the new page, and Chrome then holds the takeover until that worker has been idle for 30 s. The app waits for the takeover at startup, so the screen was blank. - Plain Chrome, no DevTools on the worker: 3/6 reloads blank for about 31 s. - Playwright: blank forever, because its DevTools keep the old worker alive. - CDP trace: the waiting worker gets `update-now`, but `skipWaiting()` never resolves. A page load hands over at once. - Fix: reload after 1 s if the takeover hasn't happened. Plain Chrome 8/8 show the new version within 1.6 s. WebKit was already fine (4/4). - The test also asserted the save text that #139 removed; it now uses `data-save`. The spec runs in WebKit. The signed-out test is fixme because Playwright WebKit can't route requests through a service worker. 2. **WebKit crash, #313.** Same null read in `libWPEWebKit-2.0.so.1.12.0`, ThreadedCompositor thread, 22 times in the kernel log. Reproduced locally: 1 crash in 360 primitives tests, in toast.spec. That compositor exists only in the Linux ports, so Safari (Core Animation) is not affected. On CI, toast.spec now runs on Chromium only. 3. **served.spec, #310.** Waits on `article.page[data-save=saved]`. 6/6 pass in Chromium and WebKit. Infra note: orphaned `calternal serve` processes from `crates/calternal/tests/notes_crash_typing.rs` (agent 222's target dir, PPID 1, `--dev-user 2d3e4f5a…`) inherit the build-slot lock fd and held all three slots. I killed about 20 of them twice. `build-slot.sh` should close fd 9 for children, or that test should stop leaking servers.
Author
Owner

Closing during the 26 Oct handover cleanup: The dev reds were fixed in dev (PRs #309, #310, #313).

Closing during the 26 Oct handover cleanup: The dev reds were fixed in dev (PRs #309, #310, #313).
kayg closed this issue 2026-10-26 08:46:04 +00:00
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#277
No description provided.