-
Notifications
You must be signed in to change notification settings - Fork 162
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
zenoh: Increased timeout for test_rcl_lifecycle #1185
Conversation
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
@@ -104,6 +104,7 @@ if(BUILD_TESTING) | |||
endif() | |||
ament_add_gtest(test_rcl_lifecycle | |||
test/test_rcl_lifecycle.cpp | |||
TIMEOUT 400 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
400 secs is the longest timeout for the test in rcl
...
with my local environment with rmw_fastrtps_cpp
, it can complete the test in 3 seconds.
root@tomoyafujita:~/ros2_ws/colcon_ws# colcon test --event-handlers console_direct+ --packages-select rcl_lifecycle --ctest-args -R test_rcl_lifecycle
...
The following tests passed:
test_rcl_lifecycle
100% tests passed, 0 tests failed out of 1
Label Time Summary:
gtest = 1.81 sec*proc (1 test)
Total Test time (real) = 1.81 sec
Finished <<< rcl_lifecycle [2.48s]
Summary: 1 package finished [3.67s]
I am not sure if this is the correct thing to do... maybe something wrong with rmw_zenoh instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if this is the correct thing to do... maybe something wrong with rmw_zenoh instead?
There is definitely a bug in rmw_zenoh
that needs to be addressed here. In particular, it can take up to 1.5 seconds to complete a connection between rmw_zenoh
and the router, and rmw_init
is blocked during that time.
For reference, rmw_init
in for example rmw_fastrtps
returns in something like a millisecond, so the delta here is huge. We really need to fix rmw_zenoh
/Zenoh proper to make this connection timeout much smaller.
I haven't been able to reproduce this test failure on my machine with the latest I run all the tests colcon test --event-handlers console_direct+ --packages-select rcl_lifecycle On my machine the 4 gtests takes about 42 with
With
I opened ros2/rmw_zenoh#284 to reduce the sleep in
It's a slight improvement. @ahcorde could you confirm that this test still fails on |
Thank you @Yadunund ! |
No description provided.