-
Notifications
You must be signed in to change notification settings - Fork 617
Add wait for ingress deletion in NEG test #3540
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
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: panslava The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
- Handle nil DeletionTimestamp gracefully by using current time when objects are deleted immediately without a deletion timestamp - Add explicit wait for ingress deletion in NEG test configuration to ensure all ingresses are fully removed before test completion - Remove incorrect warning logs that were preventing proper deletion tracking when DeletionTimestamp was nil These changes improve the reliability of NEG tests by properly tracking deletion phases even when Kubernetes performs immediate deletions, and ensuring proper cleanup sequencing.
ef8fa4b to
366cd45
Compare
|
/cc @swetharepakula |
| } | ||
| newIngress, ok = newObj.(*networkingv1.Ingress) | ||
| if newIngress != nil && !ok { | ||
| if newObj != nil && !ok { |
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.
This is just fixes mistaken code I noticed, we should compare newObj, not newIngress (look how we do the same above this for services)
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
@panslava: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
What type of PR is this?
/kind bug
/kind flake
What this PR does / why we need it
DeletionTimestampmay be nil by recording deletion phases using a local timestamp fallback, so deletion latency is tracked consistently.Changes
clusterloader2/testing/neg/config.yaml:125ingress-measurements.yamlwithaction: waitForDeletion.DeletionTimestampis nil:clusterloader2/pkg/measurement/common/service_creation_latency.go:365deletingfromDeletionTimestampwhen present; otherwise usetime.Now(). Always setdeletedtotime.Now().clusterloader2/pkg/measurement/common/service_creation_latency.go:383Which issue(s) this PR fixes
Fixes #
time.Now(). Negative latencies are already clamped to zero inphase_latency.go, so this remains safe, but be aware of potential minor clock skew when interpreting results.Release note