-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e: refactor importable workflow call to support chain upgrades (#3155)
- Loading branch information
1 parent
682ba55
commit 2933906
Showing
7 changed files
with
180 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,43 @@ | ||
name: Tests / E2E Upgrade | ||
on: workflow_dispatch | ||
on: | ||
workflow_dispatch: | ||
|
||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
upgrade-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- test: TestV4ToV5ChainUpgrade | ||
chain-image: ghcr.io/cosmos/ibc-go-simd | ||
chain-a-tag: v4.3.0 | ||
chain-b-tag: v4.3.0 | ||
chain-upgrade-tag: v5.1.0 | ||
- test: TestV5ToV6ChainUpgrade | ||
chain-image: ghcr.io/cosmos/ibc-go-icad | ||
chain-binary: icad | ||
chain-a-tag: v0.3.5 | ||
chain-b-tag: v0.3.5 | ||
chain-upgrade-tag: v0.4.1 | ||
- test: TestV6ToV7ChainUpgrade | ||
chain-image: ghcr.io/cosmos/ibc-go-simd | ||
chain-binary: simd | ||
chain-a-tag: v6.1.0 | ||
chain-b-tag: v6.1.0 | ||
chain-upgrade-tag: v7.0.0-rc0 # TODO: needs v7.0.0-rc1 when cut | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
- name: Run e2e upgrade test | ||
run: | | ||
cd e2e | ||
make e2e-test entrypoint=TestUpgradeTestSuite test=${{ matrix.test }} | ||
env: | ||
CHAIN_IMAGE: ${{ matrix.chain-image }} | ||
CHAIN_BINARY: ${{ matrix.chain-binary }} | ||
CHAIN_A_TAG: ${{ matrix.chain-a-tag }} | ||
CHAIN_B_TAG: ${{ matrix.chain-b-tag }} | ||
CHAIN_UPGRADE_TAG: ${{ matrix.chain-upgrade-tag }} | ||
upgrade-v5: | ||
uses: cosmos/ibc-go/.github/workflows/e2e-test-workflow-call.yml@main | ||
with: | ||
chain-image: ghcr.io/cosmos/ibc-go-simd | ||
chain-binary: simd | ||
chain-a-tag: v4.3.0 | ||
chain-b-tag: v4.3.0 | ||
chain-upgrade-tag: v5.1.0 | ||
upgrade-plan-name: "normal upgrade" | ||
test-entry-point: "TestUpgradeTestSuite" | ||
test: "TestIBCChainUpgrade" | ||
|
||
upgrade-v6: | ||
uses: cosmos/ibc-go/.github/workflows/e2e-test-workflow-call.yml@main | ||
with: | ||
chain-image: ghcr.io/cosmos/ibc-go-icad | ||
chain-binary: icad | ||
chain-a-tag: v0.3.5 | ||
chain-b-tag: v0.3.5 | ||
chain-upgrade-tag: v0.4.1 | ||
upgrade-plan-name: "ibc-go/v6" | ||
test-entry-point: "TestUpgradeTestSuite" | ||
test: "TestV5ToV6ChainUpgrade" | ||
|
||
upgrade-v7: | ||
uses: cosmos/ibc-go/.github/workflows/e2e-test-workflow-call.yml@main | ||
with: | ||
chain-image: ghcr.io/cosmos/ibc-go-simd | ||
chain-binary: simd | ||
chain-a-tag: v6.1.0 | ||
chain-b-tag: v6.1.0 | ||
chain-upgrade-tag: v7.0.0-rc0 # TODO: needs v7.0.0-rc1 when cut | ||
upgrade-plan-name: "v7" | ||
test-entry-point: "TestUpgradeTestSuite" | ||
test: "TestV6ToV7ChainUpgrade" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.