Skip to content
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 EnsurePatch in OSBAPI client factory tests #3475

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

danail-branekov
Copy link
Member

Is there a related GitHub Issue?

Flakes:

https://ci.korifi.cf-app.com/teams/main/pipelines/main/jobs/run-tests-periodic/builds/19051
https://ci.korifi.cf-app.com/teams/main/pipelines/main/jobs/run-tests-periodic/builds/19049

What is this change about?

The client factory is an utility and its tests are not executed in the
context of the controllers retry loop. Therefore, in order to avoid
flakes from k8s eventual consistency, we use EnsurePatch in tests
instead of k8sClient.Patch to ensure that the factory sees the state
of the objects the test setup creates.

Tag your pair, your PM, and/or team

@georgethebeatle

The client factory is an utility and its tests are not executed in the
context of the controllers retry loop. Therefore, in order to avoid
flakes from k8s eventual consistency, we use `EnsurePatch` in tests
instead of `k8sClient.Patch` to ensure that the factory sees the state
of the objects the test setup creates.

Co-authored-by: Georgi Sabev <[email protected]>
@danail-branekov danail-branekov merged commit 68dd24d into main Sep 16, 2024
11 checks passed
@danail-branekov danail-branekov deleted the fix-client-factory-flake branch September 16, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants