-
Notifications
You must be signed in to change notification settings - Fork 119
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 handler for v5.1.0 #1836
Add upgrade handler for v5.1.0 #1836
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@@ -0,0 +1,187 @@ | |||
//go:build all || container_test |
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.
Nothing in state to test after the upgrade, just an empty test to run the upgrade.
// Add test for your upgrade handler logic below | ||
} | ||
|
||
func placeOrders(node *containertest.Node, t *testing.T) { |
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.
Copied from previous upgrade test to sanity check network is running.
CarlDaveETHQuantums = 4_000_000 | ||
) | ||
|
||
func TestStateUpgrade(t *testing.T) { |
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.
For my understanding, why do we need to delete this?
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.
It runs using the same container test setup I think, and will break since we're setting it up for a 5.0.5 to 5.1.0 upgrade and not a 4.0.0 to 5.0.0 upgrade.
For documentation purpose, should we frontport the v5.1.0 upgrade handler to |
We can front-port it, I'll set that up afterwards. |
@Mergifyio backport main |
✅ Backports have been created
|
(cherry picked from commit 7aa0952) # Conflicts: # protocol/app/upgrades.go # protocol/testing/containertest/containertest.sh # protocol/testing/containertest/preupgrade_genesis.json # protocol/testing/containertest/testnet.go
(cherry picked from commit 7aa0952) # Conflicts: # protocol/app/upgrades.go # protocol/testing/containertest/containertest.sh # protocol/testing/containertest/preupgrade_genesis.json # protocol/testing/containertest/testnet.go
Changelist
Add upgrade handler for v5.1.0.
Test Plan
Updated container test, also tested upgrading from v5.0.5 in staging.
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.