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

Test Timeout: test/cmd/observe.sh:22: executing 'oc observe services --once --all-namespaces' #12930

Closed
stevekuznetsov opened this issue Feb 12, 2017 · 11 comments
Assignees
Labels
component/cli kind/test-flake Categorizes issue or PR as related to test flakes. priority/P0

Comments

@stevekuznetsov
Copy link
Contributor

Looks like this:

00:47:51.777 Running test/cmd/observe.sh:22: executing 'oc observe services --once --all-namespaces' expecting success and text 'default kubernetes'...
05:54:44.989 Connection to 172.18.7.33 closed by remote host.
05:54:44.993 Build step 'Execute shell' marked build as failure

We should add a client timeout

@juanvallejo
Copy link
Contributor

juanvallejo commented Feb 13, 2017

@stevekuznetsov would the --exit-after flag not work here?

cc @smarterclayton

@stevekuznetsov
Copy link
Contributor Author

No, I don't think so -- that exits with a successful result code, and we want the test to fail if it times out.

@juanvallejo
Copy link
Contributor

since updating --exit-after to timeout with a non-zero exit code would break scripts / change behavior of the flag unexpectedly, I can open a PR that adds a second flag --timeout-after which would exit with 1 after the specified duration. If a second timeout flag is non-ideal, we could introduce a new option --signal which would override the 0 exit code of --exit-after

@smarterclayton
Copy link
Contributor

smarterclayton commented Feb 14, 2017 via email

@stevekuznetsov
Copy link
Contributor Author

@juanvallejo this is a particularly nasty test failure ... not sure I understand why the prio downgrade happened.

@smarterclayton I suggested to @juanvallejo to just change this to os::cmd ... "timeout oc observe ... " -- I understand what you mean about the failure cause here, but we cannot have this run for five hours. Give it a ten minute window and then give up.

@smarterclayton
Copy link
Contributor

smarterclayton commented Feb 14, 2017 via email

@stevekuznetsov
Copy link
Contributor Author

Right, but 6h long merge queue execution intervals don't bode well for the merge queue leading up to feature complete. If you think we should live with the pain while we figure out the flake, sure. I'm not in agreement but at least if it's painful it will be higher priority to look at.

I also saw this in:
https://ci.openshift.redhat.com/jenkins/job/test_job/3/console

@smarterclayton
Copy link
Contributor

smarterclayton commented Feb 15, 2017 via email

@stevekuznetsov
Copy link
Contributor Author

Then we get corrupted test output and no XML. Do we want that?

@smarterclayton
Copy link
Contributor

Timeout won't tell you what the actual problem is - if that's the point here, add something to panic child processes. Whatever issue this is isn't going to be found by granular timeouts.

@juanvallejo
Copy link
Contributor

closing via #12980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cli kind/test-flake Categorizes issue or PR as related to test flakes. priority/P0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants