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

Fix a CI flake in cfBuild controller tests #2898

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

danail-branekov
Copy link
Member

Is there a related GitHub Issue?

No

What is this change about?

This flake has occurred a couple of times during the weekend. It was
most probably caused by the cfbuild controller seeing the build success
status too soon, causing it to not delegate to the delegate reconciler
even once. Changing the test to wait for the first invocation of the
delegate reconciler before patching the build status to successfuls
state would prevent this problem. Then it would be safe to assert that
the delegate call count remains stable.

Also renamed the fakeStatusCondition to delegateInvokedCondition for
clarity

Link to failed build: https://ci.korifi.cf-app.com/teams/main/pipelines/main/jobs/run-tests-periodic/builds/12261#L6500636d:59

Does this PR introduce a breaking change?

No

Acceptance Steps

Green tests

Tag your pair, your PM, and/or team

@danail-branekov

Link to failed build: https://ci.korifi.cf-app.com/teams/main/pipelines/main/jobs/run-tests-periodic/builds/12261#L6500636d:59

This flake has occurred a couple of times during the weekend. It was
most probably caused by the cfbuild controller seeing the build success
status too soon, causing it to not delegate to the delegate reconciler
even once. Changing the test to wait for the first invocation of the
delegate reconciler before patching the build status to successfuls
state would prevent this problem. Then it would be safe to assert that
the delegate call count remains stable.

Also  renamed the fakeStatusCondition to delegateInvokedCondition for
clarity
@georgethebeatle georgethebeatle enabled auto-merge (rebase) September 25, 2023 13:50
@georgethebeatle georgethebeatle merged commit d7e5ae9 into main Sep 26, 2023
7 checks passed
@georgethebeatle georgethebeatle deleted the fix-cfbuild-controller-flake branch September 26, 2023 06:19
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