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

rosbag2_transport: parametrize test_rewrite #1206

Merged
merged 2 commits into from
Dec 12, 2022

Conversation

james-rms
Copy link
Contributor

@james-rms james-rms commented Dec 12, 2022

runs test_rewrite using all tested storage IDs, for better test coverage.

Signed-off-by: James Smith james@foxglove.dev

Signed-off-by: James Smith <james@foxglove.dev>
@james-rms james-rms requested a review from a team as a code owner December 12, 2022 00:40
@james-rms james-rms requested review from gbiggs and jhdcs and removed request for a team December 12, 2022 00:40
@james-rms james-rms force-pushed the jrms/rosbag2-transport-parametrize branch from 036d2a8 to fd9effe Compare December 12, 2022 01:18
Signed-off-by: James Smith <james@foxglove.dev>
@james-rms james-rms force-pushed the jrms/rosbag2-transport-parametrize branch from fd9effe to 8f0ebb6 Compare December 12, 2022 01:30
@james-rms
Copy link
Contributor Author

Gist: https://gist.githubusercontent.com/james-rms/782d820aa5fac60a9c4b27124b678895/raw/53f6d77935969c69bced3123482fb66971c53af3/ros2.repos
BUILD args: --packages-above-and-dependencies rosbag2_transport
TEST args: --packages-above rosbag2_transport
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/11257

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

Copy link
Collaborator

@emersonknapp emersonknapp left a comment

Choose a reason for hiding this comment

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

One non-blocking thought - depending how you respond maybe it needs a TODO at least.

Also, I have been thinking that maybe all of these test bags should be generated in code, rather than checked in to the repo. That way it would be easier to just iterate the storage plugins (or whatever other criteria) and test everything, without manual asset creation. The one place where I see actual checked-in file artifacts being useful is for old format backwards compatibility. But, that could be a really explicit list that has some standard battery run on them.

@@ -30,6 +30,7 @@
<test_depend>rosbag2_compression_zstd</test_depend>
<test_depend>rosbag2_test_common</test_depend>
<test_depend>rosbag2_storage_default_plugins</test_depend>
<test_depend>rosbag2_storage_mcap</test_depend>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Still feeling a bit awkward about this, is there a very strong reason we shouldn't add mcap to the exec_depend of default plugins? We are planning to ship it, so it doesn't seem to me that there's any harm in doing it.

Or, if we are trying to be very explicit about what we're testing, then maybe rosbag2_storage_sqlite3 is a test_depend here, and default_plugins is not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm trying to merge these test coverage PRs with the least externally visible disruption possible, which means not adding rosbag2_storage_mcap as a default plugin until it actually is one. That might mean a couple of extra lines like this one in some package.xml files which will be reverted later, but I don't think that's too bad.

@james-rms james-rms merged commit 6a54577 into rolling Dec 12, 2022
@delete-merged-branch delete-merged-branch bot deleted the jrms/rosbag2-transport-parametrize branch December 12, 2022 23:02
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.

2 participants