Skip to content

🧑‍🌾 rclpy.rclpy.test.test_events_executor.TestEventsExecutor.test_pub_sub test failing with subscriber node alone in multiple rmws #1529

@Crola1702

Description

@Crola1702

Generated by Generative AI

No response

Operating System:

Ubuntu Noble

ROS version or commit hash:

rolling, kilted

RMW implementation (if applicable):

No response

RMW Configuration (if applicable):

No response

Client library (if applicable):

No response

'ros2 doctor --report' output

No response

Steps to reproduce issue

  1. Run a build in one of the jobs below
  2. See test fail

Expected behavior

Test should pass

Actual behavior

Test is failing in different rmws

Additional information

Reference builds:

Test regressions:

Seems like an isolation issue? (CC @cottsay?)

Log output:

=================================== FAILURES ===================================
_______________________ TestEventsExecutor.test_pub_sub ________________________

self = <test.test_events_executor.TestEventsExecutor testMethod=runTest>

    def test_pub_sub(self) -> None:
        sub_node = SubTestNode()
        new_pub_future = sub_node.expect_pub_info()
        received_future = sub_node.expect_message()
        self.executor.add_node(sub_node)
    
        # With subscriber node alone, should be no publisher or messages
>       self._expect_future_not_done(new_pub_future)

../../src/ros2/rclpy/rclpy/test/test_events_executor.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../src/ros2/rclpy/rclpy/test/test_events_executor.py:465: in _expect_future_not_done
    self.assertFalse(future.done())
E   AssertionError: True is not false
- generated xml file: /tmp/ws/test_results/rclpy/test_events_executor.xunit.xml -
=========================== short test summary info ============================
FAILED ../../src/ros2/rclpy/rclpy/test/test_events_executor.py::TestEventsExecutor::test_pub_sub

Test flakiness:

job_name last_fail first_fail build_count failure_count failure_percentage
Rci__nightly-zenoh_ubuntu_noble_amd64 2025-10-15 2025-10-02 14 14 100.0
Rci__nightly-cyclonedds_ubuntu_noble_amd64 2025-10-15 2025-10-03 14 13 92.86
Rci__nightly-connext_ubuntu_noble_amd64 2025-10-13 2025-10-10 14 2 14.29
Kci__nightly-cyclonedds_ubuntu_noble_amd64 2025-10-13 2025-10-07 4 3 75.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions