You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@audrow This test is quite fragile and depends on very specific elements from a package that's only an indirect dependency. For robustness it might be worth specifically having controlled test messages that can be versioned with the code to avoid the fragility of relying on things like comments in other packages to remain static. I don't think that there's a significant benefit/purpose to test builtin_interfaces/test_msgs specifically vs any message you define with the expected structure. Otherwise this package will be required to be released in lockstep with any change to the message definitions in builtin_interfaces or test_msgs.
I don't think that there's a significant benefit/purpose to test builtin_interfaces/test_msgs specifically vs any message you define with the expected structure.
I agree. I think test_msgs was originally used since it is our go-to interface package for use in unit tests in a lot of packages. We inherently have the issue that changes to messages in test_msgs may require changes in a lot of downstream packages (e.g. system_tests), but it's a trade-off as we avoid maintaining separate interface packages for each package we want to test. For ros2interface in particular, it may make sense to maintain a separate interface package since the tests are especially sensitive towards the exact contents of interface definitions.
For ros2interface in particular, it may make sense to maintain a separate interface package since the tests are especially sensitive towards the exact contents of interface definitions.
I agree. I made an issue #541 and assigned it to myself.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Followup to ros2/rcl_interfaces#103 that collided with #527
@audrow This test is quite fragile and depends on very specific elements from a package that's only an indirect dependency. For robustness it might be worth specifically having controlled test messages that can be versioned with the code to avoid the fragility of relying on things like comments in other packages to remain static. I don't think that there's a significant benefit/purpose to test builtin_interfaces/test_msgs specifically vs any message you define with the expected structure. Otherwise this package will be required to be released in lockstep with any change to the message definitions in builtin_interfaces or test_msgs.