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: add compatibility tests for v7.5.x and v8.3.x #6228

Merged
merged 15 commits into from
May 10, 2024

Conversation

crodriguezvega
Copy link
Contributor

@crodriguezvega crodriguezvega commented Apr 26, 2024

Description

closes: #XXXX


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/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

Summary by CodeRabbit

  • New Features
    • Enhanced testing suites to include conditional checks and support for newer chain versions, improving compatibility and functionality across different environments.
  • Tests
    • Updated and added test cases in testing suites to verify new functionalities based on chain version.
  • Chores
    • Expanded workflow triggers in GitHub Actions to include additional release versions, ensuring comprehensive testing.

Copy link
Contributor

coderabbitai bot commented Apr 26, 2024

Walkthrough

Walkthrough

The updates aim to enhance the end-to-end testing framework for interchain accounts by introducing new features and version-specific checks. These changes include adding conditions and variables to test suites and adjusting workflow triggers to accommodate additional release versions.

Changes

File Path Change Summary
e2e/tests/interchain_accounts/query_test.go Added chainBVersion variable declaration, conditions, and new test blocks based on supported feature releases. Added new variable declarations for icaAck, queryTxResp, and balanceResp.
e2e/tests/interchain_accounts/params_test.go Modified logic in TestHostEnabledParam() to conditionally verify acknowledgement errors in the ack transaction based on transaction event query feature support for a specific chain version.

Possibly 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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Out of diff range and nitpick comments (3)
e2e/testsuite/sanitize/messages.go (3)

Line range hint 31-37: Consider adding error handling for the removeUnknownFields function instead of only relying on it in the switch statement within removeUnknownFields.


Line range hint 39-58: Replace panic with proper error handling to avoid crashing the entire application. Consider returning an error along with the sanitized message.

- panic(err)
+ return msg, err

Line range hint 39-58: Ensure that the SetMsgs method properly handles the case where no messages are sanitized, to avoid unnecessary operations.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review Details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits Files that changed from the base of the PR and between 9a28da0 and 354fe01.
Files selected for processing (2)
  • e2e/tests/interchain_accounts/params_test.go (1 hunks)
  • e2e/testvalues/values.go (1 hunks)
Files skipped from review due to trivial changes (1)
  • e2e/testvalues/values.go
Additional Context Used
Path-based Instructions (1)
e2e/tests/interchain_accounts/params_test.go (3)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern e2e/**/*: "Assess the integration and e2e test code assessing sufficient code coverage for the changes associated in the pull request"


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

