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
use patch instead of replace to test the dry-run option #95831
Conversation
/assign @soltysh |
/lgtm |
/priority important-soon |
I'd like to know why pods were chosen. A conflict error looks to be correct in cases where there is a conflict. It seems more correct to me to use an unconditional update if that's what you want or to choose a resource with less contention. /assign @apelisse |
I'd suggest going with an unconditional update to avoid the conflict error, but keep the spirit of the test. |
@cpanato Would you mind updating with a patch rather than a replace so that you avoid the conflicts? Thanks. |
a081eeb
to
584b145
Compare
@apelisse make the change, thanks for your review PTAL |
584b145
to
a9ff313
Compare
Yeah, I think that's good and shouldn't fail like it did before. |
/assign @johnbelamaric (for test/conformance/testdata/OWNERS) |
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.
/triage accepted
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, 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 |
/test pull-kubernetes-node-e2e |
Keeping an eye on this as a dependency of #95832 |
/test pull-kubernetes-bazel-test |
What type of PR is this?
/kind failing-test
What this PR does / why we need it:
Was observing some jobs for other fixes we have been changing and notice this test is failing a lot
can see in this job, for example, https://testgrid.k8s.io/sig-release-master-informing#capg-conformance-v1alpha3-k8s-master and https://testgrid.k8s.io/sig-release-master-informing#capa-conformance-v1alpha3-k8s-master&width=30
The test creates a pod and get the JSON spec right away and then replaces the image to perform the actual test.
However, sometimes might have other reconciliation in the cluster that changes the resource version and when the test try to apply the change this the spec is old and the test fail.
Waiting for the pod to be running maybe is a good option and then get the spec and perform the test.
Test locally and did not reproduce the issue with this change.
error in the job:
Which issue(s) this PR fixes:
Fixes: #95832
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: