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

wait for group cache in templateinstance tests #17009

Merged
merged 2 commits into from
Oct 23, 2017

Conversation

jim-minter
Copy link
Contributor

fixes #16654

(builds on #16979)

@gabemontero fyi

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 23, 2017
@gabemontero
Copy link
Contributor

So is a fair summary:

  1. validation had to be augmented to deal with garbage collection mutation of the object based on the client it uses and by extension the serialization used
  2. extended tests needed to be augmented to better ensure data was in fact deleted between one test run and the next

thanks

@jim-minter
Copy link
Contributor Author

@gabemontero I think there were three issues causing flakes:

  1. not waiting for group cache to sync after changing group memberships (affected two tests, causing permissions problems)
    2a) not waiting for cascading deletion to complete before trying to reinstantiate an identical object (caused rare unexpected AlreadyExists errors)
    2b) GC sometimes reordered json fields when removing the finaliser on the templateinstance, causing the update to be rejected by the api server, causing knock-on strangeness to happen on cascaded deletion (hence changes to validation logic)

2a 2b are already on the merge queue at #16979, this just builds upon that commit.

@gabemontero
Copy link
Contributor

gabemontero commented Oct 23, 2017 via email

@stevekuznetsov
Copy link
Contributor

/test origin-ut

@bparees
Copy link
Contributor

bparees commented Oct 23, 2017

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 23, 2017
@bparees bparees added the kind/bug Categorizes issue or PR as related to a bug. label Oct 23, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bparees, jim-minter

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 23, 2017
@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue (batch tested with PRs 17007, 17003, 17001, 17009).

@openshift-merge-robot openshift-merge-robot merged commit 05d2e14 into openshift:master Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
6 participants