Skip to content
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

Closed
wants to merge 3 commits into from
Closed

API 29 CI OOM fix #119

wants to merge 3 commits into from

Conversation

deepankarb
Copy link
Contributor

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.

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.
@jingtang10 jingtang10 linked an issue Dec 3, 2020 that may be closed by this pull request
@jingtang10
Copy link
Collaborator

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.

@jingtang10
Copy link
Collaborator

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!

@jingtang10
Copy link
Collaborator

is this still needed?

@deepankarb
Copy link
Contributor Author

We're seeing fairly less OutOfMemory errors now. #73 has been better fixed by #193.

@deepankarb deepankarb closed this Feb 11, 2021
@jingtang10
Copy link
Collaborator

We are seeing some more out of memory errors now. @deepankarb do you think any of these fixes will be useful?

@deepankarb
Copy link
Contributor Author

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.

@jingtang10 jingtang10 deleted the db/fix_ci_oom_api_29 branch April 13, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Integration test out of memory for API 29
2 participants