ros2 / ros2/ros2cli

🧑‍🌾 ros2node.ros2node.test failing in linux CI

Open
#1,031 2 comments 0 reactions 1 assignee View on GitHub

@cottsay is already working on this.

Since May 29, 2025.

bug
Dominant language
Python
Stars
262
Forks
228
Avg merge
23h 15m
Merged PRs (30d)
12

Description

Generated by Generative AI

No response

Operating System:

Ubuntu Noble, RHEL 9

ROS version or commit hash:

rolling

RMW implementation (if applicable):

No response

RMW Configuration (if applicable):

No response

Client library (if applicable):

No response

'ros2 doctor --report' output
Steps to reproduce issue
  1. Run a build in a linux CI distribution
  2. See test regression
Expected behavior

Test should not fail

Actual behavior

Test is failing

Additional information

Reference builds:

Test regression:

Log output (similar for all jobs):
===============================================================================================================================================================================================================================================================================================================
FAIL: test_cli.TestROS2NodeCLI.test_list_all_nodes[rmw_fastrtps_cpp]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins-agent/workspace/nightly_linux_release/ws/install/launch_testing/lib/python3.12/site-packages/launch_testing/markers.py", line 61, in _wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jenkins-agent/workspace/nightly_linux_release/ws/src/ros2/ros2cli/ros2node/test/test_cli.py", line 135, in test_list_all_nodes
    assert launch_testing.tools.expect_output(
AssertionError: assert False
 +  where False = <function expect_output at 0x7e3ee59918a0>(expected_lines=['/_hidden_complex_node', '/complex_node'], text='/_hidden_complex_node\n/cli_bw_delay_hz/cli_bw_delay_hz_test_node\n/complex_node\n/node_ns/test_generate_policy_services_node\n/test_generate_policy_topics_node\n', strict=True)
 +    where <function expect_output at 0x7e3ee59918a0> = <module 'launch_testing.tools' from '/home/jenkins-agent/workspace/nightly_linux_release/ws/install/launch_testing/lib/python3.12/site-packages/launch_testing/tools/__init__.py'>.expect_output
 +      where <module 'launch_testing.tools' from '/home/jenkins-agent/workspace/nightly_linux_release/ws/install/launch_testing/lib/python3.12/site-packages/launch_testing/tools/__init__.py'> = launch_testing.tools
 +    and   '/_hidden_complex_node\n/cli_bw_delay_hz/cli_bw_delay_hz_test_node\n/complex_node\n/node_ns/test_generate_policy_services_node\n/test_generate_policy_topics_node\n' = <launch_testing.tools.process.ProcessProxy object at 0x7e3ed3e9c6e0>.output


===============================================================================================================================================================================================================================================================================================================
FAIL: test_cli.TestROS2NodeCLI.test_list_node_count[rmw_fastrtps_cpp]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins-agent/workspace/nightly_linux_release/ws/install/launch_testing/lib/python3.12/site-packages/launch_testing/markers.py", line 61, in _wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jenkins-agent/workspace/nightly_linux_release/ws/src/ros2/ros2cli/ros2node/test/test_cli.py", line 152, in test_list_node_count
    assert int(output_lines[0]) == 1
AssertionError: assert 2 == 1
 +  where 2 = int('2')


===============================================================================================================================================================================================================================================================================================================
FAIL: test_cli.TestROS2NodeCLI.test_list_nodes[rmw_fastrtps_cpp]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins-agent/workspace/nightly_linux_release/ws/install/launch_testing/lib/python3.12/site-packages/launch_testing/markers.py", line 61, in _wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jenkins-agent/workspace/nightly_linux_release/ws/src/ros2/ros2cli/ros2node/test/test_cli.py", line 124, in test_list_nodes
    assert launch_testing.tools.expect_output(
AssertionError: assert False
 +  where False = <function expect_output at 0x7e3ee59918a0>(expected_lines=['/complex_node'], text='/cli_bw_delay_hz/cli_bw_delay_hz_test_node\n/complex_node\n', strict=True)
 +    where <function expect_output at 0x7e3ee59918a0> = <module 'launch_testing.tools' from '/home/jenkins-agent/workspace/nightly_linux_release/ws/install/launch_testing/lib/python3.12/site-packages/launch_testing/tools/__init__.py'>.expect_output
 +      where <module 'launch_testing.tools' from '/home/jenkins-agent/workspace/nightly_linux_release/ws/install/launch_testing/lib/python3.12/site-packages/launch_testing/tools/__init__.py'> = launch_testing.tools
 +    and   '/cli_bw_delay_hz/cli_bw_delay_hz_test_node\n/complex_node\n' = <launch_testing.tools.process.ProcessProxy object at 0x7e3ed3ee08c0>.output


===============================================================================================================================================================================================================================================================================================================
FAIL: test_cli.TestROS2NodeCLI.test_info_hidden_node_hidden_flag[rmw_cyclonedds_cpp]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exception: Launch stopped before the active tests finished.


===============================================================================================================================================================================================================================================================================================================
FAIL: test_cli.TestROS2NodeCLI.test_info_hidden_node_no_hidden_flag[rmw_cyclonedds_cpp]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exception: Launch stopped before the active tests finished.


===============================================================================================================================================================================================================================================================================================================
FAIL: test_cli.TestROS2NodeCLI.test_info_node[rmw_cyclonedds_cpp]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exception: Launch stopped before the active tests finished.


===============================================================================================================================================================================================================================================================================================================
FAIL: test_cli.TestROS2NodeCLI.test_list_all_nodes[rmw_cyclonedds_cpp]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exception: Launch stopped before the active tests finished.


===============================================================================================================================================================================================================================================================================================================
FAIL: test_cli.TestROS2NodeCLI.test_list_all_nodes_count[rmw_cyclonedds_cpp]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exception: Launch stopped before the active tests finished.


===============================================================================================================================================================================================================================================================================================================
FAIL: test_cli.TestROS2NodeCLI.test_list_node_count[rmw_cyclonedds_cpp]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exception: Launch stopped before the active tests finished.


===============================================================================================================================================================================================================================================================================================================
FAIL: test_cli.TestROS2NodeCLI.test_list_nodes[rmw_cyclonedds_cpp]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exception: Launch stopped before the active tests finished.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.