Skip to content

Commit 52d41f9

Browse files
committed
flaky check
1 parent d851c3a commit 52d41f9

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,35 @@ jobs:
100100
- name: Run no-std checks
101101
run: python .github/scripts/ci_config.py run-no-std
102102

103+
flaky-spv:
104+
name: SPV Flaky Check (${{ matrix.run }}/20)
105+
runs-on: ubuntu-22.04-arm
106+
strategy:
107+
fail-fast: false
108+
matrix:
109+
run: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
110+
env:
111+
DASHVERSION: "23.0.2"
112+
TEST_DATA_REPO: "dashpay/regtest-blockchain"
113+
TEST_DATA_VERSION: "v0.0.2"
114+
steps:
115+
- uses: actions/checkout@v6
116+
- uses: dtolnay/rust-toolchain@stable
117+
- uses: Swatinem/rust-cache@v2
118+
with:
119+
shared-key: "flaky-spv"
120+
- name: Cache dashd and test data
121+
uses: actions/cache@v4
122+
with:
123+
path: .rust-dashcore-test
124+
key: rust-dashcore-test-ubuntu-22.04-arm-${{ env.DASHVERSION }}-${{ env.TEST_DATA_VERSION }}
125+
- name: Setup dashd
126+
env:
127+
CACHE_DIR: ${{ github.workspace }}/.rust-dashcore-test
128+
run: python contrib/setup-dashd.py >> "$GITHUB_ENV"
129+
- name: Run SPV integration tests (attempt ${{ matrix.run }})
130+
run: cargo test -p dash-spv --test dashd_sync -- --nocapture
131+
103132
integrations_tests:
104133
name: Integration Tests
105134
if: ${{ false }} # Temporarily disabled

0 commit comments

Comments
 (0)