You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, this looks like cross-talk between this test and previous tests that ran, but didn't properly cleanup after themselves. It also looks like it is a flake, since we've had no failures in the last 4 nights after this.
There are 2 things I can think about doing here:
Relax the test a bit so that discovered_nodes is a superset of expected_nodes. This would reduce the flake, and insulate this test against previous tests failing in one way or another in the future.
Try to find out why the previous tests didn't cleanup. I'm not entirely sure how we would go about this, but we could try to reproduce somehow and pursue it.
Relax the test a bit so that discovered_nodes is a superset of expected_nodes. This would reduce the flake, and insulate this test against previous tests failing in one way or another in the future.
A while back one of the node names tests was failing because the code to set ROS_DOMAIN_ID on the CI machines wasn't working correctly, and this test's strictness is what caught that. I would be hesitant to relax the restriction, though I can see why that's attractive if there's a hard to locate cleanup issue.
Since this test failed on an OSX machine and those are all on the same network, is it possible this is showing a regression in the code setting ROS_DOMAIN_ID?
Try to find out why the previous tests didn't cleanup. I'm not entirely sure how we would go about this, but we could try to reproduce somehow and pursue it.
Imo we should definitely do this.
any thoughts?
If we don't want to relax the test (which we could do too) we could also set the localhost-only option and use the domain coordinator to pick a different domain ID (which is not the one set in the environment variable).
Relax the test a bit so that discovered_nodes is a superset of expected_nodes. This would reduce the flake, and insulate this test against previous tests failing in one way or another in the future.
Try to find out why the previous tests didn't cleanup
I'm pretty sure this is my fault. I ran CI for some broken tests related to composable nodes that left some nodes running (hence the node name "mock_component_container"). AFAIK, this only affected our macOS machines since they are not containerized. I noticed these zombie nodes about a day after running the buggy test and since killed them.
It's still possible to run into a similar issue in the future if a buggy test is run leaving behind stray nodes. So, it's probably still worth relaxing test or changing up the domain ID as @dirk-thomas suggests.
Activity
clalancette commentedon Aug 21, 2020
So, this looks like cross-talk between this test and previous tests that ran, but didn't properly cleanup after themselves. It also looks like it is a flake, since we've had no failures in the last 4 nights after this.
There are 2 things I can think about doing here:
discovered_nodesis a superset ofexpected_nodes. This would reduce the flake, and insulate this test against previous tests failing in one way or another in the future.@ros2/team any thoughts?
sloretz commentedon Aug 21, 2020
A while back one of the node names tests was failing because the code to set ROS_DOMAIN_ID on the CI machines wasn't working correctly, and this test's strictness is what caught that. I would be hesitant to relax the restriction, though I can see why that's attractive if there's a hard to locate cleanup issue.
Since this test failed on an OSX machine and those are all on the same network, is it possible this is showing a regression in the code setting ROS_DOMAIN_ID?
dirk-thomas commentedon Aug 21, 2020
Imo we should definitely do this.
If we don't want to relax the test (which we could do too) we could also set the localhost-only option and use the domain coordinator to pick a different domain ID (which is not the one set in the environment variable).
jacobperron commentedon Aug 25, 2020
I'm pretty sure this is my fault. I ran CI for some broken tests related to composable nodes that left some nodes running (hence the node name "mock_component_container"). AFAIK, this only affected our macOS machines since they are not containerized. I noticed these zombie nodes about a day after running the buggy test and since killed them.
It's still possible to run into a similar issue in the future if a buggy test is run leaving behind stray nodes. So, it's probably still worth relaxing test or changing up the domain ID as @dirk-thomas suggests.
clalancette commentedon Sep 10, 2020
We haven't seen this in a while, and we know the root cause. It can still happen in the future, but for now I'm going to close this bug out.