Skip to content

Conversation

@cottsay
Copy link
Member

@cottsay cottsay commented Jun 30, 2025

Description

Use the rmw_test_isolation system for creating a communication sandbox for each test.

Fixes # (issue)

Is this user-facing behavior change?

Yes, ros2cli.helpers.get_rmw_additional_env will no longer enable multicast for Zenoh.

Did you use Generative AI?

No

@cottsay cottsay requested a review from Yadunund June 30, 2025 14:13
@cottsay cottsay self-assigned this Jun 30, 2025
@cottsay cottsay added the enhancement New feature or request label Jun 30, 2025
@cottsay
Copy link
Member Author

cottsay commented Jun 30, 2025

PR job failures look real, reverting to draft until they're solved.

EDIT: Of course, we'll need a release of ament_cmake_ros to get the upstream changes into the PR builds.

@cottsay cottsay force-pushed the cottsay/rmw-test-isolation branch from 31ecfaa to 9c6c5c9 Compare July 7, 2025 19:51
@cottsay
Copy link
Member Author

cottsay commented Jul 7, 2025

@ros-pull-request-builder retest this

EDIT: Manual retry shows only the same two test failures we've had in this package for a while now: https://build.ros2.org/job/Rpr__ros2cli__ubuntu_noble_amd64/218/

@cottsay cottsay marked this pull request as ready for review July 7, 2025 21:48
@cottsay
Copy link
Member Author

cottsay commented Jul 7, 2025

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

Copy link
Collaborator

@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

Copy link
Member

@Yadunund Yadunund left a comment

Choose a reason for hiding this comment

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

LGTM! Excited to see this land!

@Yadunund
Copy link
Member

Yadunund commented Jul 14, 2025

Rerunning CI since it's been a while

CI_BRANCH_TO_TEST: cottsay/rmw-test-isolation
BUILD_ARGS: --packages-up-to ros2action ros2cli ros2doctor ros2lifecycle ros2node ros2param ros2service ros2topic
TEST_ARGS: --packages-select ros2action ros2cli ros2doctor ros2lifecycle ros2node ros2param ros2service ros2topic

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

@Blast545
Copy link
Contributor

@Mergifyio backport kilted

@mergify
Copy link

mergify bot commented Sep 27, 2025

backport kilted

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 27, 2025
Signed-off-by: Scott K Logan <[email protected]>
(cherry picked from commit 75e004a)
fujitatomoya added a commit that referenced this pull request Nov 16, 2025
* Use rmw_test_fixture to isolate ros2cli tests (#1062)

Signed-off-by: Scott K Logan <[email protected]>
(cherry picked from commit 75e004a)

* Fujitatomoya/clearup isolated ros2daemon (#1098)

* Enable RMW isolation for ros2doctor.test_report.

Signed-off-by: Tomoya Fujita <[email protected]>

* ResetEnvironment on shutdown is missing.

Signed-off-by: Tomoya Fujita <[email protected]>

* Clean up isolated ros2 daemon process when tests complete.

Signed-off-by: Tomoya Fujita <[email protected]>

* Clean up isolated ros2 daemon process for ros2topic.

Signed-off-by: Tomoya Fujita <[email protected]>

* Clean up isolated ros2 daemon process for ros2action.

Signed-off-by: Tomoya Fujita <[email protected]>

* Clean up isolated ros2 daemon process for ros2doctor.

Signed-off-by: Tomoya Fujita <[email protected]>

* Clean up isolated ros2 daemon process for ros2lifecycle and ros2node.

Signed-off-by: Tomoya Fujita <[email protected]>

* Clean up isolated ros2 daemon process for ros2param.

Signed-off-by: Tomoya Fujita <[email protected]>

---------

Signed-off-by: Tomoya Fujita <[email protected]>

* Missing backport

Signed-off-by: Jorge J. Perez <[email protected]>

* Fix extra backport

Signed-off-by: Jorge J. Perez <[email protected]>

* Add missing import

Signed-off-by: Jorge J. Perez <[email protected]>

---------

Signed-off-by: Scott K Logan <[email protected]>
Signed-off-by: Tomoya Fujita <[email protected]>
Signed-off-by: Jorge J. Perez <[email protected]>
Co-authored-by: Scott K Logan <[email protected]>
Co-authored-by: Tomoya Fujita <[email protected]>
Co-authored-by: Jorge J. Perez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants