-
Notifications
You must be signed in to change notification settings - Fork 248
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
disable plugins/tests which need rmw_fastrtps_cpp if unavailable #137
disable plugins/tests which need rmw_fastrtps_cpp if unavailable #137
Conversation
I think this is ready to merge |
I don't think that's the right approach. I believe we should always find |
Ok, I will check what has to be disabled an update the PR. |
@Karsten1987 In bb38b7a, I completely disabled the build of I also saw in the previous CI that |
@Karsten1987 Friendly ping |
Sorry @ivanpauno I am currently pretty underwater and won't have time to deep dive into it for the next two weeks. It makes sense to me to completely disable the converter plugin tests when fast rtps is not available. I could further imagine (without having precisely looked at the code) that some end-to-end tests might have to be disabled or compiled differently when the converters are not present in the current setup. |
No problem, I will wait then. Thanks for the update! |
<depend>rosbag2</depend> | ||
|
||
|
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.
Please revert unrelated (whitespace) changes.
Please run CI for this change with a non-FastRTPS RMW impl. If the build doesn't fail (which would be a big step forward) we will get this merged in the current state. |
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 am requesting changes here because at least I would inform the user (the person who's compiling this lib) that the default converter plugins are not compiled in full. As it is right now, the user has no idea whether the plugins are compiled.
The user can then invoke the rosbag application as normal, but it will fail saying that the plugin is unavailable even though the library and such was compiled "correctly".
I believe the right change here is to make the plugins work with whatever RMW implementation available and try to avoid a hardcoded version of rmw_fastrtps_cpp
.
<depend>rosbag2</depend> | ||
|
||
|
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.
superfluous new line
|
||
add_library(${PROJECT_NAME} SHARED | ||
src/rosbag2_converter_default_plugins/cdr/cdr_converter.cpp) | ||
if(rmw_fastrtps_cpp_FOUND) |
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 would somehow inverse this logic and return if(NOT rmw_fastrtps_cpp_FOUND)
with at least a notification that this library is not going to be compiled in full. This will also ease the diff a little bit as we don't have an extra layer of indentation.
That might be a good goal but is outside of the scope of this PR. |
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
I've addressed comments and rebased with master. CI (only opensplice, up to rosbag2 related packages): Note: this was run without 47d731a (which addressed the comments). I forgot that I have to push the changes to my fork (at that moment, I didn't have write access in this repo). |
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
bb38b7a
to
ef76174
Compare
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
It builds correctly now (only opensplice). I solved the linter failures. Double checking (fastrtps and connext, same packages as before): |
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.
lgtm
@Karsten1987 can you please make sure that this gets backported into Dashing in time for the upcoming patch release. |
Once the fix has been merged to the |
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
… (#148) Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Fixes #136.