Skip to content

extended: refactor deployment test to be more debuggable #9686

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

Merged
merged 1 commit into from
Jul 6, 2016
Merged

extended: refactor deployment test to be more debuggable #9686

merged 1 commit into from
Jul 6, 2016

Conversation

0xmichalis
Copy link
Contributor

Will help in debugging #9681

@smarterclayton

@0xmichalis
Copy link
Contributor Author

[testextended][extended:core(iteratively)]

err = wait.PollImmediate(500*time.Millisecond, 10*time.Second, condition)
printDebugInfo(err, oc, name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of needing printDebugInfo, why not have the condition include this info in the error? Or have the failure trap print it out? both of those are more readable and easier to reuse.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cannot see the debug info from the failure trap on the test above working, probably because the test is not returning but the test framework exits without running the defer? We probably need an AfterEach handler.

@0xmichalis 0xmichalis changed the title extended: refactor deployment test to be more debugable extended: refactor deployment test to be more debuggable Jul 4, 2016
@0xmichalis
Copy link
Contributor Author

@smarterclayton I've verified that the failure trap now works, PTAL

o.Expect(err).NotTo(o.HaveOccurred())

g.By(fmt.Sprintf("by checking that the first deployer was deleted and the second deployer exists"))
condition = func() (bool, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks better embedded in the wait function (same as above)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@openshift-bot
Copy link
Contributor

Evaluated for origin testextended up to 72387fa

@smarterclayton
Copy link
Contributor

Lgtm [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 72387fa

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/testextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin_extended/287/) (Extended Tests: core(iteratively))

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 72387fa

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/5814/)

@openshift-bot openshift-bot merged commit 128e499 into openshift:master Jul 6, 2016
@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/5817/)

@0xmichalis 0xmichalis deleted the test-flake-debug branch July 6, 2016 07:30
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