Skip to content

wait for group cache in templateinstance tests#17009

Merged
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
jim-minter:issue16654
Oct 23, 2017
Merged

wait for group cache in templateinstance tests#17009
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
jim-minter:issue16654

Conversation

@jim-minter
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

gabemontero commented Oct 23, 2017 via email

@stevekuznetsov
Copy link
Copy Markdown
Contributor

/test origin-ut

@bparees
Copy link
Copy Markdown
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
Copy Markdown
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.

Details 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
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

[Conformance][templates] templateinstance impersonation tests should pass impersonation creation tests [Suite:openshift/conformance/parallel]

6 participants