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

Golang E2E in Openshift API-CI #1384

Merged
merged 33 commits into from
Jul 17, 2019

Conversation

AlexNPavel
Copy link
Contributor

This is currently a WIP for a POC to allow us to run the entire golang E2E suite in openshift-ci with the exception of the image building part of operator-sdk build, which can be replaced with comprehensive unit tests.

@AlexNPavel AlexNPavel added the area/testing Issue related to testing the operator-sdk and subcomponents label May 3, 2019
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 3, 2019
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 3, 2019
@AlexNPavel AlexNPavel force-pushed the e2e-prow branch 25 times, most recently from cb1f293 to dedea01 Compare May 9, 2019 22:48
@AlexNPavel
Copy link
Contributor Author

This has been fully retested and is ready to be reviewed again. Corresponding openshift/release PR to enable tests: openshift/release#4031

Copy link
Contributor

@hasbro17 hasbro17 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -47,7 +47,7 @@ func Become(ctx context.Context, lockName string) error {

ns, err := k8sutil.GetOperatorNamespace()
if err != nil {
if err == k8sutil.ErrNoNamespace {
if err == k8sutil.ErrNoNamespace || err == k8sutil.ErrRunLocal {
Copy link
Contributor

Choose a reason for hiding this comment

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

One question: At this point is there ever a case where err == k8sutil.ErrNoNamespace and err != k8sutil.ErrRunLocal?

Looking at the errors returned by cluster specific functions such as initOperatorService() and GetOperatorNamespace(), GetOperatorName() it seems they will all return ErrRunLocal if running locally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If a user is using our commands, ErrNoNamespace probably shouldn't be hit since we manually force the run mode. I do assume it's possible if a user manually runs it themselves with go run cmd/manager/main.go.

@AlexNPavel
Copy link
Contributor Author

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 15, 2019
Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

One suggestion on refactoring then LGTM.

Copy link
Member

@estroz estroz 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 Jul 16, 2019
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 16, 2019
Copy link
Member

@lilic lilic left a comment

Choose a reason for hiding this comment

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

Overall lgtm, couple of questions.

Copy link
Member

@lilic lilic 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 Jul 16, 2019
@openshift-ci-robot
Copy link

New changes are detected. LGTM label has been removed.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 16, 2019
@AlexNPavel
Copy link
Contributor Author

/retest

1 similar comment
@AlexNPavel
Copy link
Contributor Author

/retest

@shawn-hurley shawn-hurley dismissed their stale review July 17, 2019 12:37

old and out of date

@AlexNPavel AlexNPavel merged commit 1ee9386 into operator-framework:master Jul 17, 2019
@AlexNPavel AlexNPavel deleted the e2e-prow branch July 17, 2019 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Issue related to testing the operator-sdk and subcomponents 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.

7 participants