Fix crash in emulator launch in android-emulator-tests.sh#223
Conversation
|
Oops, this might conflict with the delay introduced in #221. Converting to draft while I inquire… |
|
The new (before it was crashing with Maybe we can introduce a delay before calling any |
|
BTW, @justice-adams-apple, why did you add |
|
The way that ReactiveCircus/android-emulator-runner deals with this is to continually poll |
|
I was wondering how you got away with not doing that, as even that polling has failed in the past, its error rate is just lower... |
|
Can someone add this to the "In Progress" for the Swift on Android project board? |
|
OK, I think this is ready to go. @finagolfin and @justice-adams-apple, if you want to test this out prior to it being merged, I think you should be able to test it with: - uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
+ uses: swift-android-sdk/github-workflows/.github/workflows/swift_package_test.yml@android-sleep-before-adb |
Derp, nevermind. I see it isn't allowed: We'll need to wait for this to be merged before we can really exercise it. |
|
Can someone merge this please, @swiftlang/github-workflows-contributors ? I don't have permission… |
While waiting for the Android emulator to start up, we poll it with
adb wait-for-any-device. This seems to crash sometimes (e.g, in this workflow run for apple/swift-configuration#140) with:This PR introduces periodic polling with
adb shell getprop sys.boot_completedon the theory that the emulator startup process is conflicting with theadbcommand.An example of the output should now look like:
CC: @finagolfin