-
Notifications
You must be signed in to change notification settings - Fork 50
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
add unit test to check for node names across rmw impl. #260
Conversation
6eeb04f
to
5972e29
Compare
5972e29
to
9186d24
Compare
Would it make sense to also check that the function recognizes when a node is not available anymore? Right now, we test that when a node is started, the node name is populated correctly. What's the behavior when the node exits? Can we test this? |
This could be tested but I am not trying to cover that case in this PR. This is only checking that cross vendor nodes "agree" on how the node name should be exchanged. |
The output indicates that the actual test was successful:
And the second process exited cleanly as a result of that:
Based on that the first process receives a signal to shutdown:
I assume the first process didn't react on that signal and after a timeout was being killed:
I can't reproduce the problem locally with |
Doesn't look like it even received the signal since it didn't print Also from this test output it doesn't look like ros2/ros2cli#72 has been resolved: |
sorry, I misread this line, |
While it would certainly be worth investigating and fixing I might not follow up on this launch specific issue in the context of the node name changes though. The problem is not related to this patch (changing the way node names are being passed in DDS and ensure that it works cross vendor).
The test node only calls the
I don't think this is what is happening here. The |
I committed 19946c4 to visually distinguish the empty line separating two result lists (still an empty line) and lines with empty node names (now showing up as "- "). |
Ok, definitely for the most part the tests seem to be working; they didn't cause any flakiness in the builds over the weekend, so I agree that it isn't necessary to put fixing this test's flakiness at the top of our to-do list if we're confident the issue is elsewhere |
Connect to ros2/ros2#438.