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

[Backport Foxy] Included improvements to increase code coverage #255

Merged
merged 25 commits into from
Oct 15, 2020

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Oct 9, 2020

This PR depends on:

Included error checks, return the right code errors, avoid crashes, etc

hidmic and others added 21 commits October 8, 2020 14:55
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
…226)

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: lobotuerk <jtlorente@ekumenlabs.com>
Signed-off-by: lobotuerk <jtlorente@ekumenlabs.com>
Signed-off-by: lobotuerk <jtlorente@ekumenlabs.com>
)

Signed-off-by: lobotuerk <jtlorente@ekumenlabs.com>
Fix for regression introduced in #241.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
This patch affects:
- rmw_get_node_names()
- rmw_get_node_names_with_enclaves()
- rmw_get_topic_names_and_types()
- rmw_get_service_names_and_types()
- rmw_get_publishers_info_by_topic()
- rmw_get_subscriptions_info_by_topic()
- rmw_get_subscriber_names_and_types_by_node()
- rmw_get_publisher_names_and_types_by_node()
- rmw_get_service_names_and_types_by_node()
- rmw_get_client_names_and_types_by_node()
- rmw_count_publishers()
- rmw_count_subscribers()

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Updated rmw_*_*_allocation return codes

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed return codes in rmw_*

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Improved return error in rmw_wait

Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: lobotuerk <jtlorente@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Copy link
Contributor

@brawner brawner left a comment

Choose a reason for hiding this comment

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

Can you update the title and description, this PR just seems like bug fixes for rmw_node.cpp and does not actually affect code coverage much.

@ahcorde
Copy link
Contributor Author

ahcorde commented Oct 13, 2020

@ros-pull-request-builder retest this please

Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde
Copy link
Contributor Author

ahcorde commented Oct 14, 2020

Building up-to rmw_cyclonedds_cppand testingrmw_cyclonedds_cpp`:

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

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde
Copy link
Contributor Author

ahcorde commented Oct 15, 2020

There is an open issue ros2/ros2#942 about the cppcheck failure in the Github Actions

  [5.800s] 2: [src/rmw_node.cpp:705]: (error: unknownMacro) There is an unknown macro here somewhere. Configuration is required. If RCUTILS_STRINGIFY is a macro then please configure it.

"rcutils/macros.h" is included in the rmw_node.cpp file.

ROS 2 buildfarm is fine, @ivanpauno or @eboasson any thoughts ?

@ivanpauno
Copy link
Member

Apply this patch to the Foxy branch.
There are other possible solutions as discussed here, but I would apply the same patch that was used on master.

Fast forward to ament/ament_lint#268

This suppresses a defect in `ament_cppcheck` - namely that if a macro is missing, it fails loudly. This is compounded by fact that `ament_cppcheck` does not include all dependent headers, so macros are likely to be missing in the first place.

Signed-off-by: Dan Rose <dan@digilabs.io>
@ahcorde ahcorde merged commit 2477456 into foxy Oct 15, 2020
@delete-merged-branch delete-merged-branch bot deleted the ahcorde/backport/foxy branch October 15, 2020 13:45
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.

6 participants