Skip to content

Commit 5c66632

Browse files
committed
Disable rust-analyzer tests on LLVM 21
The rust-analyzer tests have been frequently failing with a SIGSEGV on CI in the LLVM 21 runners. In my investigation, this seems to be fixed with LLVM 22. It was suggested that we should just disable these tests. There wasn't a particularly convenient way to detect if this is running with LLVM 21, so I decided to just check the CI_JOB_NAME which contains the image name which in our case includes the string "llvm-21". Fixes #156460
1 parent d3cd040 commit 5c66632

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/ci/docker/scripts/stage_2_test_set2.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,18 @@ if [ "$PR_CI_JOB" == "1" ]; then
1212
SKIP_TIDY="--skip tidy"
1313
fi
1414

15+
# The combination of rust.randomize-layout and LLVM 21 is causing random
16+
# SIGSEGV in the `hir-def` rust-analyzer tests. Since it seems to be fixed in
17+
# LLVM 22, let's just disable this for now since it has been disruptive for
18+
# CI. See https://github.com/rust-lang/rust/issues/156460.
19+
if [[ "$CI_JOB_NAME" == *"llvm-21"* ]]; then
20+
echo "CI_JOB_NAME contains 'llvm-21'; skipping rust-analyzer"
21+
SKIP_RUST_ANALYZER="--skip src/tools/rust-analyzer"
22+
fi
23+
1524
../x.py --stage 2 test \
1625
${SKIP_TIDY:+$SKIP_TIDY} \
26+
${SKIP_RUST_ANALYZER:+$SKIP_RUST_ANALYZER} \
1727
--skip tests \
1828
--skip coverage-map \
1929
--skip coverage-run \

0 commit comments

Comments
 (0)