Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions .github/workflows/sanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ on:
permissions:
contents: read

# Pinned nightly: nightly-2026-07-14 (rustc daf2e5e18) ICEs while expanding the
# libtest harness for dash-spv-ffi ("attribute is missing tokens:
# rustc_test_entrypoint_marker" in rustc_ast/src/attr/mod.rs). Bump or restore
# the floating `nightly` once a fixed nightly ships.
env:
SANITIZER_TOOLCHAIN: nightly-2026-07-13

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -35,9 +28,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ env.SANITIZER_TOOLCHAIN }}
components: rust-src

- name: Run tests with ASAN
Expand All @@ -49,21 +41,20 @@ jobs:
SKIP_DASHD_TESTS: 1
run: |
# FFI crates (C interop)
cargo "+$SANITIZER_TOOLCHAIN" test -Zbuild-std --target x86_64-unknown-linux-gnu \
cargo +nightly test -Zbuild-std --target x86_64-unknown-linux-gnu \
-p key-wallet-ffi -p dash-spv-ffi --lib --tests

# Core crypto crates (unsafe optimizations)
cargo "+$SANITIZER_TOOLCHAIN" test -Zbuild-std --target x86_64-unknown-linux-gnu \
cargo +nightly test -Zbuild-std --target x86_64-unknown-linux-gnu \
-p dashcore -p dashcore_hashes --lib --tests

tsan:
name: Thread Sanitizer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ env.SANITIZER_TOOLCHAIN }}
components: rust-src

- name: Run tests with TSAN
Expand All @@ -74,5 +65,5 @@ jobs:
SKIP_DASHD_TESTS: 1
run: |
# Async crate with concurrent code
cargo "+$SANITIZER_TOOLCHAIN" test -Zbuild-std --target x86_64-unknown-linux-gnu \
cargo +nightly test -Zbuild-std --target x86_64-unknown-linux-gnu \
-p dash-spv --lib --tests
Loading