Skip to content

Conversation

@linkvt
Copy link
Contributor

@linkvt linkvt commented Nov 13, 2025

See knative/serving#15746

Changes

  • 🧹 Reduce noisy logs/events containing "object has been modified" messages
    • Events are not recorded anymore and ERROR log messages were downgraded to DEBUG level.

/kind enhancement

Release Note

Reduce noisy logs/events containing "object has been modified" which are expected to happen from time to time during normal operation.
- Events were removed and ERROR log messages were downgraded to DEBUG level.

@knative-prow knative-prow bot added kind/enhancement size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 13, 2025
@knative-prow knative-prow bot requested review from Cali0707 and skonto November 13, 2025 08:09
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 13, 2025
@linkvt
Copy link
Contributor Author

linkvt commented Nov 13, 2025

/remove-approve

@knative-prow knative-prow bot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 13, 2025
@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.63%. Comparing base (5037c47) to head (885de40).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
controller/controller.go 33.33% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3289      +/-   ##
==========================================
+ Coverage   74.60%   74.63%   +0.02%     
==========================================
  Files         188      188              
  Lines        8184     8188       +4     
==========================================
+ Hits         6106     6111       +5     
  Misses       1839     1839              
+ Partials      239      238       -1     

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

@linkvt
Copy link
Contributor Author

linkvt commented Nov 18, 2025

Failed CI should be resolved as soon as knative/client#2101 is merged and propagated to the kn-plugin-admin repo.

// Conflict errors are expected, requeue to retry
if apierrors.IsConflict(err) {
logger.Debugw("Reconcile conflict", zap.Duration("duration", time.Since(startTime)))
c.workQueue.AddRateLimited(key)
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to guard !c.workQueue.ShuttingDown() ? here

Copy link
Contributor Author

@linkvt linkvt Nov 19, 2025

Choose a reason for hiding this comment

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

Thanks that makes sense. I moved the shutdown check to the top, it shouldn't really affect the logic as the AddRateLimited functions (which call AddAfter) effectively also check that again, so it's more about avoiding useless error logs during shutdown.

func (q *delayingType[T]) AddAfter(item T, duration time.Duration) {
// don't add if we're already shutting down
if q.ShuttingDown() {
return
}

@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 19, 2025
@linkvt linkvt force-pushed the prevent-object-modified-noise branch from f88917d to de644a7 Compare November 19, 2025 08:53
@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 19, 2025
@linkvt linkvt force-pushed the prevent-object-modified-noise branch from de644a7 to a8b9e0a Compare November 19, 2025 08:55
@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 19, 2025
@linkvt linkvt force-pushed the prevent-object-modified-noise branch from a8b9e0a to 885de40 Compare November 19, 2025 10:50
@dprotaso
Copy link
Member

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2025
@knative-prow
Copy link

knative-prow bot commented Nov 19, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 19, 2025
@knative-prow knative-prow bot merged commit ab67eb7 into knative:main Nov 19, 2025
38 checks passed
@linkvt linkvt deleted the prevent-object-modified-noise branch November 19, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/enhancement lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants