-
Notifications
You must be signed in to change notification settings - Fork 609
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: verify disabled ics27 host params #6067
e2e: verify disabled ics27 host params #6067
Conversation
WalkthroughThe update to Changes
Assessment against linked issues
Related issues
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 (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yml
Files selected for processing (1)
- e2e/tests/interchain_accounts/params_test.go (5 hunks)
Additional comments: 7
e2e/tests/interchain_accounts/params_test.go (7)
- 8-8: Consider using a more precise time package if only specific functionalities of the
time
package are used, to avoid importing unnecessary functionalities.- 5-22: > 📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [10-29]
The addition of new imports seems appropriate for the extended test functionalities, such as handling mathematical operations, bank types, and IBC-specific types. Ensure that all imported packages are used within the test to avoid unnecessary dependencies.
- 121-122: The setup of relayers and channels between two chains is crucial for the test. Ensure that error handling is properly implemented for the
SetupChainsRelayerAndChannel
function to gracefully handle any setup failures.- 127-131: Creating users on both Chain A and Chain B is a good practice for testing interchain account functionality. However, ensure that the token amounts used for testing (
testvalues.StartingTokenAmount
) are consistent and realistic to avoid any misleading test outcomes.- 140-168: The test block "ensure ica packets are flowing before disabling the host" is well-structured and covers important aspects such as registering an interchain account and verifying its existence. However, consider adding more detailed comments explaining the rationale behind each sub-test for better readability and maintainability.
- 137-172: > 📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [169-180]
Disabling the host is a critical part of this test. The conditional logic based on
chainBVersion
and the use of governance proposals to change parameters are correctly implemented. Ensure that the governance proposal execution (ExecuteAndPassGovV1Proposal
andExecuteAndPassGovV1Beta1Proposal
) includes proper error handling and validation of the proposal's success.
- 196-266: The test block "ensure that ica packets are not flowing" is comprehensive, covering the funding of the interchain account, attempting a transaction, and verifying no tokens were transferred. Additionally, the verification of the acknowledgement error is a good practice. Consider adding a cleanup step to revert any changes made during the test, such as disabling the host, to ensure the test environment is clean for subsequent tests.
f95aabc
to
77054a4
Compare
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.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yml
Files selected for processing (1)
- e2e/tests/interchain_accounts/params_test.go (5 hunks)
Files skipped from review as they are similar to previous changes (1)
- e2e/tests/interchain_accounts/params_test.go
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 fabulous to me. Thank you, @gjermundgaraba!
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.
lgtm! squeaky clean, left just a tiny nit. Thanks @gjermundgaraba!
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 great thank you @gjermundgaraba 🥇 !
Description
Extends an existing e2e test to not just check that the host param shows as disabled, but also that the interchain account packets are stopped as expected.
closes: #2118
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/
). (Comment: N/A)godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.Summary by CodeRabbit