Skip to content

Allow null arguments in the EventsExecutor parameters#602

Merged
j-rivero merged 3 commits intomasterfrom
jrivero/fix_check_null
May 5, 2022
Merged

Allow null arguments in the EventsExecutor parameters#602
j-rivero merged 3 commits intomasterfrom
jrivero/fix_check_null

Conversation

@j-rivero
Copy link
Contributor

@j-rivero j-rivero commented May 5, 2022

After merging #600, failing tests have appeared in rclcpp that points to problems with assertions introduced on parameter there.

I did that following the API that explicit mention when a parameter can be null (i.e. user_data). Seems to me like the null check and error handling is being done at a different place of the stack.

Testing:

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

j-rivero added 2 commits May 5, 2022 18:14
…ion"

This reverts commit 8e93400.

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
@j-rivero j-rivero force-pushed the jrivero/fix_check_null branch from 4728b35 to 5fbe71d Compare May 5, 2022 16:14
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
@fujitatomoya fujitatomoya changed the title Allow null arguments in the EvenExecutor parameters Allow null arguments in the EventsExecutor parameters May 5, 2022
@j-rivero
Copy link
Contributor Author

j-rivero commented May 5, 2022

While reviewing the error logs in the past builds I noticed that probably the problem was only in checking callbacks that can be nullptr, the value is handled in different software layer (i. e. https://github.com/ros2/rmw_fastrtps/blob/master/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/custom_client_info.hpp#L203).

So I think that we can leave the checks on the other parameters:

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

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Still looks OK, assuming CI comes back green.

@j-rivero j-rivero merged commit 12e514d into master May 5, 2022
@delete-merged-branch delete-merged-branch bot deleted the jrivero/fix_check_null branch May 5, 2022 21:49
@Blast545
Copy link
Contributor

This PR and #600 should be backported to Humble to address the build regressions on the fastrtps-dynamic Hci jobs.

Blast545 pushed a commit that referenced this pull request May 11, 2022
* Revert "Add RMW_CHECKS to  EventsExecutor implementation"
* Check the non callback values for nullptr

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
timonegk pushed a commit to timonegk/rmw_fastrtps that referenced this pull request May 21, 2022
* Revert "Add RMW_CHECKS to  EventsExecutor implementation"
* Check the non callback values for nullptr

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
timonegk pushed a commit to timonegk/rmw_fastrtps that referenced this pull request Jun 8, 2022
* Revert "Add RMW_CHECKS to  EventsExecutor implementation"
* Check the non callback values for nullptr

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
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