Skip to content

Commit b133546

Browse files
committed
flaky check
1 parent 9dfa1d2 commit b133546

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,36 @@ jobs:
5858

5959
- name: Run tests
6060
run: python .github/scripts/ci_config.py run-group ${{ matrix.group }} --os ${{ inputs.os }}
61+
62+
flaky-check:
63+
name: "flaky #${{ matrix.run }}"
64+
if: inputs.os == 'ubuntu-latest'
65+
runs-on: ubuntu-latest
66+
strategy:
67+
fail-fast: false
68+
matrix:
69+
run: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
70+
steps:
71+
- uses: actions/checkout@v6
72+
- uses: dtolnay/rust-toolchain@stable
73+
- uses: Swatinem/rust-cache@v2
74+
with:
75+
shared-key: "flaky-check"
76+
77+
- name: Cache dashd and test data
78+
uses: actions/cache@v4
79+
with:
80+
path: .rust-dashcore-test
81+
key: rust-dashcore-test-${{ env.DASHVERSION }}-${{ env.TEST_DATA_VERSION }}
82+
83+
- name: Setup dashd
84+
env:
85+
CACHE_DIR: ${{ github.workspace }}/.rust-dashcore-test
86+
run: |
87+
chmod +x ./contrib/setup-dashd.sh
88+
source ./contrib/setup-dashd.sh
89+
echo "DASHD_PATH=$DASHD_PATH" >> "$GITHUB_ENV"
90+
echo "DASHD_DATADIR=$DASHD_DATADIR" >> "$GITHUB_ENV"
91+
92+
- name: Run test_sync_with_peer_disconnection
93+
run: cargo test -p dash-spv --test dashd_sync test_sync_with_peer_disconnection -- --exact

0 commit comments

Comments
 (0)