-
Notifications
You must be signed in to change notification settings - Fork 624
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 v7 to v8 e2e upgrade test #4591
Conversation
e2e/testsuite/tx.go
Outdated
@@ -137,10 +137,13 @@ If this is a compatibility test, ensure that the fields are being sanitized in t | |||
|
|||
// ExecuteGovProposalV1 submits a governance proposal using the provided user and message and uses all validators | |||
// to vote yes on the proposal. It ensures the proposal successfully passes. | |||
func (s *E2ETestSuite) ExecuteGovProposalV1(ctx context.Context, msg sdk.Msg, chain *cosmos.CosmosChain, user ibc.Wallet, proposalID uint64) { | |||
func (s *E2ETestSuite) ExecuteGovProposalV1(ctx context.Context, msg sdk.Msg, chain *cosmos.CosmosChain, user ibc.Wallet) { |
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.
small unrelated improvement to not need to manually track proposal count.
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.
Looks excellent so far! Will wait for bank metadata before dropping the green check 👍
…://github.com/cosmos/ibc-go into cian/issue#4216-add-v7-to-v8-e2e-upgrade-test
github.com/cometbft/cometbft v0.38.0-rc3 | ||
github.com/cosmos/cosmos-sdk v0.50.0-rc.0.0.20230911190209-e4033faa38ef | ||
github.com/cometbft/cometbft v0.38.0 | ||
github.com/cosmos/cosmos-sdk v0.50.0-rc.0.0.20230913040121-1c9c5ae64ea8 |
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.
updated to a newer commit which includes the migration fix.
TestV6ToV7ChainUpgrade seems to be failing for an unknown reason, I'll create a follow up issue to investigate. |
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.
Thank you @chatton!!! Leaving my approval. Happy to comment out the v6 -> v7 test if we want to tackle in a followup?
e2e/testsuite/tx.go
Outdated
proposalID := s.proposalIds[chain.Config().ChainID] | ||
s.proposalIds[chain.Config().ChainID]++ |
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.
Should we increment after the tx succeeds? It will be incremented even if submission fails, but then I guess the test should fail?
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.
good point, yes makes sense to do increment afterwards. In practice I think it will make no difference as the test will fail, but this would be a nice improvement!
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.
defer func() ?
I reckon its probably fine either as you say, test will likely be failing
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.
I thought I had already approved when it was draft!
Follow up review looks great! Excellent work @chatton, thank you! 🚀
e2e/testsuite/testsuite.go
Outdated
@@ -34,6 +34,8 @@ const ( | |||
type E2ETestSuite struct { | |||
testifysuite.Suite | |||
|
|||
// proposalIds keeps track of the active proposal ID for each chain. | |||
proposalIds map[string]uint64 |
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.
maybe the linter cries that this is not proposalIDs
? maybe I cry?
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.
oh I think you're right 😄
e2e/testsuite/tx.go
Outdated
proposalID := s.proposalIds[chain.Config().ChainID] | ||
s.proposalIds[chain.Config().ChainID]++ |
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.
defer func() ?
I reckon its probably fine either as you say, test will likely be failing
merged with v7 still failing, this will be fixed in a followup |
Description
ref: #4216
This PR made also makes a few small adjustments/improvements to the upgrade tests.
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.