Skip to content

Commit 8583fea

Browse files
Rollup merge of #152845 - jieyouxu:split-tidy-from-pr-test-jobs, r=marcoieni
Skip `tidy` in PR CI jobs not dedicated to running `tidy` This is both: 1. Redundant, since PR CI has a dedicated `tidy` job which runs in parallel and doesn't early-cancel other PR CI jobs 2. A contributor roadblock, because tidy failures in one test jobs block further failures from other test jobs being revealed. (2) defeats the parallel-but-not-early-cancelling reason of the separate `tidy` job in the first place. This PR skips tidy from being run in PR CI jobs that are not dedicated to running `tidy` (i.e. the non-`tidy` CI jobs). Fixes #148932.
2 parents 8ab5ec9 + 498f111 commit 8583fea

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/ci/docker/scripts/stage_2_test_set1.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ set -ex
44

55
# Run a subset of tests. Used to run tests in parallel in multiple jobs.
66

7+
# When this job partition is run as part of PR CI, skip tidy to allow revealing more failures. The
8+
# dedicated `tidy` job failing won't block other PR CI jobs from completing, and so tidy failures
9+
# shouldn't inhibit revealing other failures in PR CI jobs.
10+
if [ "$PR_CI_JOB" == "1" ]; then
11+
echo "PR_CI_JOB set; skipping tidy"
12+
SKIP_TIDY="--skip tidy"
13+
fi
14+
715
../x.py --stage 2 test \
16+
${SKIP_TIDY:+$SKIP_TIDY} \
817
--skip compiler \
918
--skip src

src/ci/docker/scripts/stage_2_test_set2.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ set -ex
44

55
# Run a subset of tests. Used to run tests in parallel in multiple jobs.
66

7+
# When this job partition is run as part of PR CI, skip tidy to allow revealing more failures. The
8+
# dedicated `tidy` job failing won't block other PR CI jobs from completing, and so tidy failures
9+
# shouldn't inhibit revealing other failures in PR CI jobs.
10+
if [ "$PR_CI_JOB" == "1" ]; then
11+
echo "PR_CI_JOB set; skipping tidy"
12+
SKIP_TIDY="--skip tidy"
13+
fi
14+
715
../x.py --stage 2 test \
16+
${SKIP_TIDY:+$SKIP_TIDY} \
817
--skip tests \
918
--skip coverage-map \
1019
--skip coverage-run \

0 commit comments

Comments
 (0)