From a9e8fac805c756b2e431c687e3855b9a9d0c3d7b Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Wed, 12 Aug 2026 10:24:39 +0200 Subject: [PATCH 1/2] skip tests for doc files changes --- pr_testing/test_multiple_prs.sh | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/pr_testing/test_multiple_prs.sh b/pr_testing/test_multiple_prs.sh index ea25e701239..f52765929f8 100755 --- a/pr_testing/test_multiple_prs.sh +++ b/pr_testing/test_multiple_prs.sh @@ -47,6 +47,28 @@ function get_pr_relval_args() { echo "${WF_ARGS}" } +function should_skip_test() +{ + local file="$1" + local patterns=( + '\.md$' + '/README$' + ) + while IFS= read -r filename; do + local matched=false + for regexp in "${patterns[@]}"; do + if [[ "$filename" =~ $regexp ]]; then + matched=true + break + fi + done + if ! $matched; then + return 0 + fi + done < "$file" + return 1 +} + # Function to extract filenames by headername and append to indirectly-changed-files.txt function extract_filenames() { local headername="$1" @@ -962,6 +984,7 @@ if ! $CMSDIST_ONLY ; then # If a CMSSW specific PR was specified # fi git diff --name-only $CMSSW_VERSION > $WORKSPACE/changed-files + if ! should_skip_test $WORKSPACE/changed-files ; then RUN_TESTS=false ; fi # look for any other error in general if ! grep "ALL_OK" $GIT_MERGE_RESULT_FILE; then @@ -976,7 +999,7 @@ if ! $CMSDIST_ONLY ; then # If a CMSSW specific PR was specified # mv src src.tmp && mkdir src cd src THRDS="" - git cms-init --upstream-only && git checkout -b codechecks $CMSSW_IB + git cms-init --upstream-only $CMSSW_IB && git checkout -b codechecks $CMSSW_IB git repack -h 2>&1 | grep '\-\-threads' && THRDS="--threads ${NCPU}" || true git repack -a -d ${THRDS} git repack -a -d ${THRDS} From b6642892a74c4e0039825f12de5430e285ea3ffa Mon Sep 17 00:00:00 2001 From: Malik Shahzad Muzaffar Date: Wed, 12 Aug 2026 10:28:55 +0200 Subject: [PATCH 2/2] Update test_multiple_prs.sh --- pr_testing/test_multiple_prs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_testing/test_multiple_prs.sh b/pr_testing/test_multiple_prs.sh index f52765929f8..de9767c31a4 100755 --- a/pr_testing/test_multiple_prs.sh +++ b/pr_testing/test_multiple_prs.sh @@ -999,7 +999,7 @@ if ! $CMSDIST_ONLY ; then # If a CMSSW specific PR was specified # mv src src.tmp && mkdir src cd src THRDS="" - git cms-init --upstream-only $CMSSW_IB && git checkout -b codechecks $CMSSW_IB + git cms-init --upstream-only && git checkout -b codechecks $CMSSW_IB git repack -h 2>&1 | grep '\-\-threads' && THRDS="--threads ${NCPU}" || true git repack -a -d ${THRDS} git repack -a -d ${THRDS}