-
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
Eliminate redundant Pod Get. #3496
Eliminate redundant Pod Get. #3496
Conversation
The TaskRun reconciler was doing a Pod Get immediately prior to calling StopSidecars, which immediate refetches the Pod. This adapts StopSidecars to take the namespace/name and return the resulting Pod to elide the redundant fetch, and avoids wrapping errors in the case of NotFound, so that callers can be sensitive to that. See also this slack thread: https://tektoncd.slack.com/archives/CLCCEBUMU/p1604503658269500
/test check-pr-has-kind-label |
The following is the coverage report on the affected files.
|
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.
/lgtm
Does this look less flaky if you run e2e cancel/timeout tests many times?
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.
/meow
In 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 kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
/retest
My testing is via automation that doesn't lend itself to trying that easily, but while this works its way in, I can stage a PR that pulls it in and retest it until GHA throttles me to death 😉 |
1/3 downstream legs have passed 🤞 |
The TaskRun reconciler was doing a Pod Get immediately prior to calling StopSidecars, which immediate refetches the Pod. This adapts StopSidecars to take the namespace/name and return the resulting Pod to elide the redundant fetch, and avoids wrapping errors in the case of NotFound, so that callers can be sensitive to that.
See also this slack thread: https://tektoncd.slack.com/archives/CLCCEBUMU/p1604503658269500
/kind bug
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Double check this list of stuff that's easy to miss:
cmd
dir, please updatethe release Task to build and release this image.
Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes
/assign @imjasonh @vdemeester @afrittoli