Hiroto-N / fastlane-plugin-automated-test-emulator-run

Plugin dedicated for Android platform. Wraps gradle task/shell command used for launching instrumented tests. Provides start of as many AVDs with various configs as needed before test run, waits for boot, kills emulators and deletes them from hdd after tests are finished or disturbed.
MIT License
1 stars 5 forks source link

Launching multiple AVDs at same time causing boot issues on Android API 31-33 #11

Closed BJMcP1 closed 10 months ago

BJMcP1 commented 1 year ago

I'm having trouble with launching multiple Android AVDs with API 31-33 with this plugin.

When launching multiple AVDs the first is the only one to boot properly. The others remain displaying a blank screen but the run seems to think the others have booted and proceed to the next step. I get BUILD FAILED errors for each that didn't boot and the one that did boot runs its portion of the tests. The issue is not present in API 30 and earlier and I have no issues running with a single AVD in API 31-33. Android Studio, SDKs and SDKTools are all up to date.

I'm able to replicate the issue by entering the same commands into the terminal. When submitting all of the launch AVD commands at the same time only the first one boots properly. However, if I submit each command individually they all boot properly.

https://github.com/Hiroto-N/fastlane-plugin-automated-test-emulator-run/blob/077b8e85fd69e9a02df842c5071fa249675fc76c/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb#L103-L109

Hiroto-N commented 1 year ago

Hey, thanks for raising the issue and apologies I didn't see this sooner - I see you have some changes on your fork now, do those changes fix the issue? if so if you can create a PR I can get it merged and released in a new release 👍