Skip to content

test(browser): aborted Xvfb startup test can see the fake Xvfb alive under load #318

Closed

Description

@ElbertePlinio

Found while validating PR #316 (#213).

packages/browser/test/session.test.ts > "partial-failure cleanup (fake binaries) > aborts during Xvfb startup only after stopping the spawned group" failed once in a full local coverage run at load average about 7: expect(isPidAlive(xvfbPid)).toBe(false) received true. The same test passed in 8 isolated runs, 5 runs of the whole file, and the next full run. It is not yet known whether this predates #316, which moved browser startup under a startup permit but left the Xvfb start and rollback code unchanged.

  • Reproduce under load, for example with several concurrent runs of the file
  • Decide whether rollback can return before the fake Xvfb exits or before its PID is recorded, and fix the product or the test
  • Keep the assertion that an aborted create stops the spawned group

Activity

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