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

Added debugging information to os::cmd output content test #9742

Merged

Conversation

stevekuznetsov
Copy link
Contributor

First commit addresses tech debt, second adds debugging

@liggitt PTAL

@@ -4,97 +4,97 @@

# expect_success runs the cmd and expects an exit code of 0
function os::cmd::expect_success() {
if [[ $# -ne 1 ]]; then echo "os::cmd::expect_success expects only one argument, got $#"; exit 1; fi
local cmd=$1
if [[ $# -ne 1 ]]; then echo "os::cmd::expect_success expects only one argument, got $#"; exit 1; fi
Copy link
Contributor

Choose a reason for hiding this comment

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

why spaces? tabs are better

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 can't quite remember where the original problems were, but when editors pick up that tabs are used in a file they default <tab> key to be '\t' ... and then everyone begins using tabs for alignment instead of only indentation. Since Bash is often really really annoying to look at without the correct alignment of things, this was a PITA for me. I agree that the best approach is tabs for indentation and spaces for alignment ... but in practice it doesn't seem like that's possible.

@stevekuznetsov
Copy link
Contributor Author

@liggitt WDYT?

@liggitt
Copy link
Contributor

liggitt commented Jul 12, 2016

debugging commit looks fine

@stevekuznetsov stevekuznetsov force-pushed the skuznets/debug-output branch from 1a862b6 to 69a4085 Compare July 14, 2016 13:11
@stevekuznetsov
Copy link
Contributor Author

xref #9371

@liggitt @deads2k whoever wants lets merge this in so I can work on that flake

@liggitt
Copy link
Contributor

liggitt commented Jul 14, 2016

[merge]

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 69a4085

@openshift-bot
Copy link
Contributor

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

@stevekuznetsov
Copy link
Contributor Author

flake in e2e:

Running test/end-to-end/core.sh:21: executing 'oc get -n test pods -l name=database' expecting any result and text 'Running'; re-trying every 0.2s until completion or 60.000s...
FAILURE after 59.988s: test/end-to-end/core.sh:21: executing 'oc get -n test pods -l name=database' expecting any result and text 'Running'; re-trying every 0.2s until completion or 60.000s: the command timed out
There was no output from the command.
There was no error output from the command.

while I search for the issue... @liggitt please re-tag?

@liggitt
Copy link
Contributor

liggitt commented Jul 14, 2016

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 69a4085

@openshift-bot
Copy link
Contributor

openshift-bot commented Jul 14, 2016

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

@stevekuznetsov
Copy link
Contributor Author

conformance flaked on #9866

@liggitt please re-tag

@openshift-bot openshift-bot merged commit ed90939 into openshift:master Jul 14, 2016
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