-
Notifications
You must be signed in to change notification settings - Fork 132
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
Print console output for pytest to give context for timeouts #118
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the reason for removing this is that the junit files end up empty if we don't capture:
ament/ament_tools@a3a9584.
Before this PR all the non-timed out jobs had content in the result file: http://ci.ros2.org/view/nightly/job/nightly_linux_debug/655/testReport/composition.build.composition/test_composition__rmw_fastrtps_cpp_Debug/test_api_pubsub_composition/
With this PR they end up empty: http://ci.ros2.org/job/ci_windows/3678/testReport/composition.build.composition/test_composition__rmw_connext_cpp_Release/test_api_pubsub_composition/
So I think we need to find another way (dont know which one) to get content in the result files and console output if timeout
Hmm ok, you're right. If we desperately want this, then the passing tests do have their output captured: http://ci.ros2.org/job/ci_windows/3678/testReport/(root)/projectroot/test_composition__rmw_connext_cpp/ |
I was more concerned about failing tests (before timeout) rather than passing tests (even if it's always good to have result files for all of them). I couldnt find a test failing without timeout in the job you posted that's why I picked a passing one. Do you know if the result files are empty for failing tests as well? I think it could be fine for jenkins display as each test output can be accessed fairly easily. For the case of running local tests It'll be more of a pain as the result files will be empty and people will need to browse their console output to figure out why a specific test fail without having to rerun only that test. We could conclude (for now) that having console output for all tests in Jenkins outweigh the lack of content in the result files. I'll place this in progress for now |
FYI the What if we add the |
Otherwise tests are killed when they time out (instead of fail) and their output is not shown in reports
fc98a49
to
7b0b2d1
Compare
Closing due to no activity. Also just skipping capturing isn't the right solution anyway. |
Otherwise tests that timeout (as opposed to failing) are killed when they time out and their output is not shown in reports
This is the pytest equivalent of #98
Timeout without this PR: http://ci.ros2.org/view/nightly/job/nightly_linux_repeated/841/testReport/junit/(root)/projectroot/test_composition__rmw_fastrtps_cpp/
Timeout with this PR:
http://ci.ros2.org/job/ci_windows/3678/testReport/junit/(root)/projectroot/test_composition__rmw_fastrtps_cpp/ (you can see the output)