-
Notifications
You must be signed in to change notification settings - Fork 646
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simapp and upgrade configuration for e2e v7 upgrade (#3136)
* Register required types for upgrade E2E tests * removed temporary function update * registering additional types and specifying rc0 tag in upgrade test * updated workflow tag * bump version to 6.1.0 * adding keytables to params subspaces in app.go * replace with pr docker build for testing * adding more wait for blocks * temporarily add new grpc services * removing last addition * configure store loaders for upgrade * adding consensus params migration from baseapp * testing without baseapp param migration * readd baseapp params migration * commiting updates, autocli and reflection svc * fix in run e2e script * adding crisis storekey to store upgrades * removing additional wait for blocks --------- Co-authored-by: Cian Hatton <[email protected]> (cherry picked from commit 80f162c) # Conflicts: # .github/workflows/e2e-upgrade.yaml # e2e/scripts/run-e2e.sh
- Loading branch information
1 parent
029cb21
commit 0930d06
Showing
4 changed files
with
116 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Tests / E2E Upgrade | ||
on: workflow_dispatch | ||
|
||
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 }} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
ENTRY_POINT="${1}" | ||
TEST="${2}" | ||
|
||
export CHAIN_A_TAG="${CHAIN_A_TAG:-latest}" | ||
export CHAIN_IMAGE="${CHAIN_IMAGE:-ibc-go-simd}" | ||
export CHAIN_BINARY="${CHAIN_BINARY:-simd}" | ||
|
||
# In CI, the docker images will be built separately. | ||
# context for building the image is one directory up. | ||
if [ "${CI:-}" != "true" ] | ||
then | ||
(cd ..; docker build . -t "${CHAIN_IMAGE}:${CHAIN_A_TAG}" --build-arg="IBC_GO_VERSION=${CHAIN_A_TAG}") | ||
fi | ||
|
||
go test -v ./tests/... --run ${ENTRY_POINT} -testify.m ^${TEST}$ |
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