-
Notifications
You must be signed in to change notification settings - Fork 41.1k
authz tests: delay response in context cancelled scenario #133310
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
base: master
Are you sure you want to change the base?
Conversation
/test pull-kubernetes-unit
seems to be tracked in #133302 |
3248d47
to
7a800b3
Compare
The net/http transport checks for immediate response when its handling context cancellation. The unit test was racing with this check by responding too fast. Signed-off-by: Stanislav Láznička <slznika@microsoft.com>
/triage accepted (assigned as part of SIG Auth triage) |
/lgtm Thanks for the fix, locally this eliminated a ~1% flake. This isn't urgent, but I'd like to pull this test-only flake fix into release-1.34 after the rc.0 cut cc @kubernetes/release-managers |
LGTM label has been added. Git tree hash: 414d6460c599a23e49f11c299a88dff073dcb014
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, stlaz 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 |
What type of PR is this?
/kind flake
What this PR does / why we need it:
It delays authorizer response right after context cancellation to avoid racing with the stdlib's net/http transport context cancellation handling.
Which issue(s) this PR is related to:
Fixes #131069
Special notes for your reviewer:
https://cs.opensource.google/go/go/+/refs/tags/go1.24.5:src/net/http/transport.go;l=2864-2872
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: