Skip to content
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(upgrades): crossing hello test #5535

Merged

Conversation

crodriguezvega
Copy link
Contributor

@crodriguezvega crodriguezvega commented Jan 8, 2024

Description

closes: #5393

Commit Message / Changelog Entry

type: commit message

see the guidelines for commit messages. (view raw markdown for examples)


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.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@crodriguezvega crodriguezvega added channel-upgradability Channel upgradability feature e2e labels Jan 8, 2024
@crodriguezvega crodriguezvega marked this pull request as ready for review January 30, 2024 07:30
@crodriguezvega crodriguezvega marked this pull request as draft January 30, 2024 08:05
@crodriguezvega crodriguezvega marked this pull request as ready for review January 30, 2024 16:00
Comment on lines +264 to +267
t.Run("start relayer", func(t *testing.T) {
s.StartRelayer(relayer)
})

Copy link
Contributor

Choose a reason for hiding this comment

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

should this be after initializing upgrades on each end? Wondering if the relayer will pickup the first upgrade attempt and try on the counterparty before the counterparty submits its upgrade attempt

Copy link
Member

Choose a reason for hiding this comment

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

that makes sense to me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will leave it for now like this (just want to finally merge this PR), but I will look if it makes any difference starting the relayer afterwards.

s.Require().Equal(true, feeEnabled)
})

t.Run("verify channel A upgraded and is fee enabled", func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
t.Run("verify channel A upgraded and is fee enabled", func(t *testing.T) {
t.Run("verify channel B upgraded and is fee enabled", func(t *testing.T) {

@colin-axner colin-axner added the priority PRs that need prompt reviews label Jan 30, 2024
Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Nice one @crodriguezvega 🙏🏻

})

t.Run("execute gov proposals to initiate channel upgrade on chain A and chain B", func(t *testing.T) {
var wg sync.WaitGroup
Copy link
Member

Choose a reason for hiding this comment

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

Love me a WaitGroup <3

Comment on lines +264 to +267
t.Run("start relayer", func(t *testing.T) {
s.StartRelayer(relayer)
})

Copy link
Member

Choose a reason for hiding this comment

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

that makes sense to me

@crodriguezvega crodriguezvega merged commit a0cf456 into main Jan 30, 2024
15 of 17 checks passed
@crodriguezvega crodriguezvega deleted the carlos/5393-successful-test-with-crossing-hello-scenario branch January 30, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
channel-upgradability Channel upgradability feature e2e priority PRs that need prompt reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Successful test with crossing hello scenario
3 participants