Skip to content

test(android): AVD lock refusal test once failed to reject under concurrent suites #294

Closed

Description

@ElbertePlinio

Found while fixing #280 (PR #289).

packages/android/test/emulator.test.ts "refuses a writable start while a live emulator holds the AVD lock" failed once under two concurrent full suites on main be2d00c: expected startEmulator to reject at the first startFailure call. The test writes the lock file with the pid of a live sleep 60 whose argv[0] is emulator, then expects avd-in-use.

PR #289 found that the AVD home and port registry are already private to each run, so the other run cannot touch this lock. The cause is not known. It did not reproduce in 46 concurrent runs (16 on the old code, 30 with PR #289). PR #289 now serializes this file across runs, which hides any cross-run effect, but a cause inside one run is not ruled out.

  • Find how the live lock holder could be missed (for example the pid or cmdline check right after spawn, or lock parsing)
  • Fix the test or the product check
  • Repeat-run evidence under load

Activity

  1. added
    bug
    on Oct 7, 2026
  2. added a commit that references this issue on Oct 8, 2026
    4e3623a
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