-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: remove the for-loop and use linux event watcher to monitor file… #8054
base: main
Are you sure you want to change the base?
Conversation
… change which could avoid a lot of CPU waste.
The committers listed above are authorized under a signed CLA. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @Pangjiping. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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 kubernetes/test-infra repository. |
/kind bug |
related to issue #7293 In fact, we fully enabled sidecarlogresults in our large production environment (about 2 million taskruns per week), but after running for a period of time, we found a sharp increase in CPU usage. After troubleshooting, it was found that the implementation of sidecarlogresults had certain bug. I have fixed the problem and have been running safely in the production environment for three months. @jerop |
The following is the coverage report on the affected files.
|
That's amazing! Thanks for the fix. I'll review it promptly. |
LGTM mostly. Any way we can bump the coverage? I see a significant portion of untested code. If we can do that via unit tests, that is great. If not, we should at least add some e2e tests. |
/ok-to-test |
go 1.18 | ||
go 1.21 | ||
|
||
toolchain go1.22.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@afrittoli it might not be, but it's doing the same thing automatically on my laptop (go 1.22.3 from nixos) — it automatically adds the toolchain
entry.
The following is the coverage report on the affected files.
|
@Pangjiping: PR needs rebase. 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 kubernetes/test-infra repository. |
@Pangjiping I'm moving this to the next release milestone unless you have time to resolve the comments and merge conflicts soon. Please let us know. |
/test pull-tekton-pipeline-build-tests |
@Pangjiping: The following test failed, say
Full PR test history. Your PR dashboard. 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 kubernetes/test-infra repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you address review comments and fix linter issue due to which build is failing?
@Pangjiping could you rebase this? |
… change which could avoid a lot of CPU waste.
Changes
modify the behavior of detecting files through for-loop to use filesystem event watcher, which can avoid a lot of waste of CPU resources
/kind bug
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes