Skip to content

Quiet errors are always actually quiet#605

Merged
scothis merged 2 commits intoreconcilerio:mainfrom
scothis:err-quiet
Mar 17, 2025
Merged

Quiet errors are always actually quiet#605
scothis merged 2 commits intoreconcilerio:mainfrom
scothis:err-quiet

Conversation

@scothis
Copy link
Member

@scothis scothis commented Mar 17, 2025

controller-runtime will always log an error returned to it from a reconciler. In order to avoid the quieted errors from appearing in the logs, we need to return a nil error. To get the same effect of an error without the logging, we also request a requeue. The requeue is handled the same as if the request erred in terms of the workqueue backoffs.

controller-runtime will always log an error returned it it from a
reconciler. In order to avoid the quieted errors from appearing in the
logs, we need to return a nil error. To get the same effect of an error
without the logging, we also request a requeue. The requeue is handled
the same as if the request erred in terms of the workqueue backoffs.

Signed-off-by: Scott Andrews <scott@andrews.me>
@scothis scothis requested a review from mamachanko March 17, 2025 00:32
@codecov
Copy link

codecov bot commented Mar 17, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 10 lines in your changes missing coverage. Please review.

Project coverage is 59.15%. Comparing base (105ccd3) to head (c9d253f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
reconcilers/aggregate.go 16.66% 8 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #605      +/-   ##
==========================================
- Coverage   59.25%   59.15%   -0.10%     
==========================================
  Files          35       35              
  Lines        4032     4047      +15     
==========================================
+ Hits         2389     2394       +5     
- Misses       1547     1555       +8     
- Partials       96       98       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-authored-by: Max Brauer <mamachanko@users.noreply.github.com>
Signed-off-by: Scott Andrews <scott@andrews.me>
@scothis scothis merged commit d0110d3 into reconcilerio:main Mar 17, 2025
2 checks passed
@scothis scothis deleted the err-quiet branch March 17, 2025 14:30
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.

2 participants