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 flake in CreateOrUpdate #707

Merged
merged 3 commits into from
Aug 7, 2019
Merged

Fix flake in CreateOrUpdate #707

merged 3 commits into from
Aug 7, 2019

Conversation

alenkacz
Copy link
Contributor

@alenkacz alenkacz commented Aug 7, 2019

What type of PR is this?
/kind test

What this PR does / why we need it:
This fixes flake in TestCreateOrUpdate https://circleci.com/gh/kudobuilder/kudo/4560?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

As we're using controller-runtime client that has cache built in it can happen, that Get returns no instance but we can no longer create that entity because it exists. I think we should always retry such cases as at one point the cache gets populated and we will hit the update branch and everything will end as success :)

Which issue(s) this PR fixes:

Fixes #639

Does this PR introduce a user-facing change?:

NONE

@kudo-ci
Copy link

kudo-ci commented Aug 7, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alenkacz

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jbarrick-mesosphere
Copy link
Member

/lgtm

🤦‍♂️ I don't know why I thought this would be more complicated

@kudo-ci kudo-ci added the lgtm label Aug 7, 2019
@kudo-ci kudo-ci merged commit 6f7ba7a into master Aug 7, 2019
@kudo-ci kudo-ci deleted the av/fix-flake-createorupdate branch August 7, 2019 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Seeing flakes due to already existing resources
3 participants