I’m facing random compiling error on CI. The same ...
# build-tools
b
I’m facing random compiling error on CI. The same code may compile successfully and after adding git tag (which triggering new CI check) the same code fails to build with error
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
. I’ve tried to add different params to build command, but this didn’t help. Adding
-Dkotlin.compiler.execution.strategy=in-process
broke android data binding annotation processing. My current gradle build command looks like this:
./gradlew -Pkotlin.incremental=false -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false testBetaQaUnitTest lintBetaQa testProdReleaseUnitTest lintProdRelease
a
@bringoff what are your Gradle memory settings and how much memory do you have on CI node(s)?
b
@artem_zin ’-Xms384m -Xmx1750m’. CI machine has 8Gb of RAM, but I’m not sure how much android docker image is allowed to allocate. Need to recheck.
Welp, as mentioned in pull request discussion https://github.com/JetBrains/kotlin/pull/1332#issuecomment-336435922 “out-of-process” compile strategy was the only one which helped to get rid of errors. And this worked for me. Everything ok even when two CI builds run simultaneously. Can’t say anything about build time impact, because it was not a big deal for us. But looks like it didn’t change drastically.