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
Updated Create Pod+PodStatus resource lifecycle test - +4 endpoint coverage #93459
Updated Create Pod+PodStatus resource lifecycle test - +4 endpoint coverage #93459
Conversation
c8b7878
to
e5225ab
Compare
a3b168b
to
e08741c
Compare
podStatusUpdate, err := f.ClientSet.CoreV1().Pods(testNamespaceName).UpdateStatus(context.TODO(), &podStatusUpdated, metav1.UpdateOptions{}) | ||
framework.ExpectNoError(err, "failed to update PodStatus of Pod %s in namespace %s", testPodName, testNamespaceName) | ||
|
||
ginkgo.By("check the Pod again to ensure its Ready conditions are False") |
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.
Isn't there the possibility that the kubelet has already updated the pod's ready condition back to true 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.
I might be wrong, but from my understand the response from the API server (in this case podStatusUpdate
) is basically the same as the request. If that 's true then it should be fine to do this, otherwise I'll remove the checks after the update (so the endpoint is hit)
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.
Ah, I misread the code, and thought we were doing a separate retrieval
/hold |
/retest |
/test all |
/retest |
4 similar comments
/retest |
/retest |
/retest |
/retest |
/unhold |
/test pull-kubernetes-e2e-gce-ubuntu-containerd
|
fix for that flake in #96277 |
/test pull-kubernetes-e2e-gce-ubuntu-containerd
|
@spiffxp Added a constant as suggested, PodReadyTimeout and checks are looking good now. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dashpole, Riaankl, spiffxp 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 |
d8099c0
to
36f4527
Compare
Rebased |
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
/retest pull-kubernetes-e2e-gce-ubuntu-containerd |
@hh: The
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-e2e-gce-ubuntu-containerd |
/unhold |
/test pull-kubernetes-bazel-test |
/test pull-kubernetes-e2e-gce-ubuntu-containerd |
To give a quick summary of those last two failures: 9 unrelated tests seem to have connection and node failures:
Device Manager related:
|
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR adds a test to test the following untested endpoints:
Which issue(s) this PR fixes:
Fixes #90936
Special notes for your reviewer:
Adds +4 endpoint test coverage (good for conformance)
Does this PR introduce a user-facing change?:
Release note:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig testing
/sig architecture
/area conformance