Repository navigation
DEV-1115 Give the CI Gradle daemon 4 GB and a 30-minute timeout - #125
Merged
Merged
Conversation
The first CI run ran out of heap (Gradle's default 512 MB) while D8 dexed the examples, and the daemon then hung until GitHub cancelled the job at 6 hours. gradle.properties is gitignored, so pass org.gradle.jvmargs on the command line, and cap the job at 30 minutes. Reproduced locally (JDK 17, Gradle 8.5): at -Xmx512m the build fails with "D8: java.lang.OutOfMemoryError: Java heap space"; at -Xmx4g it passes in 4m47s with assembleDebug run in all 12 modules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JongChern
added a commit
that referenced
this pull request
Oct 18, 2026
Three follow-ups ahead of review: - The release build job now also builds every example app against the driver this release ships with, before anything is published. ci.yml only ever builds them against master's default driver, so a release that picks a newer driver was never built with the examples (raised in #126). Both build steps pass the 4 GB daemon heap from #125. - The publishing block accepts gpr.usr as well as gpr.user, since the root build.gradle reads gpr.usr (also raised in #126). - actions/* steps are pinned to commit SHAs, matching #124: each is the commit its v4 tag points at today. Co-Authored-By: Claude Opus 5.5 <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.
Fix for #124, whose only CI run never finished. This PR targets
DEV-1115_ci_build, so merging it folds the fix into #124.What went wrong
The run ran out of heap about 4 minutes in. Gradle's default heap is 512 MB, and D8 runs out while dexing
bluetoothManagerExample. The daemon then hung instead of failing, until GitHub cancelled the job at 6 hours:Fix
-Dorg.gradle.jvmargs="-Xmx4g -XX:MaxMetaspaceSize=1g"on the command line. It can't go in a file becausegradle.propertiesis gitignored. Public-repo runners have 16 GB.timeout-minutes: 30to the job.Tested locally (JDK 17, Gradle 8.5, the same command as CI)
-Xmx512mthe build fails withD8: java.lang.OutOfMemoryError: Java heap space, which reproduces the CI failure.-Xmx4g, after a clean, the build passes in 4m47s, withassembleDebugrun in all 12 modules.CI does not run on this PR, because
ci.ymlonly triggers on PRs intomaster. Once this is merged intoDEV-1115_ci_build, #124's own run is the check on GitHub.🤖 Generated with Claude Code