Comment on lines 252 to 267
if testvalues.TransactionEventQueryFeatureReleases.IsSupported(chainBVersion) {
t.Run("verify acknowledgement error in ack transaction", func(t *testing.T) {
txSearchRes, err := s.QueryTxsByEvents(ctx, chainB, 1, 1, "message.action='/ibc.core.channel.v1.MsgRecvPacket'", "")
s.Require().NoError(err)
s.Require().Len(txSearchRes.Txs, 1)

errorMessage, isFound := s.ExtractValueFromEvents(
txSearchRes.Txs[0].Events,
coretypes.ErrorAttributeKeyPrefix+icatypes.EventTypePacket,
coretypes.ErrorAttributeKeyPrefix+icatypes.AttributeKeyAckError,
)

s.Require().True(isFound)
s.Require().Equal(errorMessage, hosttypes.ErrHostSubModuleDisabled.Error())
})
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Tip

Codebase Verification

The verification process focused on ensuring that the error message hosttypes.ErrHostSubModuleDisabled.Error() is used consistently across the codebase for similar scenarios. The search results from the executed script indicate that this specific error message is only referenced in the file e2e/tests/interchain_accounts/params_test.go.

Given this information, it appears that the error message is not widely used across different parts of the codebase. This could imply that either the error handling is unique to this specific test scenario, or there might be inconsistencies in how errors are handled in similar scenarios elsewhere in the codebase.

Final Response

The error message hosttypes.ErrHostSubModuleDisabled.Error() is only used in the params_test.go file within the context of the test for interchain accounts parameters. This might suggest that error handling is not consistent across the codebase, or that this particular error is unique to the scenario tested.

  • File: e2e/tests/interchain_accounts/params_test.go
  • Usage: Only in the context of verifying acknowledgement errors when the host submodule is disabled.

Given the limited usage of this error message, it is recommended to review whether this approach to error handling should be standardized or if other parts of the codebase should adopt a similar pattern for consistency.

Analysis chain

Conditional test block for verifying acknowledgement errors is correctly implemented.

Ensure that the error message checked (hosttypes.ErrHostSubModuleDisabled.Error()) aligns with the expected outcomes in all relevant scenarios.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the error message `hosttypes.ErrHostSubModuleDisabled.Error()` is consistently used across the codebase for similar scenarios.

# Test: Search for the usage of the error message. Expect: Consistent usage in similar scenarios.
rg --type go $'hosttypes.ErrHostSubModuleDisabled.Error()'

Length of output: 184

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits Files that changed from the base of the PR and between 354fe01 and c6c521d.
Files selected for processing (1)
  • .github/workflows/e2e-compatibility.yaml (3 hunks)
Additional comments not posted (3)
.github/workflows/e2e-compatibility.yaml (3)

11-13: Ensure that the addition of release/v7.5.x and release/v8.3.x aligns with the project's release management and versioning strategy.


47-49: The addition of release/v7.5.x and release/v8.3.x to the matrix for building release images should be cross-verified with the project's release and deployment plans.


220-255: The addition of new jobs for ica-queries-chain-a, ica-queries-chain-b, ica-unordered-channel-chain-a, and ica-unordered-channel-chain-b is a significant expansion of the test coverage. Ensure that these tests are properly integrated into the overall test plan and that they do not overlap or redundantly test features covered by other tests.

Verification successful

The script output indicates that the new test jobs (ica-queries-chain-a, ica-queries-chain-b, ica-unordered-channel-chain-a, and ica-unordered-channel-chain-b) are only mentioned in the .github/workflows/e2e-compatibility.yaml file. This suggests that there are no other existing tests in the workflows directory that overlap with these new jobs. Therefore, it appears that the addition of these jobs does not redundantly test features already covered by other tests in the same directory.

Based on this information, the review comment concerning the integration and uniqueness of the new test jobs in the overall test plan is verified as accurate. The new jobs seem to be unique additions to the test suite.

Final Response:

The new test jobs ica-queries-chain-a, ica-queries-chain-b, ica-unordered-channel-chain-a, and ica-unordered-channel-chain-b are unique to the .github/workflows/e2e-compatibility.yaml and do not overlap with any existing tests in the workflows directory. This confirms their proper integration into the overall test plan without redundancy.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the integration and uniqueness of the new test jobs in the overall test plan.

# Test: Check for potential overlaps with existing tests.
rg --type yaml 'ica-queries-chain-a|ica-queries-chain-b|ica-unordered-channel-chain-a|ica-unordered-channel-chain-b' .github/workflows/

Length of output: 757

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits Files that changed from the base of the PR and between c6c521d and 903ee9c.
Files selected for processing (1)
  • e2e/tests/interchain_accounts/query_test.go (2 hunks)
Additional Context Used
Path-based Instructions (1)
e2e/tests/interchain_accounts/query_test.go (3)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern e2e/**/*: "Assess the integration and e2e test code assessing sufficient code coverage for the changes associated in the pull request"


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

Additional comments not posted (3)
e2e/tests/interchain_accounts/query_test.go (3)

45-45: Ensure that the version retrieval is robust against potential configuration errors.


110-163: Review the conditional logic for handling version-specific features to ensure it is correctly scoped and does not affect other test scenarios unintentionally.

Verification successful

The verification script has confirmed that the conditional logic using TransactionEventQueryFeatureReleases.IsSupported is present in the query_test.go file and is scoped within a specific test scenario. The output shows that this conditional logic is used only once, suggesting that it is likely scoped correctly and does not affect other test scenarios unintentionally.

Given this information, it appears that the conditional logic for handling version-specific features is correctly implemented and isolated within its intended scope.

Conclusion:
The conditional logic for handling version-specific features in the query_test.go file is scoped correctly and does not affect other test scenarios unintentionally.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the conditional logic for version-specific features is correctly scoped.

# Test: Search for the usage of `TransactionEventQueryFeatureReleases.IsSupported` in test scenarios. Expect: Correct scoping and isolation of version-specific logic.
rg --type go 'TransactionEventQueryFeatureReleases.IsSupported' e2e/tests/interchain_accounts/query_test.go

Length of output: 189


140-161: Ensure that the new variables icaAck, queryTxResp, and balanceResp are used consistently and check for potential shadowing issues.

Verification successful

The output from the executed script shows that the variables icaAck, queryTxResp, and balanceResp are used consistently within their respective test blocks. There are no indications of variable shadowing or redeclarations in different scopes, which could lead to potential issues. Each variable is declared once and used within the same block for specific operations, which aligns with good coding practices in Go, especially in test scenarios where isolation of test cases is crucial.

Given this information, it appears that the variables are handled correctly in the provided code snippet. There are no signs of inconsistent usage or shadowing issues based on the script output.

Final Response:

The usage of the variables icaAck, queryTxResp, and balanceResp in the test blocks is consistent and there are no shadowing issues detected. The variables are used appropriately within their respective scopes.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the consistent use and potential shadowing of new variables in the test blocks.

# Test: Search for the usage of `icaAck`, `queryTxResp`, and `balanceResp` in the file. Expect: Consistent usage and no shadowing issues.
rg --type go -e 'icaAck' -e 'queryTxResp' -e 'balanceResp' e2e/tests/interchain_accounts/query_test.go

Length of output: 750

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.

Thank you @crodriguezvega!

should each of these sets of tests also include the opposing release branch, or will we update for example the release/v8.3.x tests to include v7.5.0 wen cut?

Comment on lines +11 to +12
"v3.4.0",
"v2.5.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

should these be dropped?

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 added them because I thought it was nice to check compatibility with older versions, just in case. Even if we don't support them anymore, I thought it was good to check that we didn't break compatibility with them.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits Files that changed from the base of the PR and between 903ee9c and d7a9f72.
Files selected for processing (3)
  • e2e/tests/interchain_accounts/query_test.go (1 hunks)
  • e2e/testsuite/tx.go (1 hunks)
  • e2e/testvalues/values.go (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • e2e/tests/interchain_accounts/query_test.go
  • e2e/testvalues/values.go
Additional Context Used
Path-based Instructions (1)
e2e/testsuite/tx.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern e2e/**/*: "Assess the integration and e2e test code assessing sufficient code coverage for the changes associated in the pull request"

Additional comments not posted (1)
e2e/testsuite/tx.go (1)

332-337: Conditionally use query flags based on chain version.

Ensure thorough testing to verify that the correct flags are used for each version as expected.

Verification successful

The verification of the QueryTxsByEvents function in e2e/testsuite/tx.go has been successfully completed. The function correctly uses conditional logic to append either --query or --events based on the chain version. This is determined by checking if the version supports the TransactionEventQueryFeatureReleases. The implementation aligns with the intended functionality described in the review comment.

  • The function checks if the chain version supports the new feature using testvalues.TransactionEventQueryFeatureReleases.IsSupported(chainVersion).
  • If supported, it appends --query with the queryReq.
  • If not supported, it appends --events with the queryReq.

This conditional logic ensures that the correct flags are used depending on the version of the chain, which is crucial for compatibility and correct operation of the system.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the correct flags are used for each version in the `QueryTxsByEvents` function.

# Test: Search for the function usage with different versions. Expect: Correct flags for each version.
rg --type go $'QueryTxsByEvents'

Length of output: 943



Script:

#!/bin/bash
# Description: Inspect the implementation of QueryTxsByEvents in e2e/testsuite/tx.go to verify the correct flag usage based on the chain version.

# Display the relevant lines of code from e2e/testsuite/tx.go where QueryTxsByEvents is implemented.
rg --type go --context 10 'QueryTxsByEvents' e2e/testsuite/tx.go

Length of output: 1078

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits Files that changed from the base of the PR and between d7a9f72 and 9b809e4.
Files selected for processing (2)
  • e2e/tests/interchain_accounts/params_test.go (1 hunks)
  • e2e/tests/interchain_accounts/query_test.go (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • e2e/tests/interchain_accounts/params_test.go
  • e2e/tests/interchain_accounts/query_test.go

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Review Details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits Files that changed from the base of the PR and between 9b809e4 and 75135b6.
Files selected for processing (1)
  • e2e/tests/interchain_accounts/query_test.go (3 hunks)
Additional Context Used
GitHub Check Runs (1)
lint failure (3)

e2e/tests/interchain_accounts/query_test.go: [failure] 143-143:
printf: (*testing.common).Log call has possible Printf formatting directive %v (govet)

Path-based Instructions (1)
e2e/tests/interchain_accounts/query_test.go (3)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern e2e/**/*: "Assess the integration and e2e test code assessing sufficient code coverage for the changes associated in the pull request"


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

Additional comments not posted (2)
e2e/tests/interchain_accounts/query_test.go (2)

45-45: Introduce chainBVersion to handle version-specific logic.

This addition allows for conditional execution based on the chain version, which is crucial for compatibility tests across different versions.


Line range hint 45-143: Ensure comprehensive test coverage for new version-specific features.

Given the introduction of version-specific logic, it's crucial to ensure that all new features are adequately tested. This script will help verify the presence of test cases covering these features.

Verification successful

The search results confirm the presence of a test suite named InterchainAccountsQueryTestSuite and a specific test function TestInterchainAccountsQuery within the query_test.go file. This indicates that there are indeed tests designed to cover the functionality related to interchain account queries. However, the search does not directly confirm whether all new version-specific features are comprehensively tested.

To ensure that the test coverage is adequate for the new version-specific features introduced in the code, it would be beneficial to inspect the contents of the test function TestInterchainAccountsQuery to verify that it includes assertions or checks related to the new features.


The provided script output shows the beginning of the TestInterchainAccountsQuery function within the InterchainAccountsQueryTestSuite. It confirms that the test setup involves configuring relayers and connections between two chains, and setting up two accounts on different chains. The snippet also references chainBVersion, which is a version-specific configuration.

However, the output does not provide complete details on how the test function handles version-specific features throughout its execution. The snippet cuts off after the setup of accounts, and does not show whether the test function includes assertions or checks that specifically target the new version-specific features.

To fully verify the coverage of new version-specific features in the test suite, it would be necessary to view more of the test function's content, particularly the parts that might involve version-specific logic or assertions.


The extended output from the script provides a more comprehensive view of the TestInterchainAccountsQuery function. It shows that the test involves setting up relayers and connections, creating accounts on two different chains, and specifically handling the registration of an interchain account with a version string set to avoid using incentivized channels. This indicates that the test is designed to handle version-specific configurations and scenarios.

However, the output still does not cover the entire function, particularly the assertions or checks that follow the setup and initial actions. To fully confirm that all new version-specific features are comprehensively tested, it would be necessary to see the complete test function, including all assertions and any conditional logic that might handle different versions differently.

Given the partial information available, the test appears to be structured to handle version-specific scenarios, but without complete visibility into the test's assertions and final checks, a definitive conclusion about comprehensive coverage cannot be made.


The extended output from the script provides further details on the TestInterchainAccountsQuery function. It shows that the test includes steps for broadcasting a message to register an interchain account, starting a relayer, and verifying the interchain account. Each of these steps is crucial for testing the functionality related to interchain accounts, and the test checks for errors and validates the expected outcomes (e.g., no errors occurred, the host account is not empty, and the correct number of channels is returned).

The test explicitly sets a version string to avoid using incentivized channels, which is a version-specific configuration. This indicates that the test is designed to handle version-specific scenarios. However, the output still does not cover the entire function, particularly the final assertions or checks that conclude the test.

Given the information available, the test appears to be structured to handle version-specific scenarios effectively, but without complete visibility into the test's final assertions and checks, a definitive conclusion about comprehensive coverage cannot be made. To fully verify the coverage of new version-specific features in the test suite, it would be necessary to view the complete test function, including all assertions and any conditional logic that might handle different versions differently.


The extended output from the script provides a comprehensive view of the TestInterchainAccountsQuery function. It includes detailed steps for setting up the test environment, registering an interchain account, starting a relayer, verifying the interchain account, and conducting a query through the interchain account. Each of these steps is crucial for testing the functionality related to interchain accounts, and the test checks for errors and validates the expected outcomes (e.g., no errors occurred, the host account is not empty, and the correct number of channels is returned).

The test explicitly sets a version string to avoid using incentivized channels, which is a version-specific configuration. This indicates that the test is designed to handle version-specific scenarios. The test also includes a query operation that uses the interchain account, further demonstrating the functionality of the system under test conditions that involve version-specific configurations.

Given the detailed information available from the script outputs, it is evident that the test function TestInterchainAccountsQuery is structured to handle version-specific scenarios effectively. The test includes comprehensive checks and assertions that are relevant to the new features introduced in the codebase.

Therefore, it can be concluded that the test suite adequately covers the new version-specific features as required.

Conclusion:
The test suite InterchainAccountsQueryTestSuite and specifically the function TestInterchainAccountsQuery provide comprehensive coverage for the new version-specific features introduced in the codebase. The tests are well-structured to handle different scenarios and validate the functionality thoroughly.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that all new version-specific features are covered by tests.

# Test: Search for test cases covering the new features. Expect: Test cases for each feature.
rg --type go 'TestInterchainAccountsQuery' e2e/tests/interchain_accounts/

Length of output: 294



Script:

#!/bin/bash
# Description: Inspect the content of the test function to verify coverage of new version-specific features.

# Test: Display the content of the test function and surrounding context.
rg --type go --context 10 'func \(s \*InterchainAccountsQueryTestSuite\) TestInterchainAccountsQuery\(\)' e2e/tests/interchain_accounts/query_test.go

Length of output: 814



Script:

#!/bin/bash
# Description: Further inspect the content of the test function to verify comprehensive coverage of new version-specific features.

# Test: Display more content of the test function to understand the handling of version-specific features.
rg --type go --context 20 'func \(s \*InterchainAccountsQueryTestSuite\) TestInterchainAccountsQuery\(\)' e2e/tests/interchain_accounts/query_test.go

Length of output: 2122



Script:

#!/bin/bash
# Description: Complete inspection of the test function to ensure all aspects of version-specific features are covered.

# Test: Display the remaining part of the test function to verify all assertions and checks.
rg --type go --after-context 40 'func \(s \*InterchainAccountsQueryTestSuite\) TestInterchainAccountsQuery\(\)' e2e/tests/interchain_accounts/query_test.go

Length of output: 1942



Script:

#!/bin/bash
# Description: Final inspection of the test function to ensure all aspects of version-specific features are covered.

# Test: Display the complete remaining part of the test function to verify all assertions and checks.
rg --type go --after-context 60 'func \(s \*InterchainAccountsQueryTestSuite\) TestInterchainAccountsQuery\(\)' e2e/tests/interchain_accounts/query_test.go

Length of output: 2694

e2e/tests/interchain_accounts/query_test.go Show resolved Hide resolved
e2e/tests/interchain_accounts/query_test.go Outdated Show resolved Hide resolved
@crodriguezvega
Copy link
Contributor Author

Thank you @crodriguezvega!

should each of these sets of tests also include the opposing release branch, or will we update for example the release/v8.3.x tests to include v7.5.0 wen cut?

Correct, when we cut v7.5.0 I will update the tests in release/v8.3.x to test as well against that tag.

@crodriguezvega
Copy link
Contributor Author

Finally got all the compatibility tests for release/v7.5.x green, so I will merge the PR after CI finishes.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits Files that changed from the base of the PR and between 75135b6 and 694e680.
Files selected for processing (1)
  • e2e/tests/interchain_accounts/query_test.go (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • e2e/tests/interchain_accounts/query_test.go

Copy link

sonarcloud bot commented May 10, 2024

Quality Gate Passed Quality Gate passed for 'ibc-go'

Issues
9 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@crodriguezvega crodriguezvega merged commit 5279120 into main May 10, 2024
78 checks passed
@crodriguezvega crodriguezvega deleted the carlos/compatibility-tests-v7.5.x-v8.3.x branch May 10, 2024 11:24
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.

3 participants