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

[Test Failure] rclpy / test_action_client #315

Open
YuanYuYuan opened this issue Nov 18, 2024 · 0 comments
Open

[Test Failure] rclpy / test_action_client #315

YuanYuYuan opened this issue Nov 18, 2024 · 0 comments

Comments

@YuanYuYuan
Copy link
Contributor

YuanYuYuan commented Nov 18, 2024

/usr/bin/python3 "-u" "/opt/ros/rolling/share/ament_cmake_test/cmake/run_test.py" "/workspace/build/rclpy/test_results/rclpy/test_action_client.xunit.xml" "--package-name" "rclpy" "--output-file" "/workspace/build/rclpy/ament_cmake_pytest/test_action_client.txt" "--env" "PYTHONDONTWRITEBYTECODE=1" "--append-env" "AMENT_PREFIX_PATH=/workspace/build/rclpy/ament_cmake_index" "PYTHONPATH=/workspace/build/rclpy" "--command" "/usr/bin/python3" "-u" "-m" "pytest" "/workspace/src2/rclpy/rclpy/test/test_action_client.py" "-o" "cache_dir=/workspace/build/rclpy/ament_cmake_pytest/test_action_client/.cache" "--junit-xml=/workspace/build/rclpy/test_results/rclpy/test_action_client.xunit.xml" "--junit-prefix=rclpy" "-We"
-- run_test.py: extra environment variables:
 - PYTHONDONTWRITEBYTECODE=1
-- run_test.py: extra environment variables to append:
 - AMENT_PREFIX_PATH+=/workspace/build/rclpy/ament_cmake_index
 - PYTHONPATH+=/workspace/build/rclpy
-- run_test.py: invoking following command in '/workspace':
 - /usr/bin/python3 -u -m pytest /workspace/src2/rclpy/rclpy/test/test_action_client.py -o cache_dir=/workspace/build/rclpy/ament_cmake_pytest/test_action_client/.cache --junit-xml=/workspace/build/rclpy/test_results/rclpy/test_action_client.xunit.xml --junit-prefix=rclpy -We
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
cachedir: /workspace/build/rclpy/ament_cmake_pytest/test_action_client/.cache
rootdir: /workspace/src2/rclpy
configfile: pytest.ini
plugins: ament-flake8-0.18.1, ament-xmllint-0.18.1, ament-lint-0.18.1, ament-pep257-0.18.1, launch-testing-3.6.1, launch-testing-ros-0.27.2, ament-copyright-0.18.1, colcon-core-0.18.1
collected 17 items

src2/rclpy/rclpy/test/test_action_client.py ......F..........            [100%]

=================================== FAILURES ===================================
____________________ TestActionClient.test_send_goal_async _____________________

self = <test.test_action_client.TestActionClient testMethod=test_send_goal_async>

    def test_send_goal_async(self) -> None:
>       ac = ActionClient(self.node, Fibonacci, 'fibonacci')

src2/rclpy/rclpy/test/test_action_client.py:158:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <rclpy.action.client.ActionClient object at 0x7fcab754b050>
node = <rclpy.node.Node object at 0x7fcabc3daf60>
action_type = <class 'test_msgs.action._fibonacci.Fibonacci'>
action_name = 'fibonacci'

    def __init__(
        self,
        node,
        action_type,
        action_name,
        *,
        callback_group=None,
        goal_service_qos_profile=qos_profile_services_default,
        result_service_qos_profile=qos_profile_services_default,
        cancel_service_qos_profile=qos_profile_services_default,
        feedback_sub_qos_profile=QoSProfile(depth=10),
        status_sub_qos_profile=qos_profile_action_status_default
    ):
        """
        Create an ActionClient.

        :param node: The ROS node to add the action client to.
        :param action_type: Type of the action.
        :param action_name: Name of the action.
            Used as part of the underlying topic and service names.
        :param callback_group: Callback group to add the action client to.
            If None, then the node's default callback group is used.
        :param goal_service_qos_profile: QoS profile for the goal service.
        :param result_service_qos_profile: QoS profile for the result service.
        :param cancel_service_qos_profile: QoS profile for the cancel service.
        :param feedback_sub_qos_profile: QoS profile for the feedback subscriber.
        :param status_sub_qos_profile: QoS profile for the status subscriber.
        """
        if callback_group is None:
            callback_group = node.default_callback_group

        super().__init__(callback_group)

        # Import the typesupport for the action module if not already done
        check_for_type_support(action_type)
        self._node = node
        self._action_type = action_type
        self._action_name = action_name
        with node.handle:
>           self._client_handle = _rclpy.ActionClient(
                node.handle,
                action_type,
                action_name,
                goal_service_qos_profile.get_c_qos_profile(),
                result_service_qos_profile.get_c_qos_profile(),
                cancel_service_qos_profile.get_c_qos_profile(),
                feedback_sub_qos_profile.get_c_qos_profile(),
                status_sub_qos_profile.get_c_qos_profile()
            )
E           ValueError: Failed to create action client: error not set, at ./src/rcl/client.c:146

src2/rclpy/rclpy/rclpy/action/client.py:163: ValueError
----------------------------- Captured stderr call -----------------------------
[ERROR] [1731922779.379596408] [rmw_zenoh_cpp]: ClientData already exists.
- generated xml file: /workspace/build/rclpy/test_results/rclpy/test_action_client.xunit.xml -
=========================== short test summary info ============================
FAILED src2/rclpy/rclpy/test/test_action_client.py::TestActionClient::test_send_goal_async
======================== 1 failed, 16 passed in 11.14s =========================
-- run_test.py: return code 1
-- run_test.py: verify result file '/workspace/build/rclpy/test_results/rclpy/test_action_client.xunit.xml'
@YuanYuYuan YuanYuYuan changed the title [rclpy] test_action_client failure [Test Failure] rclpy / test_action_client Nov 18, 2024
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

No branches or pull requests

1 participant