Skip to content

Commit 49f1881

Browse files
committed
Run the build integ test in parallel (#39788)
* Run the build integ test in parallel Because the randomized runner lives in buildSrc, we run these tests with the Gradle runner, and had no parallelism configured so far. * Handle Windows and "auto" better
1 parent 35d96c2 commit 49f1881

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

buildSrc/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ if (project != rootProject) {
232232
if (isLuceneSnapshot) {
233233
systemProperty 'test.lucene-snapshot-revision', isLuceneSnapshot[0][1]
234234
}
235+
String defaultParallel = System.getProperty('tests.jvms', project.rootProject.ext.defaultParallel)
236+
if (defaultParallel == "auto") {
237+
defaultParallel = Math.max(Runtime.getRuntime().availableProcessors(), 4)
238+
}
239+
maxParallelForks defaultParallel as Integer
235240
}
236241
check.dependsOn(integTest)
237242

0 commit comments

Comments
 (0)