-
Notifications
You must be signed in to change notification settings - Fork 606
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 workflow for e2e module. #6051
Conversation
WalkthroughThe update introduces a new GitHub Actions workflow named "E2E Unit tests/Lint" tailored for the e2e module codebase, triggered by PRs. It focuses on linting and running Go tests on the e2e module's code. Additionally, refinements were made in the Changes
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 (2)
- .github/workflows/e2emodule.yml (1 hunks)
- e2e/tests/upgrades/genesis_test.go (2 hunks)
Additional comments: 3
.github/workflows/e2emodule.yml (1)
- 1-33: The GitHub Actions workflow is well-defined and adheres to best practices. It correctly targets the e2e module for both linting and testing, ensuring code quality and functionality. The use of Ubuntu latest, Go 1.21, and specific versions of actions/setup-go, actions/checkout, and golangci-lint-action are appropriate. The workflow is triggered by pull requests affecting the e2e module or the workflow file itself, which is a sensible choice to ensure that changes are validated.
e2e/tests/upgrades/genesis_test.go (2)
- 128-128: The modification in the
TestIBCGenesis
test case, specifically the simplification of theHaltChainAndExportGenesis
function call, improves code clarity and maintainability. Removing explicit type conversions where unnecessary is a good practice that enhances readability.- 245-245: The
HaltChainAndExportGenesis
function correctly implements the logic for halting the chain, exporting the genesis state, and ensuring the chain height increments after the halt. The function adheres to best practices, including the use of context with timeout and comprehensive error handling. This contributes to the robustness and maintainability of the test suite.
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)
- .github/workflows/e2emodule.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/e2emodule.yml
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.
🙏
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! Thanks for adding this, has bugged me a few times in the past also!
08c6bb8
to
eefd5dd
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 (2)
- .github/workflows/e2emodule.yml (1 hunks)
- e2e/tests/upgrades/genesis_test.go (2 hunks)
Files skipped from review as they are similar to previous changes (2)
- .github/workflows/e2emodule.yml
- e2e/tests/upgrades/genesis_test.go
Quality Gate passed for 'ibc-go'Issues Measures |
I believe this closes #3695 as well. |
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 @DimitrisJim!
Description
this has bugged me for some time, running
make lint
locally always found something in thee2e
module to complain about. This workflow adds the linting step for the e2e module and it runs a few of the tests it defines.closes: #3695
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/
).godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.Summary by CodeRabbit
GenesisTestSuite
within the e2e tests.