-
Notifications
You must be signed in to change notification settings - Fork 619
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
e2e: adding ibcwasm e2e upgrade test #5333
Conversation
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 thank you thank you @damiannolan!! 🙏
timeoutCtx, timeoutCtxCancel = context.WithTimeout(ctx, time.Minute*2) | ||
defer timeoutCtxCancel() |
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'm curious, there's now two defers in this function. Does this reset the context timeout?
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 question! I copied this from the other chain upgrade test file.
As far as I know defer
in go operates like the statement following defer
is wrapped inside a function.
It can be pretty weird at times. I'm kind of curious now as to see what exactly happens here too. I might play around with some code to test things out.
Heads up - the job on this PR https://github.com/cosmos/ibc-go/actions/runs/7130649117/job/19417804360?pr=5333 running the chain upgrade test fails because the automated workflow doesn't provide the chain upgrade tag and plan name. When this PR is merged, I can rerun the E2E Upgrade workflow which should run all upgrade e2e tests. I've tested this locally with success:
EDIT: I think I need to exclude this test from automated workflows |
@@ -63,4 +63,4 @@ jobs: | |||
chain-b-tag: '${{ needs.determine-image-tag.outputs.simd-tag }}' | |||
chain-binary: 'simd' | |||
# on regular PRs we won't run upgrade tests. | |||
test-exclusions: 'TestUpgradeTestSuite,TestGrandpaTestSuite' | |||
test-exclusions: 'TestUpgradeTestSuite,TestGrandpaTestSuite,TestIBCWasmChainUpgrade' |
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.
almost forgot about you :)
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.
ah but e2e setup magic has a similar easily forgettable trick up its sleeve for forks:
ibc-go/.github/workflows/e2e-fork.yml
Line 27 in 87e9d95
TEST_EXCLUSIONS: 'TestUpgradeTestSuite,TestGrandpaTestSuite' |
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.
nice catch!
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.
amazing! 💪
Description
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.