Skip to content

Electron e2e under xvfb on Linux: the app's close in afterEach times out, so no scene can run on a build VM #617

Open

Description

@SSFSKIM

Question

Electron e2e under xvfb-run on a Linux build VM runs each test's body, and then the app's close in the spec's afterEach exceeds the test's timeout ("Worker teardown timeout of 60000ms exceeded"), for old tests that pass on a Mac as for new ones. Why does the app not quit there, and can it be made to?

Seen on 2026-11-13 (UTC) by UX wave U10a's builder with MAWS_HARNESS=0 xvfb-run -a pnpm exec playwright test --config playwright.dashboard.config.ts after scripts/e2e-build.sh plain, and with e2e/document-presence.spec.ts. The profile's own processes listed at the first cleanup are mawsd, maws-supervisor and maws-pty-host; the quit path was not investigated.

Why it matters

Every Electron scene of a landing runs on one Mac lane, after the landing is built. In the UX wave that lane was the bottleneck: several landings' first scene runs failed on plain scene faults (a locator, a fixture's markdown) that a builder could have seen in minutes on its own VM, and each cost a round trip through the Mac. If the close worked under xvfb, builders could run a landing's scenes on Linux as a first pass; the Mac's run stays the run of record.

Deliverable

A findings comment on this ticket: the cause of the hang (which process or handle keeps the app from exiting, with the evidence), whether a fix is small (a quit path, a harness teardown, a flag for Linux), which e2e groups could then run under xvfb and which cannot (macOS-only surfaces, the Keychain, measured bounds), and a recommendation. No merge.

Check that it still holds

On a Linux VM with the repository installed: the command above with -g "the agent creates a dashboard from markdown" fails with Test timeout … while running "afterEach" hook.

Source: UX wave U10a's fix round; the friction tracker entry MAWS/conditional/e2e-app-close-times-out-on-linux-xvfb.md holds the workaround.

Activity

  1. added
    status:ready-for-implementer
    priority:P3
    spike
    on Nov 13, 2026
  2. SSFSKIM commented on Nov 13, 2026

    @SSFSKIM
    OwnerAuthor

    Further symptoms seen on a Linux build VM under xvfb-run by the UX wave's builders (2026-11-13 UTC), for whoever takes this spike. None is the close time-out this ticket names; each stops a scene inside its body.

    1. Scenes that open a session through the sidebar stall before their first act: the helper sidebarRow reports that the project row did not hold expanded, and Playwright's wait on [data-project-line] reads 'waiting for element to be visible, enabled and stable' until the time-out; the trace shows the project row clicked again and again. Seen in e2e/cross-build.spec.ts, e2e/lane-a.spec.ts and e2e/deliverables.spec.ts on the U8b branch (plain build, a 1280 x 792 window); harness-page scenes (#panel) reach their bodies. Not run on master on a VM, so whether a branch plays a part is unshown. The same scenes pass on the Mac lane.
    2. python3 -m http.server binds IPv4 only on Linux, so a scene step that reaches it over localhost fails there (the remote group's M3 step).
    3. The terminal paste scene stops at the Linux clipboard read; the terminal theme scene can take its light sample before the colours are painted (failed once, then passed).

    The Mac lane stays the run of record for every e2e group; this is only about how much a builder can prove on a VM before the Mac.

    Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:P3spikestatus:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions