Commit Graph

3 Commits

Author SHA1 Message Date
Ismael Juma 8d65271a0b
MINOR: Update Gradle to 7.6 (#12918)
The highlights are:
* Support for Java 19
* Support for incremental compilation following a compilation failure
* Flag for individual task rerun (eg "gradle test --rerun")
* Re-use Scala compiler between runs (will be enabled via #12280)

Release notes: https://docs.gradle.org/7.6/release-notes.html

Also adjusted the directory used by `retry_zinc` for the build output from
`build` to `logs` as `gradlew clean` was causing unintended deletion of
the file used by that tool to decide if a retry is required.

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
2022-11-30 05:25:56 -08:00
Ismael Juma 471e029f0a
MINOR: buildoutput.log should be under the `build` directory (#12919)
Otherwise it can cause `rat` to fail.

Note that this file is created by the `retry_zinc` script.

Reviewers: Jason Gustafson <jason@confluent.io>
2022-11-29 11:03:39 -08:00
Jason Gustafson 3d9a5f6ae3
KAFKA-14163; Retry compilation after zinc compile cache error (#12507)
We have been seeing builds fail due to errors such as the following:
```
Timeout waiting to lock zinc-1.6.1_2.13.8_17 compiler cache (/home/jenkins/.gradle/caches/7.5.1/zinc-1.6.1_2.13.8_17). It is currently in use by another Gradle instance.
```
This patch includes a workaround: if the compilation fails due to this zinc compile cache error, then we retry it.

Reviewers: Ismael Juma <ismael@juma.me.uk>

Co-authored-by: Lucas Bradstreet <lucasbradstreet@gmail.com>
2022-08-11 14:00:06 -07:00