ci: compile Kotlin in process for test shards - #221
Merged
Conversation
ankitTelnyx
force-pushed
the
ci/use-in-process-kotlin-compiler
branch
from
August 15, 2026 00:11
8765c54 to
36d0f17
Compare
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.
Summary
Root cause
PR #216 contains a generated 12 GiB Gradle heap because its larger source tree needs more than 8 GiB to compile. With the default Kotlin daemon strategy, that heap is inherited by a second JVM. This explains the earlier runner shutdowns at 12 GiB and, after #220 capped both JVMs at 8 GiB, the explicit Kotlin
java.lang.OutOfMemoryErrorfailures in all three shards.The conditional keeps current
masteron its already-proven 8 GiB daemon path. Any non-baseline generated heap fails over to one in-process compiler JVM instead of two competing large JVMs. It does not modify generated SDK source or generatedgradle.properties.Validation
e159f3b77a5f1c6e09ebee4e3164f174bad3a945: clean:telnyx-core:compileKotlinwith in-process compilation passed in 9m20s using the branch's 12 GiB settingmasterselected normal daemon args; PR release: 6.86.0 #216 selected in-process argsactionlint .github/workflows/ci.ymlgit diff --check