Skip to content
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

Re-enable rcl unit test "test_events" for macOS #431

Closed
mm318 opened this issue May 3, 2019 · 9 comments
Closed

Re-enable rcl unit test "test_events" for macOS #431

mm318 opened this issue May 3, 2019 · 9 comments

Comments

@mm318
Copy link
Member

mm318 commented May 3, 2019

The test_events unit test in rcl was flaky when run on the macOS build machine, so it was disabled (intended to be temporarily disabled). This issue to is track re-enabling the test after improving its robustness.

@dirk-thomas
Copy link
Member

For reference: 209ec28

@sloretz
Copy link
Contributor

sloretz commented May 3, 2019

Quick check on OSX testing just rcl @mm318 FYI

Build Status

@mm318
Copy link
Member Author

mm318 commented May 17, 2019

The tests passed once (#433 (comment)), got merged, and then failed again (ros2/build_farmer#199).

@jacobperron
Copy link
Member

jacobperron commented May 17, 2019

I'm not sure if it's of any consequence, but the reported failure on build cop is part of a release build.

@clalancette
Copy link
Contributor

I'm not sure if it's of any consequence, but the reported failure on build cop is part of a release build.

Yeah, that's almost certainly the case. The release builds (particularly on macOS) expose a lot more bugs than the debug builds.

@mm318
Copy link
Member Author

mm318 commented May 17, 2019

Are there other unit tests that create a context, node, and publisher/subscriber pair, send a Strings message, and lastly tears everything down, and then repeat a couple of times for the remaining test cases?

Is there some way to run this test with --gtest_shuffle? I've noticed that it's always the last two test cases that fail, with the subscriber failing to receive a published message.

I feel like this test failure is exposing a bigger problem (on macOS) than the test itself.

@jacobperron
Copy link
Member

test_communication/test/test_publisher_subscriber launches pub/sub pairs for rclcpp and rclpy with all test messages. But I'm not aware of analogous communication tests strictly in C.

Is there some way to run this test with --gtest_shuffle? I've noticed that it's always the last two test cases that fail, with the subscriber failing to receive a published message

Try setting the env variable GTEST_SHUFFLE=1 (reference).

@nburek
Copy link
Contributor

nburek commented May 21, 2019

Are ros2/build_farmer#199 and this tracking the same issue? Should one be closed in preference of the other?

@mm318
Copy link
Member Author

mm318 commented May 21, 2019

Yeah, let's close this one, as this test is already enabled, which is why it showed up under build_cop.

@mm318 mm318 closed this as completed May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants