Skip to content

Template test fixes - #15966

Merged
openshift-merge-robot merged 5 commits into
openshift:masterfrom
jim-minter:template-test-fixes
Aug 26, 2017
Merged

openshift-merge-robot merged 5 commits into
openshift:masterfrom
jim-minter:template-test-fixes

Conversation

@jim-minter

@jim-minter jim-minter commented Aug 24, 2017 •

Copy link
Copy Markdown
Contributor
  • add all template tests to Conformance
  • don't use persistent templates for templateservicebroker tests
  • additional template instance controller readiness checking testing
  • increase tsb loglevel in extended tests

fixes #15912
fixes #15961

@openshift-merge-robot openshift-merge-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 24, 2017
@bparees

bparees commented Aug 24, 2017

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 24, 2017
@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 24, 2017
@bparees

bparees commented Aug 24, 2017

Copy link
Copy Markdown
Contributor
/tmp/openshift/build-rpm-release/tito/rpmbuild-originp4Agh_/BUILD/origin-3.7.0/_output/local/go/src/github.com/openshift/origin/test/extended/templates/templateinstance_readiness.go:142
Expected error:
    <*errors.errorString | 0xc4211bcbd0>: {
        s: "templateinstance unexpectedly reported failure",
    }
    templateinstance unexpectedly reported failure
not to have occurred
/tmp/openshift/build-rpm-release/tito/rpmbuild-originp4Agh_/BUILD/origin-3.7.0/_output/local/go/src/github.com/openshift/origin/test/extended/templates/templateinstance_readiness.go:141

@bparees

bparees commented Aug 25, 2017

Copy link
Copy Markdown
Contributor

/retest

@jim-minter
jim-minter force-pushed the template-test-fixes branch from 3f43989 to 517f7c3 Compare August 25, 2017 16:34
@openshift-merge-robot openshift-merge-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2017
@jim-minter
jim-minter force-pushed the template-test-fixes branch from 517f7c3 to 3cb67fb Compare August 25, 2017 16:40
@bparees

bparees commented Aug 25, 2017

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2017
@openshift-merge-robot openshift-merge-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2017
@bparees

bparees commented Aug 26, 2017

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2017
@jim-minter
jim-minter force-pushed the template-test-fixes branch from 82628e9 to 3ddb369 Compare August 26, 2017 01:11
@openshift-merge-robot openshift-merge-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2017
@bparees

bparees commented Aug 26, 2017

Copy link
Copy Markdown
Contributor

/lgtm
thanks for the readme update.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2017
@bparees

bparees commented Aug 26, 2017

Copy link
Copy Markdown
Contributor

@jim-minter i've optimistically marked this PR as fixing #15912 and #15961 based on your comments and our discussion.

feel free to edit if you disagree/plan on further investigation.

@stevekuznetsov

Copy link
Copy Markdown
Contributor

add all template tests to Conformance

So we don't need a special job anymore?

@jim-minter
jim-minter force-pushed the template-test-fixes branch from 3ddb369 to 3f68b9d Compare August 26, 2017 04:47
@openshift-merge-robot openshift-merge-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2017
@jim-minter

Copy link
Copy Markdown
Contributor Author

Was all green bar hitting the limit on generated bindata -- after rebase. Pushed. Don't mind seeing this go through its tests twice, frankly.

@bparees

bparees commented Aug 26, 2017

Copy link
Copy Markdown
Contributor

So we don't need a special job anymore?

right, once this goes through we'll be deleting that job.

@bparees

bparees commented Aug 26, 2017

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 26, 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

Copy link
Copy Markdown
Contributor

/test all [submit-queue is verifying that this PR is safe to merge]

@jim-minter

Copy link
Copy Markdown
Contributor Author

/retest

@bparees

bparees commented Aug 26, 2017 via email

Copy link
Copy Markdown
Contributor

@openshift-merge-robot

Copy link
Copy Markdown
Contributor

/test all [submit-queue is verifying that this PR is safe to merge]

@openshift-merge-robot

Copy link
Copy Markdown
Contributor

Automatic merge from submit-queue

@openshift-merge-robot
openshift-merge-robot merged commit d029a8e into openshift:master Aug 26, 2017
@stevekuznetsov

Copy link
Copy Markdown
Contributor

@jim-minter @bparees will you be able to make a PR to remove the template test?

@bparees

bparees commented Aug 28, 2017

Copy link
Copy Markdown
Contributor

@stevekuznetsov yeah, i think so. may need a reminder of all the bits that need to change for SQ though.

}
configPath := exutil.FixturePath("..", "..", "examples", "templateservicebroker", "templateservicebroker-template.yaml")

err := tsbOC.AsAdmin().Run("new-app").Args(configPath, "-p", "LOGLEVEL=4", "-p", "NAMESPACE="+tsbOC.Namespace()).Execute()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was surprised to find this change rebasing another pull. oc cluster up and the ansible installer will use the predictable behavior of oc process and either oc create or oc apply. Neither will use oc new-app. This seems like the kind of drift that @bparees was concerned about before. Why make this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There were several areas in this routine which I believe were problematic, including the one which I believe which was responsible for the test failures we were seeing last week. In the process of aiming to fix all the areas I identified, I also made the decision to use oc new-app here to reduce lines of code and to match what is done in many other tests owned by devex.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@deads2k and I discussed this at lunch. I don't know if he's convinced but i'm ok with this. I'm worried about drift in the files being used to deploy the TSB (the ansible installer has an extra file that's not used here so things can get out of sync), i'm not so concerned that we're using two different "template instantiation" mechanisms since if we have critical differences in how templates get instantiated w/ one mechanism vs another, we have bigger problems.

@stevekuznetsov

Copy link
Copy Markdown
Contributor

@bparees nvm I took care of it

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. 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.

template service broker e2e flakes [Conformance][templates] templateservicebroker security test

6 participants