Skip to content

Call rclcpp::init and rclcpp::shutdown in each test for test_rclcpp - #454

Merged
brawner merged 3 commits into
masterfrom
brawner/fix-tests
Dec 1, 2020
Merged

brawner merged 3 commits into
masterfrom
brawner/fix-tests

Conversation

@brawner

@brawner brawner commented Dec 1, 2020

Copy link
Copy Markdown
Contributor

We're seeing many hangs on windows CI jobs in these tests, and I think the issue can be resolved by ensuring that rclcpp::shutdown gets called for each invocation of rclcpp::init. In the process of addressing this, I noticed that the test_remote_parameters wasn't setting up the test cases correctly for each rmw_implementation.

There may be some uncrustify issues to cleanup.

Testing --packages-select test_rclcpp

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Signed-off-by: Stephen Brawner [email protected]

Signed-off-by: Stephen Brawner <[email protected]>
@brawner
brawner requested a review from clalancette December 1, 2020 02:14

@clalancette clalancette left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got some questions inline. Also, the Rpr job is unhappy for some reason.

Comment thread test_rclcpp/test/test_spin.cpp Resolved
Comment thread test_rclcpp/test/test_spin.cpp Resolved
Comment thread test_rclcpp/test/test_spin.cpp Resolved
Comment thread test_rclcpp/test/test_timer.cpp Resolved
Signed-off-by: Stephen Brawner <[email protected]>

@brawner brawner left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the messy second commit. I didn't fully vet the first commit before pushing because it was taking eons to run and test on windows.

Comment thread test_rclcpp/test/test_spin.cpp Resolved
Comment thread test_rclcpp/test/test_timer.cpp Resolved
@brawner

brawner commented Dec 1, 2020

Copy link
Copy Markdown
Contributor Author
  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Signed-off-by: Stephen Brawner <[email protected]>
@brawner

brawner commented Dec 1, 2020

Copy link
Copy Markdown
Contributor Author

I discovered that the multi_consumer_clients test in test_multithreaded fails for cylonedds on my machine, because it exceeded cylonedds's hardcoded core count. I added a comment to the test describing the finding and a link to the relevant issue.

ros2/rmw_cyclonedds#268

Windows is unstable because of one cmake warning in fastcdr, but the tests otherwise pass.

@Blast545

Copy link
Copy Markdown

@Mergifyio backport foxy

mergify Bot pushed a commit that referenced this pull request Jan 20, 2022
…454)

* Fix test_rclcpp system tests

Signed-off-by: Stephen Brawner <[email protected]>

* Cleanup

Signed-off-by: Stephen Brawner <[email protected]>

* Add comment about test failure

Signed-off-by: Stephen Brawner <[email protected]>
(cherry picked from commit 1c69aa0)
@mergify

mergify Bot commented Jan 20, 2022

Copy link
Copy Markdown

backport foxy

✅ Backports have been created

Details

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

Successfully merging this pull request may close these issues.

3 participants