Skip to content

Conversation

@SamiSousa
Copy link

@SamiSousa SamiSousa commented Mar 6, 2019

  • Changed OperatorHub test to check for OwnNamespace installmode
    rather than AllNamespaces
  • Updated namespace to "default" to match the new install namespace

The etcd operator in community-operators changed late last week,
replacing AllNamespaces functionality with SingleNamespace.
This puts a bandaid on the issue.
Operators in community-operators can change frequently, and
because of this OperatorHub tests will be unstable when relying on
external content.

/cc @galletti94 @jeff-phillips-18 @spadgett @dtaylor113

This will help tests pass for now, but it's not a long-term solution. I suggest we either use a separate quay namespace with stable operator bundles and add that as a "Custom" OperatorSource during this test, or possibly figure out installmodes on the fly.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 6, 2019
@gallettilance
Copy link
Contributor

/retest

@gallettilance
Copy link
Contributor

@spadgett I think this is why all the tests were failing. Thanks @SamiSousa for catching this!

@gallettilance
Copy link
Contributor

/retest

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 6, 2019
@spadgett
Copy link
Member

spadgett commented Mar 6, 2019

/retest

2 similar comments
@SamiSousa
Copy link
Author

/retest

@SamiSousa
Copy link
Author

/retest

@SamiSousa
Copy link
Author

operator Build image console from the repository 0.37s
Command: go run hack/e2e.go -v -test --test_args='--ginkgo.focus=operator\sBuild\simage\sconsole\sfrom\sthe\srepository$'

could not wait for build: the build console failed with reason DockerBuildFailed: Docker build strategy has failed.

[94] ./node_modules/cache-loader/dist/cjs.js!./node_mo...ader.js??ref--6-5!./public/vendor.scss 1.06 MiB {0} [built]
        + 94 hidden modules
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error: build error: running './build.sh' failed with exit code 1

@spadgett
Copy link
Member

spadgett commented Mar 6, 2019

/retest

@SamiSousa SamiSousa force-pushed the operator-hub-tests branch from 7585dfc to 5d2885d Compare March 6, 2019 18:19
@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Mar 6, 2019
Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/lgtm

@spadgett
Copy link
Member

spadgett commented Mar 6, 2019

@SamiSousa OperatorHub tests failed :(

@spadgett
Copy link
Member

spadgett commented Mar 6, 2019

/retest

@SamiSousa
Copy link
Author

@spadgett The OperatorHub and OLM test suites passed for me when I created the PR this morning, launching a new cluster to double check now.

- Changed OperatorHub test to check for OwnNamespace installmode
  rather than AllNamespaces
- Updated namespace to match testName for single namespace install
- Added views for selecting namespace on Subscription page

The etcd operator in community-operators changed late last week,
replacing AllNamespaces functionality with SingleNamespace.
This puts a bandaid on the issue.
Operators in community-operators can change frequently, and
because of this OperatorHub tests will be unstable when relying on
external content.
@SamiSousa SamiSousa force-pushed the operator-hub-tests branch from 5d2885d to 0805b1e Compare March 6, 2019 23:05
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Mar 6, 2019
@SamiSousa
Copy link
Author

Updated tests to use testName as the namespace rather than default, and added some views for the Subscription page to help with selecting namespace for the SingleNamespace installMode.

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/lgtm

export const createSubscriptionFormBtn = element(by.buttonText('Subscribe'));
export const createSubscriptionFormInstallMode = element(by.cssContainingText('label', 'Installation Mode'));

export const installNamespaceDropdown = $('.dropdown--full-width');
Copy link
Member

Choose a reason for hiding this comment

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

We might give this a more descriptive ID than we're currently using in the form, and then we can select the right dropdown by ID here.

Don't worry about this if the PR passes tests, though. We need to unblock the queue.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 6, 2019
@spadgett
Copy link
Member

spadgett commented Mar 7, 2019

Tests are green!

@openshift-merge-robot openshift-merge-robot merged commit 960e3d8 into openshift:master Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants