-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
🧹 v3 (chore): Update test workflow to use gotestsum #2895
Conversation
WalkthroughThis update integrates Changes
Assessment against linked issues
Poem
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 UI
Files selected for processing (1)
- .github/workflows/test.yml (1 hunks)
Additional comments: 2
.github/workflows/test.yml (2)
- 33-36: The addition of the
gotestsum
setup step usingautero1/action-gotestsum@v2.0.0
is a good practice for ensuring that the required version ofgotestsum
is installed. However, it's important to verify the reliability and maintenance status of the third-party GitHub Action, as well as the compatibility ofgotestsum
version1.11.0
with the project's requirements.- 38-38: The modification of the test command to use
gotestsum -f testname -- ./... -race
is a positive change for enhancing test output readability and running tests with the race detector enabled. Ensure that the chosen output format (testname
) meets the project's needs and consider the potential overhead introduced by the race detector, especially in CI environments where resources may be limited.
Output looks so much better :-) |
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 UI
Files selected for processing (1)
- .github/workflows/test.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/test.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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- .github/workflows/test.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/test.yml
@nickajacks1 There's a merge conflict now. Coverage reports were addsd to the |
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 UI
Files selected for processing (1)
- .github/workflows/test.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/test.yml
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2895 +/- ##
=======================================
Coverage ? 82.49%
=======================================
Files ? 116
Lines ? 8321
Branches ? 0
=======================================
Hits ? 6864
Misses ? 1110
Partials ? 347
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Description
Use gotestsum instead of
go test
to make test workflow output easier to read. In particular, test failures are summarized at the end, so we no longer have to dig through the logs to find what went wrong.Uses https://github.com/marketplace/actions/gotestsum-installer
Fixes #2885
Type of change
Please delete options that are not relevant.
Checklist
Before you submit your pull request, please make sure you meet these requirements:
Summary by CodeRabbit
gotestsum
.gotestsum
version and format.