Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Upgrade Hander & Chain Upgrade E2E Test #170

Merged
merged 7 commits into from
Jan 19, 2024

Conversation

jim380
Copy link
Contributor

@jim380 jim380 commented Jan 16, 2024

Overview

This PR attempts to achieve the followings:

  • Add upgrade handler for in-place upgrades
  • Add chain upgrade test
  • More

⚠️ Before proceeding, make sure you change SedaExponent to 6 in app/params/config.go. This is because in interchaintest v8.0.0 the default only has hardcoded values now which were tailored to e6. ⚠️

Testing

# check out the commit you are upgrading from
$ docker build --build-arg GITHUB_TOKEN=<> -t sedaprotocol/seda-chaind-e2e:old -f dockerfiles/Dockerfile.e2e . --no-cache
# check out the commit you are upgrading to
$ docker build --build-arg GITHUB_TOKEN=<> -t sedaprotocol/seda-chaind-e2e:new -f dockerfiles/Dockerfile.e2e . --no-cache
$ go test -timeout 10m -v -run TestChainUpgrade ./interchaintest

You should see the following:
image

=== RUN   TestChainUpgrade
=== PAUSE TestChainUpgrade
=== CONT  TestChainUpgrade
    chain_upgrade_test.go:52: seda new sedaprotocol/seda-chaind-e2e v1
    logger.go:130: 2024-01-18T21:00:22.347-0800	INFO	Using embedded configured chains
    logger.go:130: 2024-01-18T21:00:25.714-0800	ERROR	Failed to pull image	{"error": "Error response from daemon: pull access denied for sedaprotocol/seda-chaind-e2e, repository does not exist or may require 'docker login': denied: requested access to the resource is denied", "repository": "sedaprotocol/seda-chaind-e2e", "tag": "old"}
    logger.go:130: 2024-01-18T21:00:26.341-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys add faucet --coin-type 118 --keyring-backend test --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-cztpsy", "container": "TestChainUpgrade-cztpsy"}
    logger.go:130: 2024-01-18T21:00:26.686-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys show --address faucet --home /var/cosmos-chain/seda --keyring-backend test", "hostname": "TestChainUpgrade-uenkfh", "container": "TestChainUpgrade-uenkfh"}
    logger.go:130: 2024-01-18T21:00:27.052-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind init seda-local-1-val-2-TestChainUpgrade --chain-id seda-local-1 --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-jiroel", "container": "TestChainUpgrade-jiroel"}
    logger.go:130: 2024-01-18T21:00:27.052-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind init seda-local-1-val-1-TestChainUpgrade --chain-id seda-local-1 --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-dshxih", "container": "TestChainUpgrade-dshxih"}
    logger.go:130: 2024-01-18T21:00:27.052-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind init seda-local-1-val-3-TestChainUpgrade --chain-id seda-local-1 --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-qptonb", "container": "TestChainUpgrade-qptonb"}
    logger.go:130: 2024-01-18T21:00:27.052-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind init seda-local-1-val-0-TestChainUpgrade --chain-id seda-local-1 --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-kaevof", "container": "TestChainUpgrade-kaevof"}
    logger.go:130: 2024-01-18T21:00:28.628-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys add validator --coin-type 118 --keyring-backend test --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-ytogpm", "container": "TestChainUpgrade-ytogpm"}
    logger.go:130: 2024-01-18T21:00:28.637-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys add validator --coin-type 118 --keyring-backend test --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-iozard", "container": "TestChainUpgrade-iozard"}
    logger.go:130: 2024-01-18T21:00:28.854-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys add validator --coin-type 118 --keyring-backend test --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-cwudfv", "container": "TestChainUpgrade-cwudfv"}
    logger.go:130: 2024-01-18T21:00:29.075-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys add validator --coin-type 118 --keyring-backend test --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-tskwjd", "container": "TestChainUpgrade-tskwjd"}
    logger.go:130: 2024-01-18T21:00:29.237-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys show --address validator --home /var/cosmos-chain/seda --keyring-backend test", "hostname": "TestChainUpgrade-aykank", "container": "TestChainUpgrade-aykank"}
    logger.go:130: 2024-01-18T21:00:29.272-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys show --address validator --home /var/cosmos-chain/seda --keyring-backend test", "hostname": "TestChainUpgrade-nvxubm", "container": "TestChainUpgrade-nvxubm"}
    logger.go:130: 2024-01-18T21:00:29.333-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys show --address validator --home /var/cosmos-chain/seda --keyring-backend test", "hostname": "TestChainUpgrade-bcqcgk", "container": "TestChainUpgrade-bcqcgk"}
    logger.go:130: 2024-01-18T21:00:29.602-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys show --address validator --home /var/cosmos-chain/seda --keyring-backend test", "hostname": "TestChainUpgrade-rzgqkj", "container": "TestChainUpgrade-rzgqkj"}
    logger.go:130: 2024-01-18T21:00:29.665-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-ksrqci", "container": "TestChainUpgrade-ksrqci"}
    logger.go:130: 2024-01-18T21:00:29.879-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-soxrud", "container": "TestChainUpgrade-soxrud"}
    logger.go:130: 2024-01-18T21:00:29.983-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-xbslqh", "container": "TestChainUpgrade-xbslqh"}
    logger.go:130: 2024-01-18T21:00:30.177-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind add-genesis-account seda1z3snm3t4phx5c4hzgqftjyflpcsun9tylfqva2 10000000000000aseda --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-mnmzff", "container": "TestChainUpgrade-mnmzff"}
    logger.go:130: 2024-01-18T21:00:30.196-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-fwovaj", "container": "TestChainUpgrade-fwovaj"}
    logger.go:130: 2024-01-18T21:00:30.477-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind add-genesis-account seda1993xcphs8c8eqrs484qc6ap8za94hcjwr2p04d 10000000000000aseda --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-spbbrf", "container": "TestChainUpgrade-spbbrf"}
    logger.go:130: 2024-01-18T21:00:30.528-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind add-genesis-account seda1cf32pyhvt9e0expm4dsv4l0h3jq2y6tkze46ef 10000000000000aseda --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-darvbv", "container": "TestChainUpgrade-darvbv"}
    logger.go:130: 2024-01-18T21:00:30.787-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-farrnc", "container": "TestChainUpgrade-farrnc"}
    logger.go:130: 2024-01-18T21:00:30.945-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind add-genesis-account seda1thjzdsy6yn966lpq36tz7rw53ya5lcejcud6zw 10000000000000aseda --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-zcfvxa", "container": "TestChainUpgrade-zcfvxa"}
    logger.go:130: 2024-01-18T21:00:31.121-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-pvdcfn", "container": "TestChainUpgrade-pvdcfn"}
    logger.go:130: 2024-01-18T21:00:31.146-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-wxfdoy", "container": "TestChainUpgrade-wxfdoy"}
    logger.go:130: 2024-01-18T21:00:31.309-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind gentx validator 5000000000000aseda --keyring-backend test --chain-id seda-local-1 --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-ecnesn", "container": "TestChainUpgrade-ecnesn"}
    logger.go:130: 2024-01-18T21:00:31.574-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind gentx validator 5000000000000aseda --keyring-backend test --chain-id seda-local-1 --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-uogpoc", "container": "TestChainUpgrade-uogpoc"}
    logger.go:130: 2024-01-18T21:00:31.616-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-qjoqmw", "container": "TestChainUpgrade-qjoqmw"}
    logger.go:130: 2024-01-18T21:00:31.634-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind gentx validator 5000000000000aseda --keyring-backend test --chain-id seda-local-1 --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-vslxjh", "container": "TestChainUpgrade-vslxjh"}
    logger.go:130: 2024-01-18T21:00:32.169-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind gentx validator 5000000000000aseda --keyring-backend test --chain-id seda-local-1 --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-wbrxtd", "container": "TestChainUpgrade-wbrxtd"}
    logger.go:130: 2024-01-18T21:00:32.551-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys show --address validator --home /var/cosmos-chain/seda --keyring-backend test", "hostname": "TestChainUpgrade-tngmxf", "container": "TestChainUpgrade-tngmxf"}
    logger.go:130: 2024-01-18T21:00:32.889-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-bxvqie", "container": "TestChainUpgrade-bxvqie"}
    logger.go:130: 2024-01-18T21:00:33.232-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind add-genesis-account seda1thjzdsy6yn966lpq36tz7rw53ya5lcejcud6zw 10000000000000aseda --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-jbnyez", "container": "TestChainUpgrade-jbnyez"}
    logger.go:130: 2024-01-18T21:00:33.834-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys show --address validator --home /var/cosmos-chain/seda --keyring-backend test", "hostname": "TestChainUpgrade-xaoear", "container": "TestChainUpgrade-xaoear"}
    logger.go:130: 2024-01-18T21:00:34.182-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-hecvqx", "container": "TestChainUpgrade-hecvqx"}
    logger.go:130: 2024-01-18T21:00:34.538-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind add-genesis-account seda1z3snm3t4phx5c4hzgqftjyflpcsun9tylfqva2 10000000000000aseda --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-gmjxvq", "container": "TestChainUpgrade-gmjxvq"}
    logger.go:130: 2024-01-18T21:00:35.166-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys show --address validator --home /var/cosmos-chain/seda --keyring-backend test", "hostname": "TestChainUpgrade-nfzdsf", "container": "TestChainUpgrade-nfzdsf"}
    logger.go:130: 2024-01-18T21:00:35.518-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-vfpncw", "container": "TestChainUpgrade-vfpncw"}
    logger.go:130: 2024-01-18T21:00:35.853-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind add-genesis-account seda1cf32pyhvt9e0expm4dsv4l0h3jq2y6tkze46ef 10000000000000aseda --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-ntfyww", "container": "TestChainUpgrade-ntfyww"}
    logger.go:130: 2024-01-18T21:00:36.472-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-cwjcwk", "container": "TestChainUpgrade-cwjcwk"}
    logger.go:130: 2024-01-18T21:00:36.826-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind add-genesis-account seda1u6956g5h5wvzwsuryuwd3pt2t30f0q83lrfa0v 100000000000000aseda --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-skhetq", "container": "TestChainUpgrade-skhetq"}
    logger.go:130: 2024-01-18T21:00:37.174-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind genesis --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-xspdku", "container": "TestChainUpgrade-xspdku"}
    logger.go:130: 2024-01-18T21:00:37.516-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind collect-gentxs --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-cujngt", "container": "TestChainUpgrade-cujngt"}
    logger.go:130: 2024-01-18T21:00:38.815-0800	INFO	Genesis	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "hash": "5B57E4FBF1DCD29257AB93993FCAAF4E0D04A742F710AB46FF9479CD177F1973"}
    logger.go:130: 2024-01-18T21:00:38.843-0800	INFO	Genesis	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "hash": "5B57E4FBF1DCD29257AB93993FCAAF4E0D04A742F710AB46FF9479CD177F1973"}
    logger.go:130: 2024-01-18T21:00:38.870-0800	INFO	Genesis	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "hash": "5B57E4FBF1DCD29257AB93993FCAAF4E0D04A742F710AB46FF9479CD177F1973"}
    logger.go:130: 2024-01-18T21:00:38.894-0800	INFO	Genesis	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "hash": "5B57E4FBF1DCD29257AB93993FCAAF4E0D04A742F710AB46FF9479CD177F1973"}
    logger.go:130: 2024-01-18T21:00:38.894-0800	INFO	Will run command	{"image": "sedaprotocol/seda-chaind-e2e:old", "container": "seda-local-1-val-3-TestChainUpgrade", "command": "seda-chaind start --home /var/cosmos-chain/seda --x-crisis-skip-assert-invariants"}
    logger.go:130: 2024-01-18T21:00:38.894-0800	INFO	Will run command	{"image": "sedaprotocol/seda-chaind-e2e:old", "container": "seda-local-1-val-0-TestChainUpgrade", "command": "seda-chaind start --home /var/cosmos-chain/seda --x-crisis-skip-assert-invariants"}
    logger.go:130: 2024-01-18T21:00:38.895-0800	INFO	Will run command	{"image": "sedaprotocol/seda-chaind-e2e:old", "container": "seda-local-1-val-1-TestChainUpgrade", "command": "seda-chaind start --home /var/cosmos-chain/seda --x-crisis-skip-assert-invariants"}
    logger.go:130: 2024-01-18T21:00:38.895-0800	INFO	Will run command	{"image": "sedaprotocol/seda-chaind-e2e:old", "container": "seda-local-1-val-2-TestChainUpgrade", "command": "seda-chaind start --home /var/cosmos-chain/seda --x-crisis-skip-assert-invariants"}
    logger.go:130: 2024-01-18T21:00:38.956-0800	INFO	Peering	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "host_name": "seda-local-1-val-0-TestChainUpgrade", "peer": "bbb0709314547dbe52c36041fff1901242b4bd24@seda-local-1-val-0-TestChainUpgrade:26656", "container": "seda-local-1-val-0-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:38.986-0800	INFO	Peering	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "host_name": "seda-local-1-val-1-TestChainUpgrade", "peer": "7bebbb39a5410a062e7a8548625f95bb5a6ada72@seda-local-1-val-1-TestChainUpgrade:26656", "container": "seda-local-1-val-1-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:39.008-0800	INFO	Peering	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "host_name": "seda-local-1-val-2-TestChainUpgrade", "peer": "6c29b390fcb6aab10c7b24323d5e94910df46c3a@seda-local-1-val-2-TestChainUpgrade:26656", "container": "seda-local-1-val-2-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:39.033-0800	INFO	Peering	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "host_name": "seda-local-1-val-3-TestChainUpgrade", "peer": "f2f52f32361635140c93ce1439839532654a7462@seda-local-1-val-3-TestChainUpgrade:26656", "container": "seda-local-1-val-3-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:39.033-0800	INFO	Starting container	{"container": "seda-local-1-val-0-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:39.033-0800	INFO	Starting container	{"container": "seda-local-1-val-1-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:39.033-0800	INFO	Starting container	{"container": "seda-local-1-val-2-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:39.033-0800	INFO	Starting container	{"container": "seda-local-1-val-3-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:39.925-0800	INFO	Container started	{"container": "seda-local-1-val-1-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:40.006-0800	INFO	Container started	{"container": "seda-local-1-val-0-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:40.025-0800	INFO	Container started	{"container": "seda-local-1-val-3-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:40.063-0800	INFO	Container started	{"container": "seda-local-1-val-2-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:00:56.418-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys add TestChainUpgrade-seda-local-1-zpw --coin-type 118 --keyring-backend test --home /var/cosmos-chain/seda", "hostname": "TestChainUpgrade-niepwh", "container": "TestChainUpgrade-niepwh"}
    logger.go:130: 2024-01-18T21:00:56.792-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind keys show --address TestChainUpgrade-seda-local-1-zpw --home /var/cosmos-chain/seda --keyring-backend test", "hostname": "TestChainUpgrade-kkyioe", "container": "TestChainUpgrade-kkyioe"}
    logger.go:130: 2024-01-18T21:00:57.162-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind tx bank send faucet seda18rmv6dxeap4mm7c29mk8wd0029qsujtgj0npdu 10000000000aseda --gas-prices 0aseda --gas-adjustment 2 --from faucet --keyring-backend test --output json -y --chain-id seda-local-1 --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-0-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-fruama", "container": "TestChainUpgrade-fruama"}
    logger.go:130: 2024-01-18T21:01:01.279-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind tx gov submit-proposal /var/cosmos-chain/seda/proposal.json --gas auto --gas-prices 0aseda --gas-adjustment 2 --from TestChainUpgrade-seda-local-1-zpw --keyring-backend test --output json -y --chain-id seda-local-1 --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-0-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-pyysjn", "container": "TestChainUpgrade-pyysjn"}
    chain_upgrade_test.go:209: txProp {10 3C7AFD8862720391B7741E02BA32BB313FC8A5A71D2E962B4BD28EB8ED59386D 299278 500000000aseda 1 }
    logger.go:130: 2024-01-18T21:01:05.673-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind tx gov vote 1 yes --gas auto --gas-prices 0aseda --gas-adjustment 2 --from validator --keyring-backend test --output json -y --chain-id seda-local-1 --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-2-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-oaztlm", "container": "TestChainUpgrade-oaztlm"}
    logger.go:130: 2024-01-18T21:01:05.673-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind tx gov vote 1 yes --gas auto --gas-prices 0aseda --gas-adjustment 2 --from validator --keyring-backend test --output json -y --chain-id seda-local-1 --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-3-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-xxtbpz", "container": "TestChainUpgrade-xxtbpz"}
    logger.go:130: 2024-01-18T21:01:05.673-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind tx gov vote 1 yes --gas auto --gas-prices 0aseda --gas-adjustment 2 --from validator --keyring-backend test --output json -y --chain-id seda-local-1 --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-1-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-mxzxof", "container": "TestChainUpgrade-mxzxof"}
    logger.go:130: 2024-01-18T21:01:05.674-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:old", "test_name": "TestChainUpgrade", "command": "seda-chaind tx gov vote 1 yes --gas auto --gas-prices 0aseda --gas-adjustment 2 --from validator --keyring-backend test --output json -y --chain-id seda-local-1 --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-0-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-buznsk", "container": "TestChainUpgrade-buznsk"}
    chain_upgrade_test.go:118: stopping node(s)
    chain_upgrade_test.go:126: upgrading node(s)
    logger.go:130: 2024-01-18T21:01:26.045-0800	ERROR	Failed to pull image	{"error": "Error response from daemon: pull access denied for sedaprotocol/seda-chaind-e2e, repository does not exist or may require 'docker login': denied: requested access to the resource is denied", "repository": "sedaprotocol/seda-chaind-e2e", "tag": "new"}
    chain_upgrade_test.go:131: starting node(s)
    logger.go:130: 2024-01-18T21:01:26.047-0800	INFO	Will run command	{"image": "sedaprotocol/seda-chaind-e2e:new", "container": "seda-local-1-val-3-TestChainUpgrade", "command": "seda-chaind start --home /var/cosmos-chain/seda --x-crisis-skip-assert-invariants"}
    logger.go:130: 2024-01-18T21:01:26.049-0800	INFO	Will run command	{"image": "sedaprotocol/seda-chaind-e2e:new", "container": "seda-local-1-val-1-TestChainUpgrade", "command": "seda-chaind start --home /var/cosmos-chain/seda --x-crisis-skip-assert-invariants"}
    logger.go:130: 2024-01-18T21:01:26.050-0800	INFO	Will run command	{"image": "sedaprotocol/seda-chaind-e2e:new", "container": "seda-local-1-val-0-TestChainUpgrade", "command": "seda-chaind start --home /var/cosmos-chain/seda --x-crisis-skip-assert-invariants"}
    logger.go:130: 2024-01-18T21:01:26.050-0800	INFO	Will run command	{"image": "sedaprotocol/seda-chaind-e2e:new", "container": "seda-local-1-val-2-TestChainUpgrade", "command": "seda-chaind start --home /var/cosmos-chain/seda --x-crisis-skip-assert-invariants"}
    logger.go:130: 2024-01-18T21:01:26.347-0800	INFO	Container started	{"container": "seda-local-1-val-1-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:01:26.484-0800	INFO	Container started	{"container": "seda-local-1-val-2-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:01:26.573-0800	INFO	Container started	{"container": "seda-local-1-val-0-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:01:26.635-0800	INFO	Container started	{"container": "seda-local-1-val-3-TestChainUpgrade"}
    logger.go:130: 2024-01-18T21:01:54.737-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:new", "test_name": "TestChainUpgrade", "command": "seda-chaind tx wasm store /var/cosmos-chain/seda/cw_template.wasm --gas auto --gas-prices 0aseda --gas-adjustment 2 --from TestChainUpgrade-seda-local-1-zpw --keyring-backend test --output json -y --chain-id seda-local-1 --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-0-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-rjxgmf", "container": "TestChainUpgrade-rjxgmf"}
    logger.go:130: 2024-01-18T21:02:10.696-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:new", "test_name": "TestChainUpgrade", "command": "seda-chaind query wasm list-code --reverse --output json --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-0-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-inwpcj", "container": "TestChainUpgrade-inwpcj"}
    logger.go:130: 2024-01-18T21:02:11.037-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:new", "test_name": "TestChainUpgrade", "command": "seda-chaind tx wasm instantiate 1 {\"count\":0} --label wasm-contract --no-admin --gas-prices 0aseda --gas-adjustment 2 --from TestChainUpgrade-seda-local-1-zpw --keyring-backend test --output json -y --chain-id seda-local-1 --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-0-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-uevfxc", "container": "TestChainUpgrade-uevfxc"}
    logger.go:130: 2024-01-18T21:02:15.313-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:new", "test_name": "TestChainUpgrade", "command": "seda-chaind query wasm list-contract-by-code 1 --output json --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-0-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-uomdcs", "container": "TestChainUpgrade-uomdcs"}
    logger.go:130: 2024-01-18T21:02:15.678-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:new", "test_name": "TestChainUpgrade", "command": "seda-chaind tx wasm execute seda14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snnh0yy {\"increment\":{}} --node http://seda-local-1-val-0-TestChainUpgrade:26657 --home /var/cosmos-chain/seda --chain-id seda-local-1 --from TestChainUpgrade-seda-local-1-zpw --gas 500000 --keyring-dir /var/cosmos-chain/seda --keyring-backend test -y --fees 10000aseda", "hostname": "TestChainUpgrade-jahrar", "container": "TestChainUpgrade-jahrar"}
    cosmwasm.go:96: code: 0
        codespace: ""
        data: ""
        events: []
        gas_used: "0"
        gas_wanted: "0"
        height: "0"
        info: ""
        logs: []
        raw_log: ""
        timestamp: ""
        tx: null
        txhash: E6C2C02D2E6B1ADADCF41796157C42BC593B8ADDF685E14524150978DE7D091C

    logger.go:130: 2024-01-18T21:02:19.924-0800	INFO	About to start container	{"chain_id": "seda-local-1", "test": "TestChainUpgrade", "image": "sedaprotocol/seda-chaind-e2e:new", "test_name": "TestChainUpgrade", "command": "seda-chaind query wasm contract-state smart seda14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snnh0yy {\"get_count\":{}} --output json --home /var/cosmos-chain/seda --node tcp://seda-local-1-val-0-TestChainUpgrade:26657", "hostname": "TestChainUpgrade-qekbch", "container": "TestChainUpgrade-qekbch"}
    setup.go:210: Pruned 4 volumes, reclaiming approximately 12.9 MB
    setup.go:242: Pruned unused networks: [interchaintest-cskejlde]
--- PASS: TestChainUpgrade (118.49s)
PASS
ok  	github.com/sedaprotocol/seda-chain/interchaintest	119.787s

@jim380 jim380 force-pushed the jay/inter-chain-tests-batch-3 branch from 62f2f71 to 869e6e1 Compare January 18, 2024 02:44
@jim380 jim380 changed the title [Interchaintest] Installment # 3 Add Upgrade Hander & Chain Upgrade E2E Test Jan 19, 2024
@jim380 jim380 requested a review from hacheigriega January 19, 2024 02:50
@jim380 jim380 marked this pull request as ready for review January 19, 2024 02:56
keepers := app.AppKeepers

// register all upgrade handlers
for _, upgrade := range Upgrades {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes more sense to just register the current upgrade handler.

@jim380 jim380 force-pushed the jay/inter-chain-tests-batch-3 branch from 536cafe to b555a95 Compare January 19, 2024 05:18
@jim380 jim380 merged commit b555a95 into main Jan 19, 2024
6 of 7 checks passed
@jim380 jim380 deleted the jay/inter-chain-tests-batch-3 branch January 19, 2024 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants