Skip to content

Add tests isolation in test_rclcpp#583

Merged
fujitatomoya merged 2 commits intoros2:rollingfrom
JEnoch:isolate_rmw_zenoh_tests
Feb 24, 2026
Merged

Add tests isolation in test_rclcpp#583
fujitatomoya merged 2 commits intoros2:rollingfrom
JEnoch:isolate_rmw_zenoh_tests

Conversation

@JEnoch
Copy link
Copy Markdown
Contributor

@JEnoch JEnoch commented Feb 23, 2026

Description

As discussed in ros2/rmw_zenoh#881 (comment), this PR adds tests isolation to all tests initializing a Context or a Node, in order to start a Zenoh router in case of rmw_zenoh_cpp.

More specifically:

  • in test_rclcpp/CMakeLists.txt:
    calls to ament_add_gtest_test are replaced with call to ament_add_ros_isolated_gtest_test
  • in test_rclcpp/test/test_executable_output.py.in and test_rclcpp/test/test_sigterm.py.in which are using LaunchDescription:
    a EnableRmwIsolation() is added, and the the way to update the env for output format is changed to not override that environment change made by EnableRmwIsolation()

Is this user-facing behavior change?

No

Did you use Generative AI?

No

Signed-off-by: Julien Enoch <julien.e@zettascale.tech>
…able_output.py.in which are using a LaunchDescription

Signed-off-by: Julien Enoch <julien.e@zettascale.tech>
@JEnoch
Copy link
Copy Markdown
Contributor Author

JEnoch commented Feb 23, 2026

Pulls: #583
Gist: https://gist.githubusercontent.com/JEnoch/f0e79be96fd0e6e01b9e582ad16354aa/raw/097d7601b783c044e5b1a78a2e1564ed9adbc289/ros2.repos
BUILD args: --continue-on-error --packages-above-and-dependencies test_rclcpp
TEST args: --packages-above test_rclcpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18293

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

Copy link
Copy Markdown
Contributor

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm with green CI.

@fujitatomoya fujitatomoya merged commit 3d0fde9 into ros2:rolling Feb 24, 2026
3 checks passed
@JEnoch JEnoch deleted the isolate_rmw_zenoh_tests branch February 25, 2026 10:52
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