CNTRLPLANE-3384: Remove unconditional low-quality log messages from controllers - #8428
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Skipping CI for Draft Pull Request. |
|
@csrwng: This pull request references CNTRLPLANE-3384 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
1f358a6 to
fc7aa60
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (18)
💤 Files with no reviewable changes (18)
📝 WalkthroughWalkthroughThis pull request removes informational log statements from numerous Reconcile methods across the control-plane-operator and hypershift-operator codebases. Changes include deletion of startup logs (e.g., 🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8428 +/- ##
==========================================
- Coverage 37.44% 37.44% -0.01%
==========================================
Files 751 751
Lines 91969 91922 -47
==========================================
- Hits 34435 34417 -18
+ Misses 54894 54865 -29
Partials 2640 2640
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
These log messages (e.g. log.Info("Reconciling"), log.Info("reconcile
complete")) provide no clear information and are emitted on every
reconcile invocation, leading to excessive log noise. controller-runtime
already provides reconcile lifecycle tracing at debug verbosity.
Remove entry/exit logs and sub-function announcement logs from 18
controllers across the CPO and HO. Clean up unused variables and
imports where applicable.
Signed-off-by: Cesar Wong <cewong@redhat.com>
Commit-Message-Assisted-by: Claude (via Claude Code)
fc7aa60 to
eae566a
Compare
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox, csrwng The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Test Resultse2e-aws
e2e-aks
|
|
/retest |
|
I now have all the evidence needed. Let me produce the final report. Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryThis failure is an AWS EC2 API rate-limiting flake unrelated to the PR changes. The Root CauseAWS EC2 API Rate Limiting (transient infrastructure flake) The E2E test suite creates 12+ hosted clusters in parallel, each requiring AWS infrastructure including VPC S3 gateway endpoints. All clusters share the same CI AWS account The infrastructure creation code ( This is a known class of flake in HyperShift CI caused by the high degree of parallelism (12 clusters being created simultaneously) hitting shared AWS account rate limits. The fact that 8 clusters created before and 4 clusters created after this failure all succeeded confirms the throttling was transient. The PR changes (removing Recommendations
Evidence
|
|
/test ci/prow/e2e-aws-4-22 |
|
/retest |
|
/verified by e2e |
|
@bryan-cox: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@csrwng: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
log.Info("Reconciling"),log.Info("reconciliation complete"), and equivalent messages from 18 controllers across the CPO and HOContext
These log messages provide no actionable information and are emitted on every reconcile invocation, including frequent re-queues. controller-runtime already provides reconcile lifecycle tracing at debug verbosity. In management clusters running many HostedClusters (e.g., ARO HCP), this produces significant log noise that obscures meaningful events during incident investigation.
Identified during a debugging session investigating cluster deletion issues in the managed Azure service (ARO HCP).
Jira
https://issues.redhat.com/browse/CNTRLPLANE-3384
Test plan
make testpassesmake buildpassesSummary by CodeRabbit