Skip to content

test(android): session and reaper tests use fixed ports that concurrent runs could share #293

Closed

Description

@ElbertePlinio

Found while fixing #280 (PR #289).

PR #289 serializes packages/android/test/emulator.test.ts across concurrent runs with an abstract Unix socket lock, because its console ports are host-global. packages/android/test/session.test.ts (ports from 5640) and packages/android/test/reaper.test.ts (ports from 5648) also use fixed explicit ports. The port allocator's TCP probe briefly binds each port it checks. Two concurrent runs that check the same port at the same moment can see it as bound, as happened with 5668 in emulator.test.ts. No failure in these two files has been seen yet.

  • Confirm whether concurrent runs of these files can collide
  • If they can, share the emulator test port lock or give each file a disjoint, locked range
  • Repeat-run evidence under two concurrent suites

Activity

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