-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Any way to improve stability? (InstallExceptions, Process crashing etc.) #126
Comments
I've also been getting all kinds of issues with newer version of the system images recently, we could be caused by updated version of the emulator binary / system images. There's still no way to ping these SDK components to a specific version, so the action always downloads the latest stable version. I've also seen occasional intermittent issues with macos VMs which we unfortunately have no control either. Have you tried running with a lower API level? |
Haven't tested the following very thoroughly but not downloading the new cmdline-tools and just using the tools already present in the
The only reason I found this out is because our Azure pipeline was using the built-in Here's our fork if you're curious about it but I wouldn't suggest using our fork since release/v2 is where I'm experimenting with things. |
Thanks for sharing your findings. The action has been using The main rationale for using the new I haven't had a chance to look into this so please do share any insights your find from your experiment! BTW |
One thing I noticed after you mentioned that Seem very different, right? The interesting part to me was The default value for this property is 2 in AOSP. So I used the cmdline-tools and just appended |
@AfzalivE thanks for digging into this! Is it worth firing a bug on the issue tracker to confirm this is the safe to do and get more context around this significant change? And please feel free to send a PR if you think this is worth trying to improve instability. |
Maybe, created it. Found why it's happening too: https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-master-dev:sdklib/src/main/java/com/android/sdklib/internal/avd/EmulatedProperties.java;l=46?q=RECOMMENDED_NUMBER_OF_CORES Since the macOS VM has 3 cores, the resulting number is 1. Maybe the issue will get closed as "working as intended" but in my experience, this is stabler than 1 in the GitHub-hosted runner. I'll send a PR your way, also added a few more options in our fork that I'll send upstream but I'll keep them in separate PRs so you can accept/reject them individually if you like. |
Wow great work! Looking forward to the PRs :) |
So from the looks of things, stability is now much better than it was before! Thanks for everyone's work on this :) |
I'm finding that a large percentage of my espresso test runs end in some sort of emulator crash or failure, causing the job to fail. This usually ends up in me effectively hitting the "re-run job" button until the stars align and the test suite runs to completion. The test suite is reliable enough when run locally, it's just on github actions that it fails.
Is this a problem that others are seeing, or is it the result of something that I'm doing wrong / badly within my project? Do I just have to accept that the emulator on github runners is hilariously unstable?
One output example (https://github.com/owntracks/android/runs/1897406606?check_suite_focus=true):
Here's another example where the process crashes (https://github.com/owntracks/android/runs/1805228040?check_suite_focus=true)
From my workflow:
The text was updated successfully, but these errors were encountered: