Skip to content

Conversation

aljo242
Copy link
Contributor

@aljo242 aljo242 commented Mar 28, 2025

Closes 24168

@github-actions github-actions bot removed the C:CLI label Mar 28, 2025
@aljo242 aljo242 changed the title test: system test for upgrading feat: example upgrade handler and systems test Mar 28, 2025
Comment on lines 47 to 52

modifications := [][]string{
{"genesis", "add-genesis-account", v50CLI.AddKey("foo"), "10000000000stake"},
{"genesis", "add-genesis-account", v50CLI.AddKey("bar"), "10000000000stake"},
{"genesis", "add-genesis-account", v50CLI.AddKey("baz"), "10000000000stake"},
}
Copy link
Contributor

Choose a reason for hiding this comment

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

lets add a comment here:

"typically, SystemUnderTest will create a node with 4 validators. In the legacy setup, we create run a single validator network. This means we need to add 3 more accounts in order to make further account additions map to the same account number in state."

Comment on lines +114 to +122

t.Log("waiting for upgrade info")
systest.Sut.AwaitUpgradeInfo(t)
systest.Sut.StopChain()

t.Log("Upgrade height was reached. Upgrading chain")
systest.Sut.SetExecBinary(currentBranchBinary)
systest.Sut.SetTestnetInitializer(currentInitializer)
systest.Sut.StartChain(t)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we assert that the correct height was reached? and that the new chain starts at upgradeHeight + 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added assertion assert block height

@technicallyty
Copy link
Contributor

i think test is actually the correct PR prefix here

@aljo242 aljo242 changed the title feat: example upgrade handler and systems test test: example upgrade handler and systems test Mar 28, 2025
@aljo242 aljo242 enabled auto-merge March 28, 2025 21:08
@aljo242 aljo242 added this pull request to the merge queue Mar 29, 2025
Merged via the queue into release/v0.53.x with commit 056bcd7 Mar 29, 2025
46 checks passed
@aljo242 aljo242 deleted the upgrade-test branch March 29, 2025 00:51
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