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 operator-in-operator test #799

Merged
merged 1 commit into from
Sep 12, 2019
Merged

Fix flake in operator-in-operator test #799

merged 1 commit into from
Sep 12, 2019

Conversation

alenkacz
Copy link
Contributor

The flakes I have seen were all in operator-in-operator test. The reason for them was that in this PR 47e7da7 I have moved code to create PE relation to instance controller, but that means that we need to make sure that reconciliation is triggered not only after PE is created but also after PE is linked to instance. That was not happening for the instance in instance example because I was triggering reconcile only for the outer instance.

Fixes #766

} else {
log.Printf("PlanExecutionController: received event from Instance %s/%s but instance of that name does not exist", a.Meta.GetNamespace(), a.Meta.GetName())
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the diff is really weird, but the only change is that I removed the if len(requests) == 0 and now I trigger it for inner as well as outer all the time. More the merrier, right! :D .

But I really saw that in the test logs, that we missed triggering reconciliation for the inner instance and because of that the plan never finished.

@kudo-ci
Copy link

kudo-ci commented Sep 11, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alenkacz, kensipe

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

@alenkacz alenkacz merged commit 80a9972 into master Sep 12, 2019
@kudo-ci kudo-ci deleted the av/fix-flake-oio branch September 12, 2019 07:17
kensipe pushed a commit that referenced this pull request Sep 12, 2019
kensipe added a commit that referenced this pull request Sep 12, 2019
* Fix flake in operator-in-operator test (#799)
* brew is deprecated and replaced by a brews list (#771)
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.

Increased flakiness on master
3 participants