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

ros2 service test_list_count failing #466

rotu opened this issue Mar 19, 2020 · 2 comments

ros2 service test_list_count failing #466

rotu opened this issue Mar 19, 2020 · 2 comments


Copy link

@rotu rotu commented Mar 19, 2020

Bug report

Required Info:

  • Operating System:
    • Ubuntu Focal
  • Installation type:
    • source
  • Version or commit hash:
    • master
  • DDS implementation:
    • rmw_cyclonedds, rmw_fastrtps_cpp, rmw_connext_cpp
  • Client library (if applicable):
    • N/A

Steps to reproduce issue

see CI:

or locally:

colcon test --packages-select ros2service

Expected behavior

Tests pass

Actual behavior

Tests fail with a vague error message:

"some test cases have failed: test_cli[rmw_cyclonedds_cpp] failed at TestROS2ServiceCLI.test_list_count[rmw_cyclonedds_cpp] test_cli[rmw_fastrtps_cpp] failed at TestROS2ServiceCLI.test_list_count[rmw_fastrtps_cpp] test_cli[rmw_connext_cpp] failed at TestROS2ServiceCLI.test_list_count[rmw_connext_cpp]"

Additional information

Looking at the entire test output, this is probably due to a hack based on launch_ros implementation details which may have changed. In particular, 6 extra internal nodes may no longer exist.

FAIL: test_list_count[rmw_connext_cpp] (test_cli.TestROS2ServiceCLI)
Traceback (most recent call last):
  File "/home/jenkins-agent/workspace/nightly_linux_release/ws/install/launch_testing/lib/python3.6/site-packages/launch_testing/", line 57, in _wrapper
    return func(self, *args, **kwargs)
  File "/home/jenkins-agent/workspace/nightly_linux_release/ws/src/ros2/ros2cli/ros2service/test/", line 195, in test_list_count
    assert int(output_lines[0]) == 7 + 6  # cope with launch_ros internal node.
AssertionError: assert 7 == (7 + 6)
 +  where 7 = int('7')

This comment has been minimized.

Copy link

@ros-discourse ros-discourse commented Mar 20, 2020

This issue has been mentioned on ROS Discourse. There might be relevant details there:


This comment has been minimized.

Copy link

@sloretz sloretz commented Apr 2, 2020

Fixed in #474

@sloretz sloretz closed this Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.