-
Notifications
You must be signed in to change notification settings - Fork 498
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
conformance: use Patch to make ObservedGeneration tests robust against conflicts #1760
conformance: use Patch to make ObservedGeneration tests robust against conflicts #1760
Conversation
a748a7f
to
ed1fee8
Compare
we in Envoy Gateway might have this same issue, our tests are flaking as well envoyproxy/gateway#1016. Will test this PR out and report back |
would have to run this in CI for a little while, but Contour generally runs into this type of issue as well |
didnt seem to help in EG, here's the draft PR I tested with envoyproxy/gateway#1106 |
I may be missing it in the output but it looks like the |
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.
The Kong Ingress controller did not experience this flake, but the change looks legit and did not trigger any error in our CI.
@michaelbeaumont you're right, the |
Changes looks good - but a question since I'm not familiar so much with the When calling It's not really documented but if the |
Looking at |
Thanks @michaelbeaumont! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: arkodg, michaelbeaumont, mlavacca, robscott 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 |
…ormance_observed_gen conformance: use Patch to make ObservedGeneration tests robust against conflicts
* Bumps gateway-api version to `v0.6.2` * Ensure the status or code do not refer to any resource as `Ready`, because we cannot guarantee that today, raised #1171 to fix it * Refactor `gateway-api` translator to ensure we always compute `ResolvedRefs` condition which is checked by the newer conformance tests * Brings in kubernetes-sigs/gateway-api#1760 which removes some test flakes * enable`GatewayObservedGenerationBump` test * Fixes #1016 * enable `HTTPRouteObservedGenerationBump` test * Fixes #1016 * Disable `GatewayWithAttachedRoutes` test which should be fixed with #1201 Fixes: #1152
What type of PR is this?
/kind feature
/area conformance
What this PR does / why we need it:
Using
Update
can lead to Conflict errors that fail the test:Another option would be to use something like https://pkg.go.dev/k8s.io/client-go/util/retry#RetryOnConflict but just using
Patch
seems a simpler option for this case.Does this PR introduce a user-facing change?: