Skip to content

Commit 7555daa

Browse files
committed
Tweak maxParallelForks
Now GHA upgrades to 4-core runners, we can tweak this option a bit. Follow up d090d4b.
1 parent 6fb9bca commit 7555daa

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

gradle/special-tests.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ tasks.withType(Test).configureEach {
1717
maxRetries = 2
1818
maxFailures = 10
1919
}
20-
21-
// There are only 2 cores in each GitHub Action Runner, we use all of them here.
22-
maxParallelForks = Runtime.getRuntime().availableProcessors()
23-
} else {
24-
// https://docs.gradle.org/8.4/userguide/performance.html#execute_tests_in_parallel
25-
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
2620
}
21+
22+
// https://docs.gradle.org/8.8/userguide/performance.html#execute_tests_in_parallel
23+
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
2724
}
2825
tasks.named('test').configure {
2926
useJUnitPlatform {

0 commit comments

Comments
 (0)