-
Notifications
You must be signed in to change notification settings - Fork 1
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
Better logging of cache config. #223
Conversation
WalkthroughThe pull request introduces enhancements to the CI workflow and logging functionality within the codebase. In the CI configuration, the command for running Go tests is modified to improve error handling by incorporating Changes
Sequence Diagram(s)sequenceDiagram
participant CI
participant GoTests
participant Logger
CI->>GoTests: Run tests with command
GoTests->>Logger: Log test results
Logger-->>GoTests: Return log output
GoTests-->>CI: Return test status
Tip New review modelWe have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the discussion post on our Discord. New featuresWalkthrough comment now includes:
Notes:
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration 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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/ci.yaml (1 hunks)
- pkg/uhttp/gocache.go (1 hunks)
Additional context used
Learnings (1)
pkg/uhttp/gocache.go (1)
Learnt from: ggreer PR: ConductorOne/baton-sdk#194 File: pkg/uhttp/gocache.go:125-132 Timestamp: 2024-07-30T19:21:37.891Z Learning: Errors when clearing the cache in the `GoCache` struct are logged later in the process, so additional logging in the `Clear` method is unnecessary and would cause log spam.
Additional comments not posted (2)
.github/workflows/ci.yaml (1)
33-33
: LGTM!The addition of
set -o pipefail
is a best practice that improves error handling in the CI pipeline. If any command in the pipeline fails, the entire pipeline will return a failure status, preventing the workflow from incorrectly reporting success.pkg/uhttp/gocache.go (1)
40-50
: LGTM!The refined logging in the
NewGoCache
function provides a more detailed and structured log output by logging each cache configuration parameter individually. This change improves the clarity and granularity of the logging, making it easier to diagnose issues related to cache configuration.
We don't want to try logging the functions on this struct, just config settings.
947fc37
to
f48813b
Compare
This reverts commit 11c3087.
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)
- pkg/uhttp/gocache.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- pkg/uhttp/gocache.go
We don't want to try logging the functions on this struct, just config settings.
Summary by CodeRabbit
Bug Fixes
New Features