-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Node tests fixes #106371
Node tests fixes #106371
Conversation
/sig node |
/test |
@aojea: The
The following commands are available to trigger optional jobs:
Use
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. |
/test pull-kubernetes-node-e2e |
/test pull-kubernetes-node-kubelet-serial |
Co-authored-by: Mike Miranda <mikemp96@gmail.com>
/test pull-kubernetes-node-kubelet-serial |
|
||
gomega.Expect(e2epod.WaitForPodToDisappear(f.ClientSet, f.Namespace.Name, pod.ObjectMeta.Name, labels.Everything(), | ||
30*time.Second, 10*time.Minute)).NotTo(gomega.HaveOccurred()) | ||
}(pod) | ||
}() |
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.
hm, thinking about it, this is not a problem. When pod is passed as argument here, things should be fine
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.
we can keep either new format or revert, shouldn't make a difference
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, SergeyKanzhelev 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 |
I think the serial test was passing before the last changes, but let's just wait. /lgtm |
/label tide/merge-method-squash
|
@aojea: 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. 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. |
/test pull-kubernetes-unit |
for i := range pods { | ||
pod := pods[i] |
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.
Why are we using pod := pods[i]
now instead of what range function returns us i.e., _, pod := range pods
?
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.
see #106371 (comment) pod := pods[i]
is same as pod := pod
when using _, pod := range pods
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.
@jonyhy96 I know they both are same, now I get it it's because of consistency in code, thanks for mentioning that comment (I missed that).
/kind bug
/kind failing-test
/kind flake
What this PR does / why we need it:
https://github.com/golang/go/wiki/CommonMistakes#using-reference-to-loop-iterator-variable