-
Notifications
You must be signed in to change notification settings - Fork 11.2k
54 lines (53 loc) · 2.02 KB
/
split-cluster.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: Split Cluster Check
on:
pull_request:
push:
branches:
- main
jobs:
validate-mainnet:
runs-on: ubuntu-ghcloud
steps:
- name: checkout code repository
uses: actions/checkout@7dd9e2a3dc350cf687eb1b2a4fadfee8c8e49675 # pin@v3
with:
fetch-depth: 0
- name: Run split cluster check script
id: mn-split-cluster-check
continue-on-error: true # if failure, continue to bisect
run: |
SUI_PROTOCOL_CONFIG_CHAIN_OVERRIDE=mainnet \
scripts/compatibility/split-cluster-check.sh origin/mainnet ${{ github.sha }}
- name: Bisect
if: steps.mn-split-cluster-check.outcome == 'failure' && github.event_name == 'push'
run: |
git bisect start ${{ github.event.pull_request.head.sha }} origin/mainnet
SUI_PROTOCOL_CONFIG_CHAIN_OVERRIDE=mainnet \
git bisect run scripts/split-cluster-check.sh origin/mainnet ${{ github.sha }}
git bisect reset
- name: Mark Failures
if: failure()
run: exit 1
validate-testnet:
runs-on: ubuntu-ghcloud
steps:
- name: checkout code repository
uses: actions/checkout@7dd9e2a3dc350cf687eb1b2a4fadfee8c8e49675 # pin@v3
with:
fetch-depth: 0
- name: Run split cluster check script
id: tn-split-cluster-check
continue-on-error: true # if failure, continue to bisect
run: |
SUI_PROTOCOL_CONFIG_CHAIN_OVERRIDE=testnet \
scripts/compatibility/split-cluster-check.sh origin/testnet ${{ github.sha }}
- name: Bisect
if: steps.tn-split-cluster-check.outcome == 'failure' && github.event_name == 'push'
run: |
git bisect start ${{ github.event.pull_request.head.sha }} origin/testnet
SUI_PROTOCOL_CONFIG_CHAIN_OVERRIDE=testnet \
git bisect run scripts/split-cluster-check.sh origin/testnet ${{ github.sha }}
git bisect reset
- name: Mark Failures
if: failure()
run: exit 1