fix(ci): fix android emulator OOM on CI#40
Open
CAMOBAP wants to merge 1 commit into
Open
Conversation
…emon before boot Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
target: google_apis→target: default— AOSP image doesn't bundle Play Services, uses ~600MB less RAM and boots faster. Harness tests don't need Play Services../gradlew --stopbefore launching the emulator — kills the resident Gradle daemon after the build, freeing ~1GB of heap before the emulator claims its 2560MB.Root cause
The emulator process was silently OOM-killed immediately after launch — it never responded to a single
adbpoll over the full 600s boot timeout. Thegoogle_apisimage bumped RAM to 2560MB, and with two live Gradle/Java daemons still running after the build step, the 7GB ubuntu-latest runner had insufficient memory left.Test plan
harness-androidjob boots emulator and completes without timeout🤖 Generated with Claude Code