-
Notifications
You must be signed in to change notification settings - Fork 34
Fix crash in emulator launch in android-emulator-tests.sh #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
justice-adams-apple
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
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