-
Notifications
You must be signed in to change notification settings - Fork 431
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
[foxy backport] Backport all unit tests and bug fixes, feature branch #1383
Conversation
* Throw exception if rcl_timer_init fails Signed-off-by: Stephen Brawner <brawner@gmail.com> * Add bad-argument tests for GenericTimer Signed-off-by: Stephen Brawner <brawner@gmail.com> * Add comments Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address feedback Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address feedback Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Check period duration in create_wall_timer Signed-off-by: Stephen Brawner <brawner@gmail.com> * Adding comments Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Unit tests for header-only functions/classes Adds coverage for: * any_service_callback.hpp * any_subscription_callback.hpp * create_subscription.hpp * create_timer.hpp Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address PR feedback Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Unit tests for node interfaces Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address PR Feedback Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address PR feedback Signed-off-by: Stephen Brawner <brawner@gmail.com> * Adjusting comment Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Unit tests for allocator_memory_strategy.hpp Part 1 of 2 for this file, but part 2 of 3 for memory strategies overall Signed-off-by: Stephen Brawner <brawner@gmail.com> * PR Fixup Signed-off-by: Stephen Brawner <brawner@gmail.com> * Remove find_package Signed-off-by: Stephen Brawner <brawner@gmail.com> * Remove ref to osrf_testing_tools Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Add unit test for static_executor_entities_collector Signed-off-by: Stephen Brawner <brawner@gmail.com> * PR Fixup Signed-off-by: Stephen Brawner <brawner@gmail.com>
@ros-pull-request-builder retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just reviewed for ABI compatibility. I didn't thoroughly review the code.
Thanks for checking Jacob! Even though this is green, I'm going to wait until I open a PR with a few fixes in it. |
…StaticSingleThreadedExecutor (#1385) * Derive and throw exception in spin_some spin_all for StaticSingleThreadedExecutor (#1220) * Derive and throw exception in spin_some spin_all Signed-off-by: Stephen Brawner <brawner@gmail.com> * Fix style and add unit test Signed-off-by: Stephen Brawner <brawner@gmail.com> * Remove header changes and throw exceptions in .cpp Signed-off-by: Stephen Brawner <brawner@gmail.com>
…1222) (#1386) * Parameterize test executors for all executor types (#1222) * Relocate test_executor to executors directory Signed-off-by: Stephen Brawner <brawner@gmail.com> * Parametrize test_executors for all executor types Signed-off-by: Stephen Brawner <brawner@gmail.com> * PR Fixup Signed-off-by: Stephen Brawner <brawner@gmail.com> * More fixup Signed-off-by: Stephen Brawner <brawner@gmail.com> * Fixup Signed-off-by: Stephen Brawner <brawner@gmail.com> * Adding issue for tracking Signed-off-by: Stephen Brawner <brawner@gmail.com> * Remove tests for non-foxy API Signed-off-by: Stephen Brawner <brawner@gmail.com>
* EXPECT_THROW_EQ and ASSERT_THROW_EQ macros for unittests Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address PR Feedback Signed-off-by: Stephen Brawner <brawner@gmail.com>
…#1189) * Unit tests for memory_strategy classes (part 1) Adds unit tests for: * strategies/message_pool_memory_strategy.hpp * memory_strategy.cpp * message_memory_strategy.cpp Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address PR Feedback Signed-off-by: Stephen Brawner <brawner@gmail.com> * Update with new macros Signed-off-by: Stephen Brawner <brawner@gmail.com>
…#1245) * fix node graph test with Connext and CycloneDDS returning actual data Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com> * use ADD_FAILURE() Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
…1251) It turns out rmw_connext_cpp adds a default waitable that other rmw implementations do not. Adjusting the unit test to take this into account in a non-rmw specific manner. Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Increase timeouts for connext for long tests Signed-off-by: Stephen Brawner <brawner@gmail.com> * Fix cmakelists Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Fix allocator memory strategy for connext Signed-off-by: Stephen Brawner <brawner@gmail.com> * PR Feedback Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com> Remove non-foxy api changes Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
* Add missing tests API * Reformat style error throw * Add internal errors tests Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
* Change value used as max representation * Add coverage tests time * Add call to detach clock * Add tests time * Add duration construction tests * Add const qualifier to constants * Add check clock stays the same * Make operator RCLCPP_PUBLIC * Add tests exceptions duration * Fix division by 0 on windows Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
* Add test for ParameterService Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address PR feedback Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
In particular, add API coverage for spin_node_until_future_complete, spin_until_future_complete, and spin_node_once. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Add unit tests for qos and qos_event files Signed-off-by: Stephen Brawner <brawner@gmail.com> * PR Feedback Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address PR Feedback Signed-off-by: Stephen Brawner <brawner@gmail.com> * Fix windows CI Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Increase coverage of WaitSetTemplate Signed-off-by: Stephen Brawner <brawner@gmail.com> * PR fixup Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Chen Lihui <Lihui.Chen@sony.com>
PR to adjust timeouts with Connext. These tests are also timing out on master, so this PR targets that and I'll add it to this PR when it's merged. |
This also now includes the following PRs: #1165, #1272, #1329, #1270, #1274, #1281, #1291, #1310, #1308, #1316, #1321, #1326, #1325, #1232, #1189, #1245, #1246, #1251, #1253, #1252, #1336, #1330, #1346, #1343, #1350, #1349, #1344, #1342, #1353, #1358, #1359, #1360, #1363, #1347, #1355, #1317, #1364, #1365, #1352, #1366, #1369, #1368, #1296, |
Merged #1401 into foxy, which hopefully resolves the windows debug issue. |
I added only the rclcpp bits from #1400 to this PR. The rest will need to backported separately because there were merge conflicts. |
7cb82cb
to
7060b8b
Compare
… dependency (#1303) * Clear members for StaticExecutorEntitiesCollector to avoid shared_ptr dependency Signed-off-by: Chen Lihui <Lihui.Chen@sony.com> Signed-off-by: Chris Lalancette <clalancette@openrobotics.org> Co-authored-by: Chris Lalancette <clalancette@openrobotics.org> Signed-off-by: Stephen Brawner <brawner@gmail.com>
Final CI results look good. The failing test with connext is the SubscriptionTopicStatisticsFixture which is an existing issue on rolling. cppcheck times out on macos debug, which is a periodic failure and would have to be addressed over at ament_lint. I set DCO to pass because all commits are signed off by their respective authors. Github just had trouble figuring that out... |
This is the start of PRs to backport unit tests and some associated bug fixes. This PR will be "rebased and merged", so commit history and hashes can be linked.
Edit: This PR will act as the feature branch, and I'll merge other backports for tests into this one. Either rebase and merging if the commits can be taken as is, or squashed if changes are needed to each backport commit. If squashed, I will only be squashing the required changes into the original commit (not squashing multiple backport commits together)
Backported PRs
Bug fix PRs: #1179, #1178, #1211, #1245, #1246, #1251, #1253, #1252, #1270, #1274, #1281, #1291, #1310,
New testing features: #1232
Unit test PRs: #1184, #1181, #1202, #1197, #1198, #1221, #1189, #1222, #1165, #1272, #1308, #1316, #1322, #1321, #1326, #1325