ros2 / examples

Example packages for ROS 2
Apache License 2.0
727 stars 316 forks source link

:farmer: launch_testing_exaples tests `set_param_launch_test` and `check_node_launch_test` RuntimeError in Humble and Iron Connext #391

Closed Crola1702 closed 1 month ago

Crola1702 commented 3 months ago

Bug report

Required Info:

Steps to reproduce issue

  1. Run a build in Hci__nightly-connext_ubuntu_jammy_amd64 or Ici__nightly-connext_ubuntu_jammy_amd64
  2. See launch_testing_examples test failures

Additional information

Reference build:

Test regressions:

Log output:

=================================== FAILURES ===================================
_________ launch tests: launch_testing_examples.check_node_launch_test _________

========================================================================================================================================================
FAIL: launch_testing_examples.check_node_launch_test.TestFixture.test_node_start
--------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/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 "/tmp/ws/install_isolated/rclpy/local/lib/python3.10/dist-packages/rclpy/__init__.py", line 88, in init
    context.init(args, domain_id=domain_id)
  File "/tmp/ws/install_isolated/rclpy/local/lib/python3.10/dist-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

...

_________ launch tests: launch_testing_examples.set_param_launch_test __________

==========================================================================================================================================================
FAIL: launch_testing_examples.set_param_launch_test.TestFixture.test_set_parameter
----------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/ws/src/ros2/examples/launch_testing/launch_testing_examples/launch_testing_examples/set_param_launch_test.py", line 47, in test_set_parameter
    rclpy.init()
  File "/tmp/ws/install_isolated/rclpy/local/lib/python3.10/dist-packages/rclpy/__init__.py", line 88, in init
    context.init(args, domain_id=domain_id)
  File "/tmp/ws/install_isolated/rclpy/local/lib/python3.10/dist-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
fujitatomoya commented 2 months ago

@Crola1702 it looks like fixes are already applied to humble and iron, do we still have the same failure after those patches? or we can close this one?

Crola1702 commented 1 month ago

@Crola1702 it looks like fixes are already applied to humble and iron, do we still have the same failure after those patches? or we can close this one?

This is not happening anymore. Thanks for the reminder