Skip to content

test: desktop-linux live server, integration and takeover tests flake under load #252

Closed

Description

@ElbertePlinio

Found while fixing #240 (PR #247) and #239 (PR #246). These desktop-linux tests fail under CPU contention or concurrent suites.

packages/desktop-linux/test/display-allocation.test.ts "does not spawn over or unlink artifacts for a live unrelated server" sometimes sees isDisplayAlive(display) === false right after waitForFiles finds the real Xvfb socket and lock (around line 197). It failed in 3 of 8 copies pinned to 2 CPUs next to busy loops. File presence probably does not yet mean a verifiable owner.

packages/desktop-linux/test/integration.test.ts failed once in 10 full-suite runs on a lightly loaded host while validating PR #246. Under two concurrent full suites, takeover.test.ts (VNC port "already in use", x11vnc exited), display-identity.test.ts and x11-anchor.test.ts also failed. One of these failure paths leaked an Xvfb on :95 that stayed up for about 33 minutes, so some failure path probably skips cleanup.

  • Wait for a verifiable owner in the live unrelated server test
  • Reproduce and fix the integration, takeover and leak cases

Activity

  1. added
    bug
    on Oct 5, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions