Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Nightly Windows failed many tests using the launcher #200

Closed
clalancette opened this issue May 17, 2019 · 7 comments
Closed

Nightly Windows failed many tests using the launcher #200

clalancette opened this issue May 17, 2019 · 7 comments
Assignees

Comments

@clalancette
Copy link

Many of the tests in the latest Windows nightly failed: https://ci.ros2.org/view/nightly/job/nightly_win_deb/1253/#showFailuresLink

There are some failures there because it failed to resolve a symbol; those are fixed by ros2/rmw_connext#355 and ignored here. Of the remaining failures, most of them look like they failed to find rclpy._rclpy while launching:

 - C:/Python37/python.exe -m launch_testing.launch_test C:/J/workspace/nightly_win_deb/ws/build/image_tools/test_showimage_cam2image__rmw_connext_cpp_Debug.py --junit-xml=C:/J/workspace/nightly_win_deb/ws/build/image_tools/test_results/image_tools/test_showimage_cam2image__rmw_connext_cpp.xunit.xml --package-name=image_tools
usage: launch_test.py [-h] [--package-name PACKAGE_NAME] [-v] [-s] [-i]
                      [--junit-xml XMLPATH]
                      launch_test_file
                      [launch_arguments [launch_arguments ...]]
launch_test.py: error: No module named 'rclpy._rclpy'
-- run_test.py: return code 2

(the direct link to the failing test is https://ci.ros2.org/view/nightly/job/nightly_win_deb/1253/testReport/junit/(root)/projectroot/test_showimage_cam2image__rmw_connext_cpp/). @hidmic I'm assigning to you, but feel free to delegate as needed.

@nuclearsandwich
Copy link
Member

I can reproduce this on a Windows Server machine but I haven't figured out what's happening. My first reproduction of this issue was Tuesday 2019-05-07 but because no one else had seen it I assumed that it was a local configuration issue. I can build in Release configuration on the same host.

@jacobperron
Copy link
Member

It would appear that the tests are not being invoked with the right Python executable.
For example, if I call a test with python_d, then the test runs without error:

python_d build\image_tools\test_showimage_cam2image__rmw_fastrtps_cpp_Debug.py

I'm not sure exactly where to fix this yet, any pointers are welcome.

@nuclearsandwich
Copy link
Member

So my issue is different from the one in CI (and that @jacobperron has reproduced) since I can't run python_d and then import rclpy._rclpy as @jacobperron can. I also accessed last night's nightly_win_deb workspace on Windshield and verified that I can import it there using the python_d prompt.

@clalancette
Copy link
Author

This still failed over the weekend: https://ci.ros2.org/view/nightly/job/nightly_win_deb/1255/#showFailuresLink

@nuclearsandwich
Copy link
Member

#239 was merged on Sunday which addresses this issue. That change resolves the big issue but introduced a new error (ros2/launch#244 (comment))

@jacobperron
Copy link
Member

ros2/launch#239 resolves most of the failures (not the rqt_py_common test failures).

ros2/launch#245 should resolve the new error.

And here is an attempt to resolve the rqt_py_common test failures: ros-visualization/rqt#196

@clalancette
Copy link
Author

The tests last night got rid of most of these errors, so thanks @jacobperron ! There are still some failures on Windows, but I'll ticket them separately, so I'll close this out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants