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

Fix for ros2 bag play exit with non-zero code on SIGINT #1126

Merged

Conversation

MichaelOrlov
Copy link
Contributor

@MichaelOrlov MichaelOrlov commented Oct 15, 2022

Fix for ros2 bag play exit with non-zero code on SIGINT

@MichaelOrlov MichaelOrlov force-pushed the morlov/fix-for-ros2-bag-play-exitcode-2-on-sigint branch from 0f7b6db to b1de937 Compare October 15, 2022 06:29
- Don't allow to propagate KeyboardInterrupt exception on upper level
from python wrapper for play verb.
- Fixed incorrect errors check in process_execution infrastructure
when SIG_INT not processed in child process.

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
@MichaelOrlov MichaelOrlov force-pushed the morlov/fix-for-ros2-bag-play-exitcode-2-on-sigint branch from b1de937 to 476291a Compare October 15, 2022 08:10
@MichaelOrlov
Copy link
Contributor Author

Gist: https://gist.githubusercontent.com/MichaelOrlov/aade93f33f4aaa1e9c01f5c1b03a246d/raw/e8932793f1fbb3eb9403cca35e2faed867f0419b/ros2.repos
BUILD args: --packages-above-and-dependencies ros2bag rosbag2_tests
TEST args: --packages-above ros2bag rosbag2_tests
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/10993

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

@MichaelOrlov MichaelOrlov marked this pull request as ready for review October 15, 2022 08:21
@MichaelOrlov MichaelOrlov requested a review from a team as a code owner October 15, 2022 08:21
@MichaelOrlov MichaelOrlov requested review from gbiggs, hidmic, emersonknapp and christophebedard and removed request for a team October 15, 2022 08:21
@MichaelOrlov
Copy link
Contributor Author

@emersonknapp @jhdcs @gbiggs Kindly ping for review

@MichaelOrlov MichaelOrlov merged commit 30d3889 into rolling Nov 2, 2022
@delete-merged-branch delete-merged-branch bot deleted the morlov/fix-for-ros2-bag-play-exitcode-2-on-sigint branch November 2, 2022 09:21
@MichaelOrlov
Copy link
Contributor Author

https://github.com/Mergifyio backport humble

@mergify
Copy link

mergify bot commented Nov 2, 2022

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Nov 2, 2022
- Don't allow to propagate KeyboardInterrupt exception on upper level
from python wrapper for play verb.
- Fixed incorrect errors check in process_execution infrastructure
when SIG_INT not processed in child process.

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

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit 30d3889)
MichaelOrlov added a commit that referenced this pull request Nov 3, 2022
- Don't allow to propagate KeyboardInterrupt exception on upper level
from python wrapper for play verb.
- Fixed incorrect errors check in process_execution infrastructure
when SIG_INT not processed in child process.

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

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit 30d3889)

Co-authored-by: Michael Orlov <michael.orlov@apex.ai>
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.

ros2 bag play exiting with code 2 by SIGINT or CTRL+C
2 participants