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(e2e): make operator group test more robust #603

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

jpeeler
Copy link

@jpeeler jpeeler commented Dec 5, 2018

This PR should be the last of the operator group related PRs since it pulls in fixes from other PRs (and should be rebased on top of them after they get merged). FWIW, some of the lack of robustness here is due to resources unexpectedly existing from other tests.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 5, 2018
@@ -388,6 +388,7 @@ func (a *Operator) ensureClusterRoles(op *v1alpha2.OperatorGroup) error {
},
Rules: apiEditPolicyRules,
}
//ownerutil.AddNonBlockingOwner(operatorGroupEditClusterRole, csv)
Copy link
Author

Choose a reason for hiding this comment

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

I'm wondering if this would be good to have?

Copy link
Member

Choose a reason for hiding this comment

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

Right now, this is useful for requeuing owner CSV.

@@ -116,10 +116,11 @@ func TestOperatorGroup(t *testing.T) {
require.NoError(t, err)

t.Log("Creating CRD")
mainCRDPlural := genName("ins")
apiGroup := "cluster.com"
mainCRDPlural := genName("opgroup")
Copy link
Member

Choose a reason for hiding this comment

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

👍

@jpeeler
Copy link
Author

jpeeler commented Dec 5, 2018

#588 would be a good candidate to go in first, but maybe nothing else is needed.

@jpeeler jpeeler force-pushed the operator-group-robust branch from 36dffd8 to 630721d Compare December 6, 2018 15:41
This checks rbac rules more carefully and adds polling to make the test
more robust.
@jpeeler jpeeler force-pushed the operator-group-robust branch from 630721d to 42a4912 Compare December 6, 2018 18:34
@jpeeler
Copy link
Author

jpeeler commented Dec 6, 2018

/test e2e-aws

@openshift-ci-robot
Copy link
Collaborator

@jpeeler: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-aws 42a4912 link /test e2e-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ecordell
Copy link
Member

ecordell commented Dec 6, 2018

/approve
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 6, 2018
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ecordell

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 6, 2018
@ecordell ecordell merged commit 8429cb3 into operator-framework:master Dec 6, 2018
ecordell added a commit to ecordell/operator-lifecycle-manager that referenced this pull request Mar 8, 2019
…-robust

fix(e2e): make operator group test more robust
@njhale njhale added the kind/bug Categorizes issue or PR as related to a bug. label Mar 19, 2019
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.

4 participants