Skip to content

Commit

Permalink
Update tsan CI
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Sep 14, 2024
1 parent 5baaef8 commit 811832a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ci/sanitizer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ export ASAN_OPTIONS="detect_odr_violation=0 detect_leaks=0"

# Run address sanitizer
RUSTFLAGS="-Z sanitizer=address" \
cargo test --tests --target x86_64-unknown-linux-gnu --all-features
cargo test -Z build-std --all --release --tests --target x86_64-unknown-linux-gnu --all-features --exclude benchmarks -- --test-threads=1

# Run leak sanitizer
RUSTFLAGS="-Z sanitizer=leak" \
cargo test --tests --target x86_64-unknown-linux-gnu --all-features
# Run memory sanitizer
RUSTFLAGS="-Z sanitizer=memory" \
cargo test -Z build-std --all --release --tests --target x86_64-unknown-linux-gnu --all-features --exclude benchmarks -- --test-threads=1

# Run thread sanitizer
RUSTFLAGS="-Z sanitizer=thread" \
cargo -Zbuild-std test --tests --target x86_64-unknown-linux-gnu --all-features
cargo clean
TSAN_OPTIONS="suppressions=$(pwd)/ci/tsan" \
RUSTFLAGS="${RUSTFLAGS:-} -Z sanitizer=thread" \
cargo test -Z build-std --all --release --target x86_64-unknown-linux-gnu --all-features --tests --exclude benchmarks -- --test-threads=1
4 changes: 4 additions & 0 deletions ci/tsan
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# TSAN suppressions file for orderwal

# The epoch-based GC uses fences.
race:crossbeam_epoch

0 comments on commit 811832a

Please sign in to comment.