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

[jazzy] Add optional '--topics' CLI argument for 'ros2 bag record' (backport #1632) #1640

Merged
merged 2 commits into from May 23, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 7, 2024

Motivation:

ros2 bag record --services service1 service2 -- topic1 topic2 --output path/to/bag

It works currently, if put a trailing -- after the list of services. However, that workaround with trailing -- is not obvious and could cause confusion and be a source of mistakes because the topics parameter can't be specified explicitly. i.e., --topics.

List of changes:

  • Add optional "--topics" parameter for the ros2 bag record CLI interface.
  • Deprecate the positional "topics" parameter to be consistent with the"--services" parameter.
  • Add test coverage for non-trivial cases in the recorder CLI parser.
  • Use the optional "--topics" parameter instead of the deprecated positional parameter in integration tests.

Note: There are no API/ABI breaking changes in this PR


This is an automatic backport of pull request #1632 done by Mergify.

@mergify mergify bot requested a review from a team as a code owner May 7, 2024 00:16
@mergify mergify bot requested review from gbiggs and hidmic and removed request for a team May 7, 2024 00:16
@MichaelOrlov MichaelOrlov changed the title Add optional '--topics' CLI argument for 'ros2 bag record' (backport #1632) [jazzy] Add optional '--topics' CLI argument for 'ros2 bag record' (backport #1632) May 7, 2024
@MichaelOrlov
Copy link
Contributor

Pulls: #1640
Gist: https://gist.githubusercontent.com/MichaelOrlov/6064888ce6dfdadf7910830d1a840b91/raw/1d8c7bc245e989a2fdbcc53085adabf184cb000a/ros2.repos
BUILD args: --packages-above-and-dependencies ros2bag rosbag2_tests
TEST args: --packages-above ros2bag rosbag2_tests
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/13824

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

@clalancette
Copy link
Contributor

Since there are no API or ABI breaks here, I'm going to suggest that we hold off on merging this.

Actually, that may argue that we never merge this into Jazzy (because adding in a deprecation warning into a stable distribution isn't something we usually do).

@marcoag Thoughts from you?

@MichaelOrlov
Copy link
Contributor

@clalancette @marcoag I would prefer to merge this PR to Jazzy sooner rather than later since it will improve user experience is well covered by tests, and is pretty safe, IMO. However, would like to get your approval or opinion beforehand.

@marcoag
Copy link
Contributor

marcoag commented May 14, 2024

If we can merge this without the warning later on, I would lean on holding off and doing it later.

@MichaelOrlov
Copy link
Contributor

@marcoag The deprecation warning is very important for a new release. Otherwise, we will have to wait for one more release to be able to deprecate the positional argument.

@MichaelOrlov
Copy link
Contributor

Update:

  • On today's ROS 2 synch meeting we decided to wait and not merge this PR to the Jazzy branch until a final release.
  • When the code freeze on the Jazzy branch is lifted, we can merge this PR. However, we shall remove the deprecation warning.

@MichaelOrlov
Copy link
Contributor

Re-run CI after removing deprecation warning.
Building on the built-in node in workspace /var/lib/jenkins/jobs/ci_launcher/workspace

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

* Add optional "--topics" CLI parameter for recorder

- Deprecate positional "topics" parameter.
- Add test coverage for non-trivial cases in the recorder CLI parser.

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Use "--topics" instead of positional argument in integration tests

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Cleanup in the recorder CLI help section

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Add empty line to the end of the pytest.ini

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Add deprecation notice for positional topics argument in help section

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

---------

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 9146878)
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
@MichaelOrlov
Copy link
Contributor

MichaelOrlov commented May 23, 2024

Re-run CI after rebase
Pulls: #1640
Gist: https://gist.githubusercontent.com/MichaelOrlov/f8e6efbcd7f2b6bdb93528db97409a70/raw/1160fd6a3169df06fc39eef0484a4d85ff3fed4b/ros2.repos
BUILD args: --packages-above-and-dependencies ros2bag rosbag2_tests
TEST args: --packages-above ros2bag rosbag2_tests
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/13951

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

@MichaelOrlov MichaelOrlov merged commit 8e7e450 into jazzy May 23, 2024
14 checks passed
@delete-merged-branch delete-merged-branch bot deleted the mergify/bp/jazzy/pr-1632 branch May 23, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants