Skip to content

Commit a32ae63

Browse files
runningcodeclaude
andcommitted
build: Restore per-test heap cap for sentry-android-core
CI showed :sentry-android-core:testReleaseUnitTest fails with OutOfMemoryError (Robolectric loading the android-all jar) once the global cap is removed. Restore the 256m/2g cap for this module only, where it is actually needed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f535697 commit a32ae63

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sentry-android-core/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ android {
4040
unitTests.apply {
4141
isReturnDefaultValues = true
4242
isIncludeAndroidResources = true
43+
// Robolectric loads the android-all jar into each test JVM, which needs more heap
44+
// than the default. This cap used to live in the root build.gradle.kts for all modules.
45+
all {
46+
it.minHeapSize = "256m"
47+
it.maxHeapSize = "2g"
48+
}
4349
}
4450
}
4551

0 commit comments

Comments
 (0)