-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
test(system): Correct legacy chain initializer #22433
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
@alpe your pull request is missing a changelog! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging this as this fixes the chain upgrade issue.
The other test does need to be fixed eventually
I try to run in my local but still get the error in . Any idea? 👀 systemtests git:(alex/v0.52.x/22196_fix) go test -mod=readonly -tags='system_test' -v ./... --run TestChainUpgrade --verbose
Work dir: /Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests
Setup chain: ./testnet
+++ /Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests/binaries/simd testnet init-files --chain-id=testing --output-dir=./testnet --validator-count=4 --keyring-backend=test --commit-timeout=900ms --single-host --minimum-gas-prices=0.000001stake
=== RUN TestChainUpgrade
Stop chain
upgrade_test.go:27: +++ legacy binary: /Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests/binaries/simd_v0.50
Setup chain: ./testnet
+++ /Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests/binaries/simd_v0.50 testnet init-files --chain-id=testing --output-dir=./testnet --v=4 --keyring-backend=test --minimum-gas-prices=0.000001stake
--- FAIL: TestChainUpgrade (0.00s)
panic: run `/Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests/binaries/simd_v0.50 testnet init-files --chain-id=testing --output-dir=./testnet --v=4 --keyring-backend=test --minimum-gas-prices=0.000001stake`: out: : fork/exec /Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests/binaries/simd_v0.50: exec format error [recovered]
panic: run `/Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests/binaries/simd_v0.50 testnet init-files --chain-id=testing --output-dir=./testnet --v=4 --keyring-backend=test --minimum-gas-prices=0.000001stake`: out: : fork/exec /Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests/binaries/simd_v0.50: exec format error
goroutine 23 [running]:
testing.tRunner.func1.2({0x101a70300, 0x1400075e300})
/opt/homebrew/Cellar/go/1.23.2/libexec/src/testing/testing.go:1632 +0x1bc
testing.tRunner.func1()
/opt/homebrew/Cellar/go/1.23.2/libexec/src/testing/testing.go:1635 +0x334
panic({0x101a70300?, 0x1400075e300?})
/opt/homebrew/Cellar/go/1.23.2/libexec/src/runtime/panic.go:785 +0x124
cosmossdk.io/tests/systemtests.ModifyConfigYamlInitializer.Initialize({{0x140003b0dc0, 0x50}, {0x140000560c4, 0x3c}, {0x1015b41b8, 0x7}, {0x1015b748d, 0x9}, 0x4, {0x14000806050, ...}, ...})
/Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests/testnet_init.go:149 +0x774
cosmossdk.io/tests/systemtests.(*SystemUnderTest).SetupChain(0x1400080c120)
/Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests/system.go:125 +0xcc
cosmossdk.io/tests/systemtests.TestChainUpgrade(0x14000641d40)
/Users/ggwp/Documents/Decentrio/cosmos-sdk/tests/systemtests/upgrade_test.go:32 +0x2d8
testing.tRunner(0x14000641d40, 0x101ce2058)
/opt/homebrew/Cellar/go/1.23.2/libexec/src/testing/testing.go:1690 +0xe4
created by testing.(*T).Run in goroutine 1
/opt/homebrew/Cellar/go/1.23.2/libexec/src/testing/testing.go:1743 +0x314
FAIL cosmossdk.io/tests/systemtests 0.642s
FAIL |
it's my bad, i thought it was fixed, but the test failed before this and not after (my search failed me), so this is indeed not resolved either (cc @alpe) |
yeah seem like |
@hieuvubk the v0.50 binary is pulled from the docker image and works with Linux only. I removed the Go build tag unfortunately. That was wrong. |
Description
Fixes the testnet setup for chain upgrade system test
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
Please see Pull Request Reviewer section in the contributing guide for more information on how to review a pull request.
I have...