Integrated: build: run build and tests in parallel

Erik Helin ehelin at openjdk.java.net
Fri Feb 12 14:52:26 UTC 2021


On Fri, 12 Feb 2021 13:08:33 GMT, Erik Helin <ehelin at openjdk.org> wrote:

> Hi all,
> 
> please review this patch that enables builds and tests to happen in parallel. I also tweaked the build a little:
> 
> - the Gradle daemon now gets an `Xmx` of `2048 Mb`
> - Gradle will run up to 100 tests in the same JVM before forking a new one
> - the JVM for compiling will be forked, reducing heap pressure on the Gradle daemon thread
> - enabled the file system watching feature for faster rebuilds
> 
> The results on my AMD Ryzen 5 3600 is that `sh gradlew clean && sh gradlew --info test` went from ~10 minutes to ~2 minutes :partying_face: �� 
> 
> Testing:
> - [x] `make images` on Linux x64
> - [x] `make test` on Linux x64
> 
> Thanks,
> Erik

This pull request has now been integrated.

Changeset: 363871a7
Author:    Erik Helin <ehelin at openjdk.org>
URL:       https://git.openjdk.java.net/skara/commit/363871a7
Stats:     20 lines in 2 files changed: 20 ins; 0 del; 0 mod

build: run build and tests in parallel

Reviewed-by: rwestberg

-------------

PR: https://git.openjdk.java.net/skara/pull/1009


More information about the skara-dev mailing list