ros2 / ros2cli

ROS 2 command line interface tools
Apache License 2.0
182 stars 162 forks source link

Flaky test on ros2topic: `test_use_sim_time.TestROS2TopicUseSimTime.test_pub_times` #772

Closed Crola1702 closed 1 year ago

Crola1702 commented 2 years ago

Bug report

Required Info:

Steps to reproduce issue

  1. Wait for Ros2 ci nightlies to run
  2. See test failure (Reference build here)

Expected behavior

Pass on all builds

Actual behavior

Failing in some builds (percentages for the last 2 weeks):

Log output:

FAIL: test_use_sim_time.TestROS2TopicUseSimTime.test_pub_times
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins-agent/workspace/nightly_linux_debug/ws/install/launch_testing/lib/python3.10/site-packages/launch_testing/markers.py", line 57, in _wrapper
    return func(self, *args, **kwargs)
  File "/home/jenkins-agent/workspace/nightly_linux_debug/ws/src/ros2/ros2cli/ros2topic/test/test_use_sim_time.py", line 124, in test_pub_times
    assert command.wait_for_shutdown(timeout=1)
AssertionError: assert False
 +  where False = <bound method ProcessProxy.wait_for_shutdown of <launch_testing.tools.process.ProcessProxy object at 0x7f5f3fac0d60>>(timeout=1)
 +    where <bound method ProcessProxy.wait_for_shutdown of <launch_testing.tools.process.ProcessProxy object at 0x7f5f3fac0d60>> = <launch_testing.tools.process.ProcessProxy object at 0x7f5f3fac0d60>.wait_for_shutdown

Additional information

First failing build (for linux): https://ci.ros2.org/view/nightly/job/nightly_linux_repeated/2802/ First failing build (for rhel): https://ci.ros2.org/view/nightly/job/nightly_linux-rhel_debug/1279/

Blast545 commented 2 years ago

Using scripting database tools, the first time it appeared in Rolling debug (30 days ago)

https://build.ros2.org/view/Rci/job/Rci__nightly-release_ubuntu_jammy_amd64/207/ https://ci.ros2.org/view/nightly/job/nightly_linux-rhel_debug/1268/

Crola1702 commented 2 years ago

It happened today in rolling Debug build: Rolling nightly 242

Crola1702 commented 2 years ago

It happened today in Linux Debug build: https://ci.ros2.org/view/nightly/job/nightly_linux_debug/

Crola1702 commented 1 year ago

It happened today in Linux Release build: https://ci.ros2.org/view/nightly/job/nightly_linux_release/2459/

Blast545 commented 1 year ago

This error was added with this PR: https://github.com/ros2/ros2cli/pull/754

fujitatomoya commented 1 year ago

this flaky test has been addressed for humble and foxy, i will close this issue.