0.29.9 introduces a regression on lyrical
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Run the provided Dockerfile to reproduce the failure, then inspect launch_testing/pytest/hooks.py at the pytest_addhooks traceback and compare the 0.29.9 behavior with the working Lyrical main version. Trace the related hook specification and verify that colcon test and colcon test-result complete successfully.
Written by the indexing model from the issue text.
Description
Generated by Generative AI
No
Operating System:
Ubuntu 26.04
ROS version or commit hash:
Lyrical
RMW implementation (if applicable):
RMW Configuration (if applicable):
I'm trying to fix a build failure in pcl_ros. I think its related a regression in version 0.29.9 of launch_ros that was recently released in lyrical. If you build pcl_ros on lyrical main it succeeds, but when you compile with 0.29.9 from source it fails.
https://build.ros2.org/job/Ldev__perception_pcl__ubuntu_resolute_amd64/12/console
15:25:21 21: Traceback (most recent call last):
15:25:21 21: File "<frozen runpy>", line 198, in _run_module_as_main
15:25:21 21: File "<frozen runpy>", line 88, in _run_code
15:25:21 21: File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in <module>
15:25:21 21: raise SystemExit(pytest.console_main())
15:25:21 21: ~~~~~~~~~~~~~~~~~~~^^
15:25:21 21: File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 223, in console_main
15:25:21 21: code = main()
15:25:21 21: File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 193, in main
15:25:21 21: config = _prepareconfig(new_args, plugins)
15:25:21 21: File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 361, in _prepareconfig
15:25:21 21: config: Config = pluginmanager.hook.pytest_cmdline_parse(
15:25:21 21: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
15:25:21 21: pluginmanager=pluginmanager, args=args
15:25:21 21: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:25:21 21: )
15:25:21 21: ^
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 512, in __call__
15:25:21 21: return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
15:25:21 21: ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
15:25:21 21: return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
15:25:21 21: ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 167, in _multicall
15:25:21 21: raise exception
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
15:25:21 21: teardown.throw(exception)
15:25:21 21: ~~~~~~~~~~~~~~^^^^^^^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/_pytest/helpconfig.py", line 124, in pytest_cmdline_parse
15:25:21 21: config = yield
15:25:21 21: ^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 121, in _multicall
15:25:21 21: res = hook_impl.function(*args)
15:25:21 21: File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 1186, in pytest_cmdline_parse
15:25:21 21: self.parse(args)
15:25:21 21: ~~~~~~~~~~^^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 1539, in parse
15:25:21 21: self.pluginmanager.load_setuptools_entrypoints("pytest11")
15:25:21 21: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 417, in load_setuptools_entrypoints
15:25:21 21: self.register(plugin, name=ep.name)
15:25:21 21: ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 522, in register
15:25:21 21: plugin_name = super().register(plugin, name)
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 169, in register
15:25:21 21: hook._maybe_apply_history(hookimpl)
15:25:21 21: ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 580, in _maybe_apply_history
15:25:21 21: res = self._hookexec(self.name, [method], kwargs, False)
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
15:25:21 21: return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
15:25:21 21: ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 167, in _multicall
15:25:21 21: raise exception
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 121, in _multicall
15:25:21 21: res = hook_impl.function(*args)
15:25:21 21: File "/opt/ros/lyrical/lib/python3.14/site-packages/launch_testing/pytest/hooks.py", line 236, in pytest_addhooks
15:25:21 21: pluginmanager.add_hookspecs(hookspecs)
15:25:21 21: ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 267, in add_hookspecs
15:25:21 21: self._verify_hook(hc, hookfunction)
15:25:21 21: ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
15:25:21 21: File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 343, in _verify_hook
15:25:21 21: raise PluginValidationError(
15:25:21 21: ...<5 lines>...
15:25:21 21: )
15:25:21 21: pluggy._manager.PluginValidationError: Plugin 'launch_ros' for hook 'pytest_launch_collect_makemodule'
15:25:21 21: hookimpl definition: pytest_launch_collect_makemodule(module_path, parent, entrypoint)
15:25:21 21: Argument(s) {'module_path'} are declared in the hookimpl but can not be found in the hookspec
Client library (if applicable):
No response
'ros2 doctor --report' output
ros2 doctor --report
<COPY OUTPUT HERE>
Steps to reproduce issue
Run this Dockerfile:
FROM ros:lyrical-ros-base
SHELL ["/bin/bash", "-c"]
WORKDIR /root/ws
RUN git clone https://github.com/ros-perception/perception_pcl.git
RUN git clone https://github.com/ros2/launch_ros.git -b 0.29.9
RUN apt-get update && \
rosdep install --from-paths . -i -y
RUN source "/opt/ros/$ROS_DISTRO/setup.bash" && colcon build
RUN source "/opt/ros/$ROS_DISTRO/setup.bash" && colcon test
RUN source "/opt/ros/$ROS_DISTRO/setup.bash" && colcon test-result --verbose
Expected behavior
All tests run
Actual behavior
See command line output
Additional information
No response
- Dominant language
- Python
- Stars
- 84
- Forks
- 115
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ros2/launch_ros
-
yaml.add_representer in Node._create_params_file_from_dict mutates global yaml.Dumper, corrupting unrelated yaml.dump() calls in the same processPossibly taken @dlanov claimed this 73 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ros2/launch_ros#571 · 1 comment ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
ros2/launch_ros#595 ·
-
Unable to specifiy type of parameter when using `set_parameter`Possibly taken @SuperJappie08 claimed this 7 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
ros2/launch_ros#593 · 1 comment · 1 assignee ·
-
WaitForTopics blocks interpreter exit if shutdown() is never calledPossibly taken @aadilkhan085529 claimed this 15 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 53/100
ros2/launch_ros#592 · 1 comment ·
-
Feature request: ros2 launch --dump-params to statically export resolved node parametersPossibly taken @IdiotCoffee claimed this 56 days ago. Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
ros2/launch_ros#549 · 3 comments · 1 reaction ·
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gke-labs/kube-agents#7441 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
bug confirmed issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
open-webui/open-webui#35142 · 1 comment ·
Maintainers usually reply within 1 day