forked from databendlabs/openraft
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.24 KB
/
chaos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: chaos-test
on: workflow_dispatch
jobs:
chaos_test:
name: unittest
runs-on: ubuntu-latest
strategy:
matrix:
include:
- toolchain: "nightly"
store_defensive: "on"
send_delay: "30"
- toolchain: "nightly"
store_defensive: "on"
send_delay: "0"
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Toolchain
uses: actions-rs/[email protected]
with:
toolchain: "${{ matrix.toolchain }}"
override: true
components: rustfmt, clippy
# TODO: unit test should be replaced
- name: Unit Tests, with and without defensive store
uses: actions-rs/cargo@v1
with:
command: test
env:
# Parallel tests block each other and result in timeout.
RUST_TEST_THREADS: 2
RUST_LOG: debug
RUST_BACKTRACE: full
OPENRAFT_STORE_DEFENSIVE: ${{ matrix.store_defensive }}
OPENRAFT_NETWORK_SEND_DELAY: ${{ matrix.send_delay }}
- name: Upload artifact
uses: actions/upload-artifact@v2
if: failure()
with:
name: ut
path: |
openraft/_log/