Skip to content

Commit

Permalink
Run ASan on ARM runners
Browse files Browse the repository at this point in the history
Signed-off-by: James Bornholt <[email protected]>
  • Loading branch information
jamesbornholt committed Mar 12, 2024
1 parent 3fae341 commit fd17e89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ jobs:

asan:
name: Address sanitizer
runs-on: ubuntu-22.04
runs-on: [self-hosted, linux, arm64]

environment: ${{ inputs.environment }}

timeout-minutes: 60
timeout-minutes: 30

steps:
- name: Configure AWS credentials
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test-asan-working:
@packages=`echo "$(CRATES)" | sed -E 's/(^| )/ -p /g'`; \
RUSTFLAGS="-Zsanitizer=address" \
RUSTC_BOOTSTRAP=1 \
cargo test -Z build-std --target x86_64-unknown-linux-gnu --features $(RUST_FEATURES) $$packages -- --ignored test_asan_working 2>&1 \
cargo test -Z build-std --target `rustc -vV | grep 'host:' | cut -f2 -d' '` --features $(RUST_FEATURES) $$packages -- --ignored test_asan_working 2>&1 \
| tee /dev/stderr \
| grep "heap-use-after-free" \
&& echo "ASan is working" || (echo "ASan did not find the use-after-free; something's wrong"; exit 1)
Expand All @@ -39,7 +39,7 @@ test-asan:
LSAN_OPTIONS=suppressions="$$(pwd)/lsan-suppressions.txt" \
RUSTFLAGS="-Zsanitizer=address" \
RUSTC_BOOTSTRAP=1 \
cargo test -Z build-std --target x86_64-unknown-linux-gnu --features $(RUST_FEATURES) $$packages -- \
cargo test -Z build-std --target `rustc -vV | grep 'host:' | cut -f2 -d' '` --features $(RUST_FEATURES) $$packages -- \
--skip reftest_ \
--skip proptest_ \
--skip fork_test \
Expand Down

0 comments on commit fd17e89

Please sign in to comment.