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

add new test messages for arrays of arrays #52

Merged
merged 4 commits into from
Nov 20, 2018
Merged

Conversation

Karsten1987
Copy link
Contributor

@Karsten1987 Karsten1987 commented Nov 15, 2018

We'd like to have two more test messages in the form of containers of containers. We would leverage them in our rosbag tests.

see ros2/rosbag2#56 (comment)
cc @anhosi

@Karsten1987 Karsten1987 added the in review Waiting for review (Kanban column) label Nov 15, 2018
@Karsten1987 Karsten1987 self-assigned this Nov 15, 2018
Copy link
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

There are some consequences to adding new messages to this package:

  1. It will cause test_communications to fail, unless a few things are updated.
    See my tickets related to previous tribulations:
  1. The build time increases significantly for all builds (exponential?) because of testing done in test_communications.
    (@clalancette Correct me if I'm wrong).

@Karsten1987
Copy link
Contributor Author

Comments make sense to me, but I'll let @anhosi respond.

If this doesn't get merged because of runtime reasons, we might have our own rosbag2_test_msgs paket. But i'd prefer not to.

@jacobperron
Copy link
Member

jacobperron commented Nov 15, 2018

IMO, it makes sense to add the missing cases to this package for completeness:

  • BoundedArrayPrimitivesNested
  • StaticArrayPrimitivesNested

@Karsten1987
Copy link
Contributor Author

I just updated the message files. Is there anything else to do with it in terms of test_communication?

@jacobperron
Copy link
Member

I just updated the message files. Is there anything else to do with it in terms of test_communication?

@Karsten1987
Support should be added for the new message types to the utility functions in this package:

And then the publisher/subscriber tests in test_communications should be updated:

An alternative to all of these changes is to let the publisher/subscriber tests in test_communications pass if the message type is unknown. Then any future additions to test_msgs wouldn't break integration tests. I.e. Return 0 here and the same for the other test I've linked.

@Karsten1987
Copy link
Contributor Author

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

@Karsten1987
Copy link
Contributor Author

new round of CI:

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

@Karsten1987 Karsten1987 merged commit ef7f1ce into master Nov 20, 2018
@Karsten1987 Karsten1987 deleted the add_arrays_of_arrays branch November 20, 2018 21:13
@Karsten1987 Karsten1987 removed the in review Waiting for review (Kanban column) label Nov 20, 2018
dirk-thomas pushed a commit to ros2/test_interface_files that referenced this pull request Jan 18, 2019
* add new test messages for arrays of arrays

* rename and adjust missing types

* add new fixtures

* linters
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