You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
screenshot-wait-live window wait fails with an unopenable display at its 8 s deadline in CI #201
Seen once in the test:coverage step of CI run 35887291329 (PR #198, job test, 2026-09-23 16:21:29 UTC). The plain bun run test step of the same job passed this test in 2.3 s, the previous run of the same code passed, and the last twelve main runs are green, so this is a flake with a low rate.
What failed: packages/desktop-linux/test/screenshot-wait-live.test.ts at the window wait, 9.17 s into the test, which is when both the desktopWait window mode budget (8 s) and execApp's windowTimeoutMs (8 s) expire. The wait rejected with
xdotool search failed on :90: Error: Can't open display: (null)
Failed creating new xdo instance
so the zenity window never mapped within 8 s, and at the deadline the session's Xvfb on :90 could no longer be opened at all. execApp's failure path only stops the app's verified process group (stopAfterFailedAppWait), so something else took the display down or Xvfb died. No other test in that step logged :90. This is before the pixel-change wait that #193 / PR #198 changed, so it is a separate failure.
Two observations worth checking:
The window budget is marginal in CI: in the same job the desktop integration test "keeps a GTK exec client on Xvfb despite inherited Wayland variables" took 7.6 s to map its window. Ubuntu noble ships zenity 4 (GTK4), which renders in software on Xvfb. A GTK client that needs 7 to 8 s to map under the coverage run's parallel load will hit this 8 s deadline.
The display becoming unopenable at that same moment needs a mechanism. Candidates: Xvfb exiting when the starved GTK4 client is stopped, or a concurrent test destroying or pruning the display. The Xvfb log for the session would show which; it is not captured in CI output.
Capture the session's Xvfb log and desktopWait result on failure in this test so the next occurrence shows whether Xvfb exited or refused.
Activity
fix(desktop): start Xvfb with -noreset so overlapping clients survive (…