File tree 2 files changed +13
-2
lines changed
ci/docker/host-x86_64/x86_64-gnu-tools
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,16 @@ cat /tmp/toolstate/toolstates.json
25
25
python3 " $X_PY " test --stage 2 check-tools
26
26
python3 " $X_PY " test --stage 2 src/tools/clippy
27
27
python3 " $X_PY " test --stage 2 src/tools/rustfmt
28
- python3 " $X_PY " test --stage 2 src/tools/miri
28
+
29
+ # Testing Miri is a bit more complicated.
30
+ # We set the GC interval to the shortest possible value (0 would be off) to increase the chance
31
+ # that bugs which only surface when the GC runs at a specific time are more likely to cause CI to fail.
32
+ # This significantly increases the runtime of our test suite, or we'd do this in PR CI too.
33
+ if [[ -z " ${PR_CI_JOB} " ]]; then
34
+ MIRIFLAGS=-Zmiri-provenance-gc=1 python3 " $X_PY " test --stage 2 src/tools/miri
35
+ else
36
+ python3 " $X_PY " test --stage 2 src/tools/miri
37
+ fi
29
38
# We natively run this script on x86_64-unknown-linux-gnu and x86_64-pc-windows-msvc.
30
39
# Also cover some other targets via cross-testing, in particular all tier 1 targets.
31
40
export BOOTSTRAP_SKIP_TARGET_SANITY=1 # we don't need `cc` for these targets
Original file line number Diff line number Diff line change 1
- //@compile-flags: -Zmiri-ignore-leaks -Zmiri-disable-stacked-borrows
1
+ //@compile-flags: -Zmiri-ignore-leaks -Zmiri-disable-stacked-borrows -Zmiri-provenance-gc=10000
2
+ // This test's runtime explodes if the GC interval is set to 1 (which we do in CI), so we
3
+ // override it internally back to the default frequency.
2
4
3
5
// The following tests check whether our weak memory emulation produces
4
6
// any inconsistent execution outcomes
You can’t perform that action at this time.
0 commit comments