-
Notifications
You must be signed in to change notification settings - Fork 250
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
API 29 CI OOM fix #119
API 29 CI OOM fix #119
Conversation
Android test orchestrator runs each instrumentation test in isolation. This should isolate OOM crashes and one test should not crash the rest. Clear data after each test should also free memory. Also bumped up test dependencies' version.
This reverts commit bd1c572. API 29 is still failing with OOM.
* Reduced jvm maxHeap for ci gradle * Reduced test jvm maxHeap for tests Github actions has 7GB of RAM so reducing gradle RAM should leave more free for the emulator.
Is there a place where this is documented? I imagine there might be a stack overflow post? If so can you link it? Thanks. Btw i linked the issue here. |
Having thought about this -- can you separate the 3 different changes into separate PRs with CI runs? I'd love to understand exactly which one of these changes is fixing the issue! |
is this still needed? |
We are seeing some more out of memory errors now. @deepankarb do you think any of these fixes will be useful? |
I think they're worth a try. I'll run each option + current master as control 10 times to quantify if they reduce oom errors. |
Attempting to fix
./gradlew connectedCheck
OOM errors in Github Actions by reducing gradle and gradle test JVM max heap. This should make more RAM available for emulator.Gradle JVM heap reduced from 5 GB to 3 GB.
Gradle test JVM heap reduced from default to 256 MB.