Skip to content
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

feat(dependenciesdistributor): remove log #6072

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

CharlesQQ
Copy link
Member

@CharlesQQ CharlesQQ commented Jan 21, 2025

What type of PR is this?

What this PR does / why we need it:

fix controller print too many "No need to sync binding" log when restarts

Which issue(s) this PR fixes:
Fixes #6071

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@karmada-bot karmada-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 21, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 21, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.32%. Comparing base (820fd06) to head (a115a22).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6072      +/-   ##
==========================================
- Coverage   48.33%   48.32%   -0.02%     
==========================================
  Files         666      666              
  Lines       54858    54857       -1     
==========================================
- Hits        26518    26511       -7     
- Misses      26616    26621       +5     
- Partials     1724     1725       +1     
Flag Coverage Δ
unittests 48.32% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Member

@XiShanYongYe-Chang XiShanYongYe-Chang left a comment

Choose a reason for hiding this comment

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

I agree with this log level adjustment.
/lgtm

From the pr title description, the word fix is a bit inappropriate, can you help modify it?

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 21, 2025
@@ -186,7 +186,7 @@ func (d *DependenciesDistributor) reconcileResourceTemplate(key util.QueueKey) e

matched := matchesWithBindingDependencies(resourceTemplateKey, binding)
if !matched {
klog.V(4).Infof("No need to sync binding(%s/%s)", binding.Namespace, binding.Name)
klog.V(5).Infof("No need to sync binding(%s/%s)", binding.Namespace, binding.Name)
Copy link
Member

Choose a reason for hiding this comment

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

The logic here is more like selecting a small number of items from a large set, logging for items that do not match isn't really helpful, right?

In other words, shall we remove this log?

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good. We already have the matching logs, so the rest is negligible unmatched resources.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree to remove this log

@karmada-bot karmada-bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 22, 2025
@CharlesQQ CharlesQQ changed the title fix(dependenciesdistributor): set log to level 5 fix(dependenciesdistributor): remove log Jan 22, 2025
@CharlesQQ CharlesQQ changed the title fix(dependenciesdistributor): remove log feat(dependenciesdistributor): remove log Jan 22, 2025
@RainbowMango
Copy link
Member

Hi @CharlesQQ CI is failing

Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 22, 2025
@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RainbowMango

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

The pull request process is described here

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

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 22, 2025
@karmada-bot karmada-bot merged commit e3628af into karmada-io:master Jan 22, 2025
21 checks passed
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. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

karmada controller print too many "No need to sync binding" log
5 participants