0.29.9 introduces a regression on lyrical

Open
#550 0 comments 0 reactions 0 assignees View on GitHub

@Old-Ding is already working on this.

Since Jul 10, 2026.

  • #551 by @Old-Ding — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
docker, python
Domain
testing

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

bug
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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/launch_ros

All issues in ros2/launch_ros

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.