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

Make use of Result types for internal control flow. #137

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Update service.

c049162
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

Make use of Result types for internal control flow. #137

Update service.
c049162
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results failed Nov 3, 2024 in 0s

16 errors in 2s

16 tests  ±0    0 ✅ ±0   2s ⏱️ -1s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0   16 🔥 ±0 

Results for commit c049162. ± Comparison against earlier commit bad4234.

Annotations

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.test_helpers (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/test_helpers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_helpers.py:28: in <module>
    from ros_bt_py.helpers import (
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.test_package_manager (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/test_package_manager.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_package_manager.py:30: in <module>
    from ros_bt_py.package_manager import PackageManager
ros_bt_py/package_manager.py:51: in <module>
    from ros_bt_py.node import increment_name
ros_bt_py/node.py:70: in <module>
    from ros_bt_py.node_data import NodeData, NodeDataMap
ros_bt_py/node_data.py:33: in <module>
    from ros_bt_py.helpers import json_encode
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.nodes.test_wait (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/nodes/test_wait.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/nodes/test_wait.py:32: in <module>
    from ros_bt_py.nodes.wait import Wait, WaitInput
ros_bt_py/nodes/__init__.py:28: in <module>
    from . import compare
ros_bt_py/nodes/compare.py:30: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_enum (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_enum.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_enum.py:33: in <module>
    from ros_bt_py.ros_nodes.enum import Enum
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_enum_fields (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_enum_fields.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_enum_fields.py:32: in <module>
    from ros_bt_py.ros_nodes.enum import EnumFields
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_fields_to_message (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_fields_to_message.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_fields_to_message.py:32: in <module>
    from ros_bt_py.ros_nodes.message_converters import FieldsToMessage
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_message_from_dict (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_message_from_dict.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_message_from_dict.py:29: in <module>
    from ros_bt_py.ros_nodes.messages_from_dict import MessageFromDict
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_message_from_dict_const (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_message_from_dict_const.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_message_from_dict_const.py:29: in <module>
    from ros_bt_py.ros_nodes.messages_from_dict import MessageFromConstDict
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_message_to_fields (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_message_to_fields.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_message_to_fields.py:32: in <module>
    from ros_bt_py.ros_nodes.message_converters import MessageToFields
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_ros_param_input (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_ros_param_input.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_ros_param_input.py:31: in <module>
    from ros_bt_py.ros_nodes.param import RosParamInput
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_ros_param_option (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_ros_param_option.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_ros_param_option.py:31: in <module>
    from ros_bt_py.ros_nodes.param import RosParamOption
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_ros_param_option_default_input (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_ros_param_option_default_input.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_ros_param_option_default_input.py:31: in <module>
    from ros_bt_py.ros_nodes.param import RosParamOptionDefaultInput
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_service (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_service.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_service.py:32: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_service_input (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_service_input.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_service_input.py:32: in <module>
    from ros_bt_py.ros_nodes.service import ServiceInput
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_wait_for_service (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_wait_for_service.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_wait_for_service.py:32: in <module>
    from ros_bt_py.ros_nodes.service import WaitForService
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

Check failure on line 0 in ros_bt_py

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests.ros_nodes.test_wait_for_service_input (ros_bt_py) with error

artifacts/Test Results (ROS humble)/ros_bt_py/pytest.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/ros2_ros_bt_py/ros2_ros_bt_py/.build/target_ws/src/ros2_ros_bt_py/ros_bt_py/tests/ros_nodes/test_wait_for_service_input.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/ros_nodes/test_wait_for_service_input.py:32: in <module>
    from ros_bt_py.ros_nodes.service import WaitForServiceInput
ros_bt_py/ros_nodes/__init__.py:28: in <module>
    from . import service
ros_bt_py/ros_nodes/service.py:36: in <module>
    from ros_bt_py.helpers import BTNodeState
ros_bt_py/helpers.py:28: in <module>
    from enum import StrEnum
E   ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)