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.
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
Skip some tests in test_qos_event and run others with event types supported by rmw_zenoh #2626
Skip some tests in test_qos_event and run others with event types supported by rmw_zenoh #2626
Changes from 2 commits
a9cfdd7
0ee5749
076c7b7
9c77557
d9a3f5a
8cad2dd
af54b86
6c9baba
37a6fc9
40547d0
79c77f1
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
matched events should definitely work else there is a bug in rmw_zenoh.
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.
failing here too
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.
So this relates to what I mentioned above where we should update the test similar to 4) in ros2/rcl#1164. Basically more QoS combinations are compatible in rmw_zenoh so we should set the
matched_expected_result.current_count
to the output ofrmw_qos_profile_check_compatible
checks.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.
There might be some tests that we can fix with your comment, but the subscription counter is wrong, it's only increasing.
If you comment out some tests the numbers are different which somehow don't clean the counters between tests.
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.
This looks like a bug in
rmw_zenoh
. I would suggest we don't skip this test and instead have it fail so that we can address it.We should only skip the tests for functionalities we do not support.
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.
After looking at the problem closer; the issue is that
SetUpTestCase()
which creates the Zenoh session and initializes the ROS graph.SetUp()
andTearDown()
which creates and destroys the node and some publishes and subscriptions. However, since the session is still the same throughout the tests each time a new pub/sub match is found, the sametotal_count
andtotal_count_change
updates. From the sessions's perspective, the total count is indeed valid since it was never shutdown.In 6c9baba, I moved the
rmw_init()
command insideSetUp()
and thermw_shutdown()
insideTearDown()
, the total_count numbers are accurate. With ros2/rmw_zenoh#287 all events tests are passing.