Open surajssd opened 7 years ago
big +1 it is impossible to find anything useful in current output. verbose output should be dumped only if there is an error
PR updated here: https://github.com/kedgeproject/kedge/pull/388
semaphore e2e tests are still verbose. It is really hard to find out why the test is failing in all that input.
I really like go test
behavior, if everything is ok, it just prints OK
and nothing more. If the test fails that verbose output is shown, but only for failed tests.
We should do the same for our e2e tests
@kadel I think the verbose mode in CI is intentional. Could be changed if you'd like.
We should also clean up errors, that are actually not errors, like showing
0: dial tcp 192.168.122.112:31850: getsockopt: connection refused
e2e_test.go:217: error while making http request "http://192.168.122.112:31850" for service "web:80", err: Get http://192.168.122.112:31850: dial tcp 192.168.122.112:31850: getsockopt: connection refused
while waiting for pods to come up. Technically this is not error. An error means that something went wrong that is permanent and it can't be recovered from. This is error only when it times up.
Based on the discussion here, we should move from verbose mode of running e2e tests to running tests in normal mode. We don't necessarily need verbose because golang test suite will dump the output of the failed test anyway if any test fails.