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

cmd test flake: 0-length response instead of expected timeout #15453

Closed
miminar opened this issue Jul 25, 2017 · 7 comments
Closed

cmd test flake: 0-length response instead of expected timeout #15453

miminar opened this issue Jul 25, 2017 · 7 comments
Assignees
Labels
area/tests component/auth kind/test-flake Categorizes issue or PR as related to test flakes. priority/P2

Comments

@miminar
Copy link

miminar commented Jul 25, 2017

=== BEGIN TEST CASE ===
test/cmd/timeout.sh:19: executing 'oc login -u testuser -p test --request-timeout=1ns' expecting failure and text 'Timeout exceeded while awaiting headers'
FAILURE after 0.356s: test/cmd/timeout.sh:19: executing 'oc login -u testuser -p test --request-timeout=1ns' expecting failure and text 'Timeout exceeded while awaiting headers': the output content test failed
There was no output from the command.
Standard error from the command:
error: 0-length response
=== END TEST CASE ===

Happened in job https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/3449/testReport/junit/github/com_openshift_origin_test_cmd_request-timeout/test_cmd_timeout_sh_19__executing__oc_login__u_testuser__p_test___request_timeout_1ns__expecting_failure_and_text__Timeout_exceeded_while_awaiting_headers_/

@simo5
Copy link
Contributor

simo5 commented Aug 15, 2017

@abstractj can you look into this one ?

@abstractj
Copy link
Contributor

@simo5 sure!

@abstractj
Copy link
Contributor

@miminar is this URL correct? I'm getting 404 when trying to access the report.

@miminar
Copy link
Author

miminar commented Aug 16, 2017

@abstractj unfortunately the test results don't survive long. The latest accessible run is 3481 as of now (not mentioning anomaly 1​25​0).

@abstractj
Copy link
Contributor

abstractj commented Aug 16, 2017

@miminar thank you, I finally managed to reproduce the issue

Code to reproduce the issue:

#!/bin/sh

# Cleanup cluster resources created by this test
(
set +e
oc delete all,templates --all
exit 0
) &>/dev/null


oc new-app node

while true; do
   oc login -u testuser -p test --request-timeout=1ns 2>> log.txt &
   if grep -q "error" "log.txt"; then
     echo "Error found...leaving"
     exit 1
   fi
done

@abstractj abstractj assigned juanvallejo and unassigned simo5 Aug 18, 2017
@abstractj
Copy link
Contributor

@juanvallejo I will definitely need your help on this. It seems something really tricky to debug.

openshift-merge-robot added a commit that referenced this issue Sep 6, 2017
Automatic merge from submit-queue (batch tested with PRs 15885, 15973, 16000)

cmd test flake: 0-length response instead of expected timeout

It looks like this issue is related with HEAD request that we do. By
changing it to send HTTP GET requests to our /healthz endpoint seems
to fix the issue.

Signed-off-by: Bruno Oliveira <[email protected]>

@juanvallejo @fabianofranz it seems to fix the issue #15453
@juanvallejo
Copy link
Contributor

Fixed in #15885

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

No branches or pull requests

4 participants