Skip to content

Commit cd5ea71

Browse files
committed
Only use msan on doctests. Remove miri for now due to memory overuse
1 parent 26e36c9 commit cd5ea71

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -155,31 +155,8 @@ jobs:
155155
run: |
156156
set -eo pipefail
157157
scripts/sanitizers.sh
158-
miri:
159-
name: Miri doctests
160-
env:
161-
RUST_BACKTRACE: 1
162-
runs-on: ubuntu-latest
163-
steps:
164-
- uses: actions/checkout@v1
165-
- name: Cache rustup
166-
uses: actions/cache@v2
167-
env:
168-
cache-name: cache-miri-target-and-lockfile
169-
with:
170-
path: |
171-
~/.rustup
172-
target
173-
Cargo.lock
174-
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}
175-
- name: sanitizers
176-
run: |
177-
rustup toolchain install nightly
178-
rustup component add miri --toolchain nightly-x86_64-unknown-linux-gnu
179-
export MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-ignore-leaks -Zmiri-disable-stacked-borrows -Zmiri-disable-validation"
180-
yes | cargo +nightly miri test --doc
181158
msan_tree_tests:
182-
name: MSAN tree tests
159+
name: MSAN doc tests
183160
env:
184161
RUST_BACKTRACE: 1
185162
runs-on: ubuntu-latest
@@ -201,4 +178,4 @@ jobs:
201178
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
202179
export RUSTFLAGS="-Zsanitizer=memory -Zsanitizer-memory-track-origins"
203180
export MSAN_OPTIONS=verbosity=2
204-
cargo +nightly test --release -Zbuild-std --target x86_64-unknown-linux-gnu --features=light_testing -- tree
181+
cargo +nightly test --doc -Zbuild-std --target x86_64-unknown-linux-gnu --features=light_testing -- --nocapture --test-threads=1

0 commit comments

Comments
 (0)