-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix(simapp,systemtests): fix chain upgrade #22669
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,16 +19,13 @@ import ( | |
) | ||
|
||
func TestChainUpgrade(t *testing.T) { | ||
// err> panic: failed to load latest version: failed to load store: initial version set to 22, but found earlier version 1 [cosmossdk.io/[email protected]/rootmulti/store.go:256] | ||
t.Skip("Skipped until any v052 artifact is available AND main branch handles the store upgrade proper") | ||
|
||
// Scenario: | ||
// start a legacy chain with some state | ||
// when a chain upgrade proposal is executed | ||
// then the chain upgrades successfully | ||
systest.Sut.StopChain() | ||
|
||
legacyBinary := FetchExecutable(t, "v0.52") | ||
legacyBinary := FetchExecutable(t, "0.52.0-beta.3") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification The choice of legacy binary version The current version choice appears incorrect for the following reasons:
Recommendation:
🔗 Analysis chainVerify the choice of legacy binary version The change to use a specific beta version Let me gather more information about the upgrade test implementation to better understand the version choice. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if the issue occurs with this specific version
gh issue view 22146 --json body | jq -r '.body' | grep -A 5 -B 5 "0.52"
# Check available versions
curl -s https://api.github.com/repos/cosmos/cosmos-sdk/releases | jq -r '.[].tag_name' | grep "^v0.52"
Length of output: 509 Script: #!/bin/bash
# Check the upgrade test implementation
cat tests/systemtests/upgrade_test.go
# Check if there are any other references to v0.52 in the codebase
rg "0\.52" --type go
Length of output: 5505 |
||
t.Logf("+++ legacy binary: %s\n", legacyBinary) | ||
currentBranchBinary := systest.Sut.ExecBinary() | ||
currentInitializer := systest.Sut.TestnetInitializer() | ||
|
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.
This change is not needed for the fix but it adds some very valuable debug output