Repository navigation
Build: Give unit tests a 2 GB heap - #284
Merged
Merged
Conversation
Unit tests ran in a JVM with Gradle's default 512 MB heap. Robolectric keeps one android-all jar loaded per Android SDK the tests pin, and the suite pins four (34 by default, 33, 29 and 28). On CI that ran out of heap while NewFeederQRTest loaded the SDK 28 jar, on PR #282 (testGplay) and PR #283 (testFoss), each time in tests the PR didn't touch.
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.
What changed
No user-facing behavior change. Unit tests now run with a 2 GB heap instead of Gradle's 512 MB default.
Technical Context
OutOfMemoryError: Java heap spacewhile NewFeederQRTest loaded Robolectric's Android 9 jar, on Common: Call your station a receiver instead of a feeder #282 (testGplay) and Build: Save store screenshots without an alpha channel #283 (testFoss), in tests neither PR touched. Both passed on re-run.sdk = [28]pin alone would leave the next pin to hit the same limit.