Skip to content

[iron] Add recorder stop() API (backport #1300) #1334

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

Merged
merged 1 commit into from
May 17, 2023

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 16, 2023

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


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* Expose Writer::close() as public API and add Recorder::stop() API

Signed-off-by: Michael Orlov <[email protected]>
Co-authored-by: aditya <[email protected]>

* Move routines from recorder's destructor to RecorderImpl::stop()

Signed-off-by: Michael Orlov <[email protected]>

* Add can_record_again_after_stop unit test in rosbag2_transport

Signed-off-by: Michael Orlov <[email protected]>

* Update Doxygen comments for stop() and pause() API in recorder.hpp

Signed-off-by: Michael Orlov <[email protected]>

---------

Signed-off-by: Michael Orlov <[email protected]>
Co-authored-by: aditya <[email protected]>
(cherry picked from commit a218e37)
@mergify mergify bot requested a review from a team as a code owner May 16, 2023 18:13
@mergify mergify bot requested review from emersonknapp and jhdcs and removed request for a team May 16, 2023 18:13
@mergify mergify bot mentioned this pull request May 16, 2023
@MichaelOrlov MichaelOrlov changed the title Add recorder stop() API (backport #1300) [iron] Add recorder stop() API (backport #1300) May 16, 2023
@MichaelOrlov MichaelOrlov requested a review from clalancette May 16, 2023 18:14
@MichaelOrlov
Copy link
Contributor

Gist: https://gist.githubusercontent.com/MichaelOrlov/ec3532e44fbd21961822e268e61c5694/raw/b6678a24315515c1ea0a339873910a8168920912/ros2.repos
BUILD args: --packages-above-and-dependencies rosbag2_transport rosbag2_cpp
TEST args: --packages-above rosbag2_transport rosbag2_cpp
ROS Distro: iron
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/12071

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

@MichaelOrlov
Copy link
Contributor

@clalancette I want to merge this PR to the iron branch.
This PR exposing rosbag2_cpp::writer::close() and rosbag2_transport::close() API.
This is breaking API/ABI changes. Nevertheless, I would like to merge it to iron if you wouldn't mind since this PR will be must have to be able to fix multiple issues related to the signals handling on Windows without breaking API/ABI in future.
It is relates to the #1326 and #1270

@clalancette
Copy link
Contributor

This is breaking API/ABI changes. Nevertheless, I would like to merge it to iron if you wouldn't mind since this PR will be must have to be able to fix multiple issues related to the signals handling on Windows without breaking API/ABI in future.

That's fine, we still have about 2 days to get these kind of changes in.

@MichaelOrlov
Copy link
Contributor

@clalancette The same question here. Do you have any idea why so many test failures in ipr job https://build.ros2.org/job/Ipr__rosbag2__ubuntu_jammy_amd64/3/#showFailuresLink
While CI is green?

@MichaelOrlov
Copy link
Contributor

@ros-pull-request-builder retest this please

@MichaelOrlov
Copy link
Contributor

@clalancette It seems it was some intermittent problem in CI infrastructure. After retesting ipr job all tests are passing.

I am re-running the Windows CI job since it failed in some unrelated tests.

  • Windows Build Status

Error message from previous CI run on Windows for reference.

FAIL: launch_testing_examples.check_node_launch_test.TestFixture.test_node_start
---------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\ci\ws\src\ros2\examples\launch_testing\launch_testing_examples\launch_testing_examples\check_node_launch_test.py", line 48, in test_node_start
    rclpy.init()
  File "C:\ci\ws\install\Lib\site-packages\rclpy\__init__.py", line 89, in init
    return context.init(args, domain_id=domain_id)
  File "C:\ci\ws\install\Lib\site-packages\rclpy\context.py", line 70, in init
    raise RuntimeError('Context.init() must only be called once')
RuntimeError: Context.init() must only be called once

@MichaelOrlov MichaelOrlov merged commit eff48dd into iron May 17, 2023
@delete-merged-branch delete-merged-branch bot deleted the mergify/bp/iron/pr-1300 branch May 17, 2023 07:12
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