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 Upgrade Part 2 - Human Readable IBC Denom #4649

Merged
merged 44 commits into from
Sep 18, 2023

Conversation

chatton
Copy link
Contributor

@chatton chatton commented Sep 13, 2023

Description

closes: #4216

This PR adds a helper fn which asserts the human readable denom is present


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 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.

chatton and others added 28 commits September 5, 2023 16:25
@colin-axner colin-axner added the v8 label Sep 13, 2023
@chatton chatton mentioned this pull request Sep 14, 2023
9 tasks
@@ -103,6 +103,10 @@ func (s *TransferTestSuite) TestMsgTransfer_Succeeds_Nonincentivized() {

expected := testvalues.IBCTransferAmount
s.Require().Equal(expected, actualBalance.Int64())

if testvalues.HumanReadableDenomFeatureReleases.IsSupported(chainBVersion) {
s.AssertHumanReadableDenom(ctx, chainB, chainADenom, channelA)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I put together both assertions (check metadata is stored, check that balance returns the human readable denom). I hope that's ok, @chatton.

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.

LGTM!

@@ -108,3 +108,8 @@ var LocalhostClientFeatureReleases = semverutil.FeatureReleases{
"v7.1",
},
}

// HumanReadableDenomFeatureReleases represents the releases the human readable denom feature was released in.
var HumanReadableDenomFeatureReleases = semverutil.FeatureReleases{
Copy link
Member

Choose a reason for hiding this comment

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

could also call this DenomMetadataFeatureReleases might be the tiniest bit less wordy, but whatever, happy with this too!

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'll maybe do the rename in #4660 to avoid needing to do a full re-run of the upgrades here!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nvm the upgrade test failed anyway :D

@chatton
Copy link
Contributor Author

chatton commented Sep 14, 2023

@damiannolan, I accidentally reverted a change I made previously. I updated the test to upgrade chain B (so we can test for the denom on chain B based on how we did the ibc transfer)

@@ -394,3 +383,30 @@ func (s *E2ETestSuite) QueryGranterGrants(ctx context.Context, chain *cosmos.Cos

return grants.Grants, nil
}

// QueryBalances returns all the balances on the given chain for the provided address.
func (s *E2ETestSuite) QueryAllBalances(ctx context.Context, chain ibc.Chain, address string, resolveDenom bool) (sdk.Coins, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I moved this down here to keep both usages of the bank query client together.

@@ -48,11 +48,6 @@ func SolomachineClientID(id int) string {
return fmt.Sprintf("06-solomachine-%d", id)
}

// TokenMetadataFeatureReleases represents the releases the token metadata was released in.
var TokenMetadataFeatureReleases = semverutil.FeatureReleases{
Copy link
Contributor

Choose a reason for hiding this comment

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

Deleted this and used the one @chatton added.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoops I missed this and deleted the one I added and use the one you used 😄

Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

Thank you, @chatton!

@@ -71,7 +71,7 @@ jobs:
chain-binary: simd
chain-a-tag: v7.0.0
chain-b-tag: v7.0.0
chain-upgrade-tag: pr-4591 # TODO: update this to a real tag once v8 is released
chain-upgrade-tag: main # TODO: update this to a real tag once v8 is released
Copy link
Contributor

Choose a reason for hiding this comment

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

I opened #4674.

@chatton chatton merged commit 4fcb399 into main Sep 18, 2023
77 of 79 checks passed
@chatton chatton deleted the cian/issue#4645-v7-to-v8-upgrade-test-part-2 branch September 18, 2023 09:23
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.

Add v7 to v8 e2e upgrade test
5 participants