Skip to content

Silence conflicts on status update for ResourceReconciler#664

Merged
scothis merged 2 commits intoreconcilerio:mainfrom
scothis:status-conflict
Dec 17, 2025
Merged

Silence conflicts on status update for ResourceReconciler#664
scothis merged 2 commits intoreconcilerio:mainfrom
scothis:status-conflict

Conversation

@scothis
Copy link
Member

@scothis scothis commented Nov 29, 2025

Conflict errors on status update are often benign and can only be recovered by reprocessing the resource. As errors the can produce a noisy log that distracts from more significant errors.

Because a high volume of status updates is indicative of a problem, an info log line is captured instead of the full error. The StatusUpdateFailed event is no longer recorded for conflicts.

Resolves #663

Conflict errors on status update are often benign and can only be
recovered by reprocessing the resource. As errors the can produce a
noisy log that distracts from more significant errors.

Because a high volume of status updates is indicative of a problem, an
info log line is captured instead of the full error. The
StatusUpdateFailed event is no longer recorded for conflicts.

Signed-off-by: Scott Andrews <scott@andrews.me>
@scothis
Copy link
Member Author

scothis commented Nov 29, 2025

@pmalek can you give this a try?

@codecov
Copy link

codecov bot commented Nov 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.96%. Comparing base (d180c32) to head (a6ff28e).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #664      +/-   ##
==========================================
+ Coverage   59.57%   59.96%   +0.38%     
==========================================
  Files          39       39              
  Lines        4510     3559     -951     
==========================================
- Hits         2687     2134     -553     
+ Misses       1713     1315     -398     
  Partials      110      110              

☔ 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.

Copy link
Contributor

@pmalek pmalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, I believe this is a good fix for the issue at hand.

Not sure if we'd need to customize this going forward but an improvement nonetheless. Thanks!

Signed-off-by: Scott Andrews <scott@andrews.me>

Co-authored-by: Patryk Małek <pmalek@users.noreply.github.com>
Signed-off-by: Scott Andrews <scott@andrews.me>
@scothis scothis merged commit f64b944 into reconcilerio:main Dec 17, 2025
4 checks passed
@scothis scothis deleted the status-conflict branch December 17, 2025 21:42
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.

Conflict errors during updates should not be propagated to controller-runtime: allow customizing which errors to ignore/requeue

3 participants