use QoS Reliable and History Depth 10 for stable test result.#2651
Closed
fujitatomoya wants to merge 1 commit intorollingfrom
Closed
use QoS Reliable and History Depth 10 for stable test result.#2651fujitatomoya wants to merge 1 commit intorollingfrom
fujitatomoya wants to merge 1 commit intorollingfrom
Conversation
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
fujitatomoya
commented
Oct 15, 2024
Collaborator
Author
fujitatomoya
left a comment
There was a problem hiding this comment.
@fgallegosalido any thoughts?
i thought that this is originally similar with #2588, but this test cannot be stable with appropriate QoS setting.
| rclcpp::Node::SharedPtr node; | ||
| rclcpp::Client<BasicTypes>::SharedPtr client; | ||
| rclcpp::Service<BasicTypes>::SharedPtr service; | ||
| rclcpp::QoS qos_profile_ = rclcpp::QoS(10).reliable(); |
Collaborator
Author
There was a problem hiding this comment.
Having the qos reliable and depth 10 for both publishers and subscription for service events to make this test result stable.
Unfortunately even with this setting, it still fails with rmw_connextdds.
I tried to increase the timeout from 1000 to 3000 but still sometimes fails.
colcon test --event-handlers console_direct+ --packages-select rclcpp --ctest-args -R test_service_introspection --retest-until-fail 100
...
74: /root/ros2_ws/colcon_ws/src/ros2/rclcpp/rclcpp/test/rclcpp/test_service_introspection.cpp:200: Failure
74: Expected equality of these values:
74: events.size()
74: Which is: 1
74: 2U
74: Which is: 2
74:
74: [ FAILED ] TestServiceIntrospection.service_introspection_enable_disable_events (2312 ms)
74: [ RUN ] TestServiceIntrospection.service_introspection_enable_disable_event_content
74: RTI Connext DDS Non-commercial license is for academic, research, evaluation and personal use only. USE FOR COMMERCIAL PURPOSES IS PROHIBITED. See RTI_LICENSE.TXT for terms. Download free tools at rti.com/ncl. License issued to Non-Commercial User license@rti.com For non-production use only.
74: Expires on 00-jan-00 See www.rti.com for more information.
74: [ OK ] TestServiceIntrospection.service_introspection_enable_disable_event_content (216 ms)
74: [----------] 3 tests from TestServiceIntrospection (2834 ms total)
74:
74: [----------] Global test environment tear-down
74: [==========] 3 tests from 1 test suite ran. (2843 ms total)
74: [ PASSED ] 2 tests.
74: [ FAILED ] 1 test, listed below:
74: [ FAILED ] TestServiceIntrospection.service_introspection_enable_disable_events
74:
74: 1 FAILED TEST
74: -- run_test.py: return code 1
74: -- run_test.py: inject classname prefix into gtest result file '/root/ros2_ws/colcon_ws/build/rclcpp/test_results/rclcpp/test_service_introspection.gtest.xml'
74: -- run_test.py: verify result file '/root/ros2_ws/colcon_ws/build/rclcpp/test_results/rclcpp/test_service_introspection.gtest.xml'
Test #74: test_service_introspection .......***Failed 2.91 sec
0% tests passed, 1 tests failed out of 1
Label Time Summary:
gmock = 2.91 sec*proc (1 test)
mimick = 2.91 sec*proc (1 test)
Total Test time (real) = 8.89 sec
The following tests FAILED:
74 - test_service_introspection (Failed)
Errors while running CTest
Output from these tests are in: /root/ros2_ws/colcon_ws/build/rclcpp/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
--- stderr: rclcpp
Errors while running CTest
Output from these tests are in: /root/ros2_ws/colcon_ws/build/rclcpp/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
---
Finished <<< rclcpp [9.07s] [ with test failures ]
Summary: 1 package finished [10.1s]
1 package had stderr output: rclcpp
1 package had test failures: rclcpp
Collaborator
Author
|
#2684 includes this fix. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
address #2613
Note
This is still draft PR since the test still sometimes fails with rmw_connextdds.