Skip to content

Commit

Permalink
fix CI by using tree borrows model in miri to avoid failing on stacke…
Browse files Browse the repository at this point in the history
…d borrows violations in crossbeam-epoch
  • Loading branch information
Imberflur committed Jan 12, 2024
1 parent e893f20 commit 5287ca4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions miri.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ echo "using filter: \"$filter\""
# Miri currently reports leaks in some tests so we disable that check
# here (might be due to ptr-int-ptr in crossbeam-epoch so might be
# resolved in future versions of that crate).
MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-ignore-leaks" \
#
# crossbeam-epoch doesn't pass with stacked borrows so we need to use tree-borrows
# https://github.com/crossbeam-rs/crossbeam/issues/545
MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-ignore-leaks -Zmiri-tree-borrows" \
cargo +nightly miri nextest run \
-E "$filter" \
--test-threads="$test_threads" \
# use nocapture or run miri directly to see warnings from miri
#--nocapture

# Run tests only available when parallel feature is disabled.
MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-ignore-leaks" \
MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-ignore-leaks -Zmiri-tree-borrows" \
cargo +nightly miri nextest run \
--no-default-features \
-E "binary(no_parallel)" \
Expand Down

0 comments on commit 5287ca4

Please sign in to comment.