From 610f5a4b0561c6767905d74e37ecd1fd6ae3e049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Dinis=20Ferreira?= Date: Fri, 20 Nov 2026 06:05:53 +0100 Subject: [PATCH] ci: build the maven-verify job with two threads The job runs the reactor with -T 2, so two modules build and run their static analysis at a time. Test runtimes still take turns through the Surefire reactorConcurrencyLevel lock. Measured on the 4 vCPU runner over three runs each, the Build with Maven step took 654-738 s serial, 618-633 s with -T 2, 603-662 s with -T 1C and 613-913 s with -T 2C. With -T 2 the tests run at serial speed; -T 1C slows them by about 10-20% and -T 2C overloads the runner. Co-Authored-By: Claude Fable 5.2 --- .github/workflows/verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index f7c5f38fc..30f34c4ae 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -85,7 +85,7 @@ jobs: # snapshot; merge-queue builds compare with the snapshot exactly as the snapshot build does. env: BASELINE_ARGS: ${{ github.event_name == 'merge_group' && '-Dtycho.baseline=failCommon' || '-Dtycho.baseline=disable -Dtycho.baseline.replace=none' }} - run: xvfb-run ./mvnw clean verify checkstyle:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check spotbugs:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end $BASELINE_ARGS + run: xvfb-run ./mvnw clean verify checkstyle:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check spotbugs:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end -T 2 $BASELINE_ARGS - name: Fail on missing surefire reports if: always() run: bash .github/scripts/check-surefire-reports.sh