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

Use a differently-named DC in test/cmd/idle.sh #12590

Merged

Conversation

DirectXMan12
Copy link
Contributor

This should "fix" a long-running issue involving flakes due to
creation/deletion of DCs with the same name in said tests by making sure
that the "old" DC won't accidentally interfere with the new DC.

Partial for #11004

This should "fix" a long-running issue involving flakes due to
creation/deletion of DCs with the same name in said tests by making sure
that the "old" DC won't accidentally interfere with the new DC.

Partial for openshift#11004
@DirectXMan12
Copy link
Contributor Author

cc @smarterclayton

@smarterclayton
Copy link
Contributor

[test]

2 similar comments
@smarterclayton
Copy link
Contributor

[test]

@smarterclayton
Copy link
Contributor

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 0bf1beb

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13149/) (Base Commit: e478226)

@smarterclayton
Copy link
Contributor

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 0bf1beb

@openshift-bot
Copy link
Contributor

openshift-bot commented Jan 22, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13156/) (Base Commit: 6e9d68d) (Image: devenv-rhel7_5748)

@openshift-bot openshift-bot merged commit 7a892fe into openshift:master Jan 22, 2017
@smarterclayton
Copy link
Contributor

Well, this apparently did not fix it.

os::cmd::expect_success 'oc create -f test/extended/testdata/idling-echo-server.yaml'
os::cmd::expect_success 'oc describe deploymentconfigs idling-echo'
os::cmd::expect_success 'oc create -f test/testdata/idling-svc-route.yaml'
dc_name=$(basename $(oc create -f test/testdata/idling-dc.yaml -o name)) # `basename type/name` --> name
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not particularly happy with this. In a follow-up we should either:

  • pass it in through a template
  • grab it using jsonpath from the metadata

Copy link
Contributor Author

Choose a reason for hiding this comment

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

-o name is the only supported flag here. We could grab the resource/name with -o name and then extract it using oc get $(resource_with_name) -o go-template=sometemplate or somesuch, but that seems a bit redundant.

Passing it through a template seems like a decent idea, though.

@DirectXMan12 DirectXMan12 deleted the test-bug/idle-cmd-new-name branch January 23, 2017 16:13
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.

None yet

4 participants