From 10f7bf8929967dccf9348794b91905c79609a9c1 Mon Sep 17 00:00:00 2001 From: Mingwei Tian Date: Wed, 4 Sep 2024 23:09:06 -0700 Subject: [PATCH] [CI] do not ignore failures from Split Cluster Check in PRs --- ...t-cluster.yml => split-cluster-bisect.yml} | 3 +- .github/workflows/split-cluster-pr.yml | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) rename .github/workflows/{split-cluster.yml => split-cluster-bisect.yml} (98%) create mode 100644 .github/workflows/split-cluster-pr.yml diff --git a/.github/workflows/split-cluster.yml b/.github/workflows/split-cluster-bisect.yml similarity index 98% rename from .github/workflows/split-cluster.yml rename to .github/workflows/split-cluster-bisect.yml index 98ebc67db02e0..c06fbefbef98a 100644 --- a/.github/workflows/split-cluster.yml +++ b/.github/workflows/split-cluster-bisect.yml @@ -1,6 +1,5 @@ name: Split Cluster Check -on: - pull_request: +on: push: branches: - main diff --git a/.github/workflows/split-cluster-pr.yml b/.github/workflows/split-cluster-pr.yml new file mode 100644 index 0000000000000..d9dc8a99cb3ee --- /dev/null +++ b/.github/workflows/split-cluster-pr.yml @@ -0,0 +1,29 @@ +name: Split Cluster Check +on: + pull_request: +jobs: + validate-mainnet: + runs-on: ubuntu-ghcloud + steps: + - name: checkout code repository + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + with: + fetch-depth: 0 + - name: Run split cluster check script + id: mn-split-cluster-check + run: | + SUI_PROTOCOL_CONFIG_CHAIN_OVERRIDE=mainnet \ + scripts/compatibility/split-cluster-check.sh origin/mainnet ${{ github.sha }} + + validate-testnet: + runs-on: ubuntu-ghcloud + steps: + - name: checkout code repository + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + with: + fetch-depth: 0 + - name: Run split cluster check script + id: tn-split-cluster-check + run: | + SUI_PROTOCOL_CONFIG_CHAIN_OVERRIDE=testnet \ + scripts/compatibility/split-cluster-check.sh origin/testnet ${{ github.sha }}