Tests on Windows falsely positive reporting passed due to SIGINT handling
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- operating-systems, testing-qa
Research direction
Start by reproducing the provided launch_testing scenario on Windows and inspect launch_testing/asserts/assert_exit_codes.py, especially the handling of exit_code=1. Trace the SIGINT and SIGTERM behavior referenced in the issue and launch PR #94. Done means a gtest process exiting with code 1 causes assertExitCodes to report a failure rather than passing.
Written by the indexing model from the issue text.
Description
Bug report
Required Info:
- Operating System: Windows
- Installation type: Binary through Robostack/ms-iot
- Version or commit hash: humble
- DDS implementation: the default bundled one
- Client library (if applicable): rclcpp
Steps to reproduce issue
- Write a launch file in Python to launch one or more nodes.
- Write a gtest executable (for communication) that exit with code
1. - build and test with
rostestandlaunch_testing.asserts.assertExitCodes:@pytest.mark.rostest def generate_test_description(): return ( LaunchDescription( [...] ), {...: ...}, ) @launch_testing.post_shutdown_test() class TestOutcome(unittest.TestCase): def test_exit_codes(self, proc_info): launch_testing.asserts.assertExitCodes(proc_info)
Expected behavior
Failures are reported through assertExitCodes with a non-zero exit code.
Actual behavior
The test passes.
Additional information
This is related to https://github.com/ros2/launch/pull/94 which sends SIGTERM (it is stated that SIGINT is not supported in Windows).
Besides, exit_code=1 is allowed in https://github.com/ros2/launch/blob/d9ffd805e3d9ca42fe4dd0019ae095e9eb0d4d72/launch_testing/launch_testing/asserts/assert_exit_codes.py#L34-L39
Ask for help
- Are there any available workarounds for writing tests on Windows?
- Which component fails to handle SIGINT on Windows: the launch service or ROS2 executors?
@hidmic Do you have some information? (I notice the TODO are assigned to you.)
- Dominant language
- Python
- Stars
- 156
- Forks
- 200
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 11
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ros2/launch
-
Use a relative target for the `latest` log symlink so it survives different absolute mount paths (host/Docker)Possibly taken @Old-Ding claimed this 139 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ros2/launch#978 · 1 reaction ·
Maintainers usually reply within 1 day
-
Add OpaqueFunction to list at docs.ros.orgMay be free again A pull request for this issue was closed without being merged. Openbug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ros2/launch#826 · 4 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
-
[launch_testing] pytest>8.1 dropped the legacy "path" argument from its internal hooks on humblePossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
ros2/launch#979 · 6 comments ·
Maintainers usually reply within 1 day
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
hive size:simple
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
backend enhancement priority:P3
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
geolens-io/geolens#4161 ·
Maintainers usually reply within 1 day