Fix bad_function_call by replacing rclcpp::spin_some with SingleThreadedExecutor#705
Conversation
ce4c324 to
eb5e7f5
Compare
7409653 to
a89c100
Compare
clalancette
left a comment
There was a problem hiding this comment.
Overall, this is a good thing to fix (it's one of the persistent failures in CI).
There's a problem in the code that I pointed out inline; once that is fixed, hopefully the tests will successfully pass.
Separately, this isn't a great way for the rclcpp::spin_some API to behave. This would be hard for others to debug. I have a running list of APIs that I think are "hard" to use; I'll add this to see what we can do to make it less dangerous.
clalancette
left a comment
There was a problem hiding this comment.
This improves things, certainly. The tests are still failing with a timeout in test_play__rmw_cyclonedds_cpp; I'm not sure if that is known or new from this PR. I'm going to approve anyway and let you figure out whether this is an improvement regardless of that failing test.
5286065 to
4c21975
Compare
|
Gist: https://gist.githubusercontent.com/emersonknapp/ac0d6eb824f96d7d6dd8306fdace023b/raw/82faf3109ee0d7fdb8bbc453154b6b7ebd0a5be2/ros2.repos |
…h SingleThreadedExecutor Signed-off-by: Emerson Knapp <eknapp@amazon.com>
4c21975 to
7a5e04e
Compare
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
It was new from this PR - after a bit of debugging I have realized the |
…dedExecutor (ros2#705) * Fix bad_function_call in test_play by replacing rclcpp::spin_some with SingleThreadedExecutor * Replace other instances of rclcpp::spin_some Signed-off-by: Emerson Knapp <eknapp@amazon.com>
Extension of #576 - same fix applied in more places. I have been seeing occasional test flakiness due to this cause. See details from #576 following