-
Notifications
You must be signed in to change notification settings - Fork 234
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
Problem: block-stm executor status not logged #1548
Conversation
Solution: - add a log with the number of workers
WalkthroughThe recent changes enhance the Changes
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 Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1548 +/- ##
==========================================
- Coverage 36.12% 34.79% -1.34%
==========================================
Files 97 97
Lines 7725 7725
==========================================
- Hits 2791 2688 -103
- Misses 4585 4722 +137
+ Partials 349 315 -34 |
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- app/app.go (2 hunks)
Additional context used
GitHub Check: CodeQL
app/app.go
[notice] 15-15: Sensitive package import
Certain system packages contain functions which may be a possible source of non-determinism
Additional comments not posted (2)
app/app.go (2)
15-15
: Usage ofstdruntime
is appropriate.The import of
stdruntime
is necessary to determine the number of CPU cores for setting a default worker count. While flagged by CodeQL, this use case is justified and not a source of concern.Tools
GitHub Check: CodeQL
[notice] 15-15: Sensitive package import
Certain system packages contain functions which may be a possible source of non-determinism
428-431
: Confirm logic and verify log level for worker count.The logic for setting the number of workers using
stdruntime.NumCPU()
when none is specified is correct. The logging statement enhances visibility. Ensure that the log level used here is appropriate for your logging strategy.Verification successful
Log level for worker count is appropriate.
The use of
Info
level for logging the number of workers is suitable, as it provides relevant information about the application state without being overly verbose. This aligns well with typical logging strategies.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the log level for the worker count logging statement. # Test: Search for logging statements in the `New` function. Expect: Appropriate log level for worker count. rg --type go -A 3 'logger\.Info\("block-stm executor enabled", "workers", workers\)'Length of output: 321
af15fa3
Solution:
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)
Summary by CodeRabbit
New Features
Bug Fixes