Skip to content

Ensure the test deployment invariant is maintained - #9839

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
smarterclayton:fix_test_deployment
Jul 14, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
smarterclayton:fix_test_deployment

Conversation

@smarterclayton

Copy link
Copy Markdown
Contributor

Update scale for deployment while also setting next phase.

Fixes #9195 [test]

if deployment.Spec.Replicas != 0 {
switch nextStatus {
case deployapi.DeploymentStatusComplete, deployapi.DeploymentStatusFailed:
if config, err := deployutil.DecodeDeploymentConfig(deployment, c.codec); err == nil && config.Spec.Test {

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.

This is getting annoying. Can't we just add a test annotation in the deployment when it's created? Then you wouldn't need to deserialize at all... and it's all over the place in this controller.

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.

Update scale for deployment while also setting next phase.
@smarterclayton

Copy link
Copy Markdown
Contributor Author

Comment addressed, [merge]

@0xmichalis

Copy link
Copy Markdown
Contributor

Back to the first one

• Failure [20.435 seconds]
deploymentconfigs
/data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:554
  with test deployments
  /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:255
    should run a deployment to completion and then scale to zero [Conformance] [It]
    /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:254

    Expected
        <string>: --> pre: Running hook pod ...
        test pre hook executed
        --> pre: Success
        --> Scaling deployment-test-1 to 2
        --> Waiting up to 10m0s for pods in deployment deployment-test-1 to become ready
    to contain substring
        <string>: --> Success

    /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:211
------------------------------

We may want to use the failure trap for this test.

@smarterclayton

Copy link
Copy Markdown
Contributor Author
Extended.deploymentconfigs with test deployments should run a deployment to completion and then scale to zero [Conformance] (from (conformance_parallel_01.xml))

/data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:254
Expected
    <string>: --> pre: Running hook pod ...
    test pre hook executed
    --> pre: Success
    --> Scaling deployment-test-1 to 2
    --> Waiting up to 10m0s for pods in deployment deployment-test-1 to become ready
to contain substring
    <string>: --> Success

I think this is #9775

@smarterclayton

Copy link
Copy Markdown
Contributor Author

[test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 74a5893

@openshift-bot

Copy link
Copy Markdown
Contributor

@smarterclayton

Copy link
Copy Markdown
Contributor Author

[merge] and will switch to failure trap later

@openshift-bot

openshift-bot commented Jul 14, 2016 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6293/) (Image: devenv-rhel7_4594)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 74a5893

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants