Skip to content

Commit a39f946

Browse files
committed
ci: enhance sanitizer workflow
- Add ThreadSanitizer job for async/concurrent code (dash-spv, key-wallet) - Expand path triggers to include all tested crates (dashcore, key-wallet, etc.)
1 parent 648485d commit a39f946

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/sanitizer.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
- 'key-wallet-ffi/**'
1212
- 'dash-spv-ffi/**'
1313
- 'dash-network-ffi/**'
14+
- 'dashcore/**'
15+
- 'dashcore_hashes/**'
16+
- 'key-wallet/**'
17+
- 'dash-spv/**'
18+
- 'dash-network/**'
1419

1520
permissions:
1621
contents: read
@@ -44,3 +49,22 @@ jobs:
4449
# Core crypto crates (unsafe optimizations)
4550
cargo +nightly test -Zbuild-std --target x86_64-unknown-linux-gnu \
4651
-p dashcore -p dashcore_hashes --lib --tests
52+
53+
tsan:
54+
name: Thread Sanitizer
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v6
58+
- uses: dtolnay/rust-toolchain@nightly
59+
with:
60+
components: rust-src
61+
- uses: Swatinem/rust-cache@v2
62+
63+
- name: Run tests with TSAN
64+
env:
65+
RUSTFLAGS: "-Zsanitizer=thread -Cdebuginfo=2"
66+
TSAN_OPTIONS: "second_deadlock_stack=1"
67+
run: |
68+
# Async/concurrent crates
69+
cargo +nightly test -Zbuild-std --target x86_64-unknown-linux-gnu \
70+
-p dash-spv -p key-wallet --lib --tests

0 commit comments

Comments
 (0)