From 8460f7398b7e60a0de24de7148993459742b3cbd Mon Sep 17 00:00:00 2001 From: bneradt Date: Tue, 10 Feb 2026 17:51:41 -0600 Subject: [PATCH] Parallel autest execution with -j 2 when supported The autest.sh script now accepts a -j flag for parallel test execution (apache/trafficserver#12867). Detect support by grepping for the parallel_mode variable and prepend -j 2 to autest_args when present. Older branches without the feature are unaffected. --- jenkins/github/autest.pipeline | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jenkins/github/autest.pipeline b/jenkins/github/autest.pipeline index 9e75032..722e6b3 100644 --- a/jenkins/github/autest.pipeline +++ b/jenkins/github/autest.pipeline @@ -150,6 +150,11 @@ pipeline { autest_args="--ats-bin /tmp/ats/bin/ --sandbox /tmp/sandbox" fi + # Check for parallel support in autest.sh - originally added in 10.2.0. + if grep -q parallel_mode autest.sh; then + autest_args="-j 2 ${autest_args}" + fi + autest_failed=0 if [ ${SHARDCNT} -le 0 ]; then ./autest.sh ${autest_args} || autest_failed=1