Skip to content

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

Closed

Description

@mm318

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.

Activity

  1. dirk-thomas commented on May 3, 2019

    @dirk-thomas
    Member

    For reference: 209ec28

  2. sloretz commented on May 3, 2019

    @sloretz
    Contributor

    Quick check on OSX testing just rcl @mm318 FYI

    Build Status

  3. mm318 commented on May 17, 2019

    @mm318
    MemberAuthor

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

  4. jacobperron commented on May 17, 2019

    @jacobperron
    Member

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

  5. clalancette commented on May 17, 2019

    @clalancette
    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.

  6. mm318 commented on May 17, 2019

    @mm318
    MemberAuthor

    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.

  7. jacobperron commented on May 17, 2019

    @jacobperron
    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).

  8. nburek commented on May 21, 2019

    @nburek
    Contributor

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

  9. mm318 commented on May 21, 2019

    @mm318
    MemberAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions