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

test_multithreaded_executor is flaky #1552

Closed
jacobperron opened this issue Feb 11, 2021 · 3 comments
Closed

test_multithreaded_executor is flaky #1552

jacobperron opened this issue Feb 11, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jacobperron
Copy link
Member

Bug report

Required Info:

  • Operating System:
    • macOS
  • Version or commit hash:

Steps to reproduce issue

Latest failure: https://ci.ros2.org/job/nightly_osx_release/1962/testReport/rclcpp/TestMultiThreadedExecutor/timer_over_take/

Looks like it has been failing for a while now, but not consistently:

https://ci.ros2.org/job/nightly_osx_release/1962/testReport/rclcpp/TestMultiThreadedExecutor/timer_over_take/history

Additional information

Looks like the same as #1110, but only noticing the failure on macOS now.

@jacobperron jacobperron added the bug Something isn't working label Feb 11, 2021
@jacobperron jacobperron changed the title 👨‍🌾 test_multithreaded_executor is flaky test_multithreaded_executor is flaky Feb 11, 2021
@clalancette
Copy link
Contributor

I did take a quick look into it a while ago, and I think it is a real bug. If you look closely at when it fails, the timer is supposed to take at least 0.75 seconds. If you look at the output there, it only took 0.4 seconds, so it is clearly expiring much too early. macOS has the most "interesting" CPU scheduler of our target platforms, so that is likely why we only see it there.

@tfoote
Copy link
Contributor

tfoote commented Mar 8, 2021

This came up again last night on two separate builds with an even larger underun of 0.22 vs 0.75 seconds.

/Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/src/ros2/rclcpp/rclcpp/test/rclcpp/executors/test_multi_threaded_executor.cpp:91 Expected: (diff) > (PERIOD - TOLERANCE), actual: 0.220429 vs 0.75

Observed in OSX nightly repeated and OSX release

@clalancette
Copy link
Contributor

I'm going to close this one as a duplicate of #1008, since we see this on all platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants