Skip to content

test: display allocation spawn count flakes under parallel load #240

Closed

Description

@ElbertePlinio

packages/desktop-linux/test/display-allocation.test.ts > "cross-process display allocation" > "starts twelve synchronized sessions without cross-file display collisions" failed once in a local full-suite run while other agents ran Xvfb servers on the same host. The assertion at line 304 expected 12 Xvfb spawns and got 13, so one worker retried a spawn. All 12 allocated displays were still distinct.

The same file passed 5 of 5 runs alone on the same revision. The run had PICKFORGE_REQUIRE_DESKTOP_CAPTURES=1, PICKFORGE_REQUIRE_DESKTOP_WINDOWS=1, PICKFORGE_REQUIRE_DESKTOP_WAIT=1 and PICKFORGE_REQUIRE_BROWSER=1, with load average around 4.

Found while validating #237. That PR does not touch display allocation.

  • Decide whether a retry under contention is correct behavior, and if so assert on distinct displays rather than an exact spawn count.
  • Otherwise find why a worker spawns twice and fix it.
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