From 6ade09a84008d5ac64b57f8f4f0ee10fc6fafb7a Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 5 May 2023 12:46:48 +0200 Subject: [PATCH] [ci] Run pmd-regression-tester with multiple threads Also build the baseline with multiple threads. --- .ci/inc/regression-tester.inc | 1 + Dangerfile | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.ci/inc/regression-tester.inc b/.ci/inc/regression-tester.inc index d2fff0d45e..994e6a8a36 100644 --- a/.ci/inc/regression-tester.inc +++ b/.ci/inc/regression-tester.inc @@ -50,6 +50,7 @@ function regression_tester_uploadBaseline() { --patch-branch "${baseline_branch}" \ --patch-config ./pmd/.ci/files/all-regression-rules.xml \ --list-of-project ./pmd/.ci/files/project-list.xml --html-flag \ + --threads "$(nproc)" \ --error-recovery pushd target/reports || { echo "Directory 'target/reports' doesn't exist"; exit 1; } BRANCH_FILENAME="${baseline_branch/\//_}" diff --git a/Dangerfile b/Dangerfile index f0fd4eb8a5..beb059fd46 100644 --- a/Dangerfile +++ b/Dangerfile @@ -2,6 +2,7 @@ require 'pmdtester' require 'time' require 'logger' require 'fileutils' +require 'etc' @logger = Logger.new(STDOUT) @@ -16,6 +17,7 @@ def get_args(base_branch, autogen = TRUE, patch_config = './pmd/.ci/files/all-re '--keep-reports', '--error-recovery', '--baseline-download-url', 'https://pmd-code.org/pmd-regression-tester/', + '--threads', Etc.nprocessors.to_s, # '--debug', ] end