Skip to content

Commit 4166a03

Browse files
authored
ci: disable errorprone during "tests" job (#15312)
Errorprone is only needed for "checks without tests". The idea is to speed up compilation for the "tests" job, which focuses on executing tests. Any errorprone issues will be found by the "checks without tests" job.
1 parent 3755418 commit 4166a03

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/run-checks-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
uses: ./.github/actions/prepare-for-build
8989

9090
- name: Run gradle tests
91-
run: ./gradlew test "-Ptask.times=true" --max-workers 2
91+
run: ./gradlew test "-Ptask.times=true" "-Pvalidation.errorprone=false" --max-workers 2
9292

9393
- name: List automatically-initialized gradle.properties
9494
run: cat gradle.properties

build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/ErrorPronePlugin.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ public void apply(Project project) {
100100
skipReason = null;
101101
} else {
102102
if (buildGlobals.isCIBuild) {
103-
throw new GradleException(
104-
"Odd, errorprone linting should always be enabled on CI builds?");
103+
skipReason = "skipped explicitly on a CI build it seems";
105104
} else {
106105
skipReason =
107106
"skipped on builds not running inside CI environments, pass -P"

0 commit comments

Comments
 (0)