You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2026/09/06 01:55:41 UTC
(groovy) branch master updated: Cap concurrent groovyc on CI to avoid compile-worker connection resets
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 2c57ebb216 Cap concurrent groovyc on CI to avoid compile-worker connection resets
2c57ebb216 is described below
commit 2c57ebb216967fe5161286cb0ca375663be22a7a
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Sep 6 10:54:14 2026 +0900
Cap concurrent groovyc on CI to avoid compile-worker connection resets
Forked groovyc (1g) overlapping Test (2g) overcommits GitHub Actions RAM.
The worker dies and Gradle reports MessageIOException / Connection reset
on compileGroovy — the same IPC failure Test already avoids with
ConcurrentExecutionControlBuildService. Use that limiter for GroovyCompile
on CI as well.
---
build-logic/src/main/groovy/org.apache.groovy-internal.gradle | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/build-logic/src/main/groovy/org.apache.groovy-internal.gradle b/build-logic/src/main/groovy/org.apache.groovy-internal.gradle
index 26daca1301..77ddbfd9d6 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-internal.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-internal.gradle
@@ -29,6 +29,8 @@
* Groovy than what is published externally.
*/
+import org.apache.groovy.gradle.ConcurrentExecutionControlBuildService
+
def internalPublication = Attribute.of("org.apache.groovy.internal", Boolean)
def makeInternal = { Configuration cnf ->
@@ -85,4 +87,11 @@ tasks.withType(GroovyCompile).configureEach {
// See also https://docs.gradle.org/current/userguide/groovy_plugin.html#sec:incremental_groovy_compilation
options.incremental = true
options.incrementalAfterFailure = true
+
+ // Forked groovyc (groovycMain_mx=1g) overlapping Test (groovyJUnit_mx=2g)
+ // overcommits GHA RAM; the worker dies and Gradle reports MessageIOException
+ // / Connection reset on compileGroovy. Same limiter Test already uses.
+ if (sharedConfiguration.isRunningOnCI) {
+ usesService(ConcurrentExecutionControlBuildService.restrict(GroovyCompile, gradle, 2))
+ }
}