build(gmd): cap managed-device emulators to 1 concurrent (serial) to avoid local VT-x contention #267

Merged
JMR-dev merged 1 commits from build-gmd-serial-emulators into main 2026-07-03 21:48:57 +00:00
1 Commits
Author SHA1 Message Date
JMR-devandClaude Opus 4.8 05b43f4510 build(gmd): cap managed-device emulators to 1 concurrent (serial) to avoid local VT-x contention
The e2e Gradle Managed Device group spans api29-36 and org.gradle.parallel=true
is set, so a local e2eGroupDebugAndroidTest (or preflight's api36DebugAndroidTest)
can launch several emulators at once. They contend for the same VT-x/HAXM
virtualization slot on a single machine and hang at 0% CPU with "another
emulator instance is running". Set
android.experimental.testOptions.managedDevices.maxConcurrentDevices=1 in
gradle.properties to force GMD emulator runs serial locally.

CI is unaffected: its e2e matrix boots one emulator per API level on separate
GitHub Actions runners via reactivecircus/android-emulator-runner and
connectedDebugAndroidTest, not these Gradle Managed Device tasks, so the cap
doesn't apply there regardless.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 16:45:24 -05:00