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

🧑‍🌾 ros2cli pytest timeout in RHEL nightlies #932

Closed
Crola1702 opened this issue Sep 16, 2024 · 17 comments
Closed

🧑‍🌾 ros2cli pytest timeout in RHEL nightlies #932

Crola1702 opened this issue Sep 16, 2024 · 17 comments

Comments

@Crola1702
Copy link
Contributor

Bug report

Required Info:

  • Operating System:
    • RHEL 9
  • Installation type:
    • Source
  • Version or commit hash:
    • Rolling

Steps to reproduce issue

  1. Run a build in nightly-rhel-debug or release
  2. See test regression fail

Additional information

Reference build: https://ci.ros2.org/job/nightly_linux-rhel_release/2020/

Test failure:

Log output:

timeout: 900.0s
timeout method: thread
timeout func_only: False
�[1mcollecting ... �[0m�[1m
collecting 0 items                                                             �[0m�[1m
collected 31 items                                                             �[0m

test/test_copyright.py �[32m.�[0m�[32m                                                 [  3%]�[0m
test/test_daemon.py �[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m                                  [ 64%]�[0m
test/test_direct.py �[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m                                                 [ 77%]�[0m
Fatal Python error: Segmentation fault

...

  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/src/ros2/ros2cli/ros2cli/test/test_flake8.py", line 22, in test_flake8
    rc, errors = main_with_errors(argv=[])
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 88, in main_with_errors
    report = generate_flake8_report(
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 281, in generate_flake8_report
    report.report = style.check_files(paths)

...

Finished <<< ros2cli [15min 10s]	[ with test failures ]

Seems ros2cli flake8 is taking a lot of time now. Failing since: #929, but probably not the root cause

Full log output:
platform linux -- Python 3.9.18, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
cachedir: /home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/build/ros2cli/.pytest_cache
rootdir: /home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/src/ros2/ros2cli, configfile: pytest.ini
plugins: launch-testing-3.6.1, ament-xmllint-0.18.1, ament-copyright-0.18.1, ament-pep257-0.18.1, ament-mypy-0.18.1, ament-flake8-0.18.1, ament-lint-0.18.1, timeout-1.4.2, mock-3.6.1, repeat-0.9.3, cov-4.0.0, colcon-core-0.17.0, rerunfailures-9.1.1
timeout: 900.0s
timeout method: thread
timeout func_only: False
�[1mcollecting ... �[0m�[1m
collecting 0 items                                                             �[0m�[1m
collected 31 items                                                             �[0m

test/test_copyright.py �[32m.�[0m�[32m                                                 [  3%]�[0m
test/test_daemon.py �[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m                                  [ 64%]�[0m
test/test_direct.py �[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m                                                 [ 77%]�[0m
Fatal Python error: Segmentation fault

Current thread 0x00007f49407c8740 (most recent call first):
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 294 in __init__
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 189 in <listcomp>
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 189 in get_noqa_lines
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 181 in run
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 500 in run_ast_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 597 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 687 in _run_checks
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 48 in mapstar
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 125 in worker
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 121 in start
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 326 in _repopulate_pool_static
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 303 in _repopulate_pool
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 212 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 119 in Pool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 664 in _try_initialize_processpool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 260 in run_parallel
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 309 in run
  File "/usr/lib/python3.9/site-packages/flake8/main/application.py", line 271 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/api/legacy.py", line 109 in check_files
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 281 in generate_flake8_report
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 88 in main_with_errors
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/src/ros2/ros2cli/ros2cli/test/test_flake8.py", line 22 in test_flake8
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 1641 in runtest
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 255 in <lambda>
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 215 in call_and_report
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 126 in runtestprotocol
  File "/builddir/build/BUILDROOT/python-pytest-rerunfailures-9.1.1-3.el9.noarch/usr/lib/python3.9/site-packages/pytest_rerunfailures.py", line 240 in pytest_runtest_protocol
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 323 in _main
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185 in console_main
  File "/usr/lib/python3.9/site-packages/pytest/__main__.py", line 5 in <module>
  File "/usr/lib64/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib64/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Segmentation fault

Current thread 0x00007f49407c8740 (most recent call first):
  File "<string>", line 1 in <lambda>
  File "/usr/lib64/python3.9/tokenize.py", line 590 in _tokenize
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 189 in <listcomp>
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 189 in get_noqa_lines
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 181 in run
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 500 in run_ast_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 597 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 687 in _run_checks
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 48 in mapstar
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 125 in worker
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 121 in start
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 326 in _repopulate_pool_static
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 303 in _repopulate_pool
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 212 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 119 in Pool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 664 in _try_initialize_processpool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 260 in run_parallel
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 309 in run
  File "/usr/lib/python3.9/site-packages/flake8/main/application.py", line 271 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/api/legacy.py", line 109 in check_files
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 281 in generate_flake8_report
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 88 in main_with_errors
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/src/ros2/ros2cli/ros2cli/test/test_flake8.py", line 22 in test_flake8
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 1641 in runtest
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 255 in <lambda>
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 215 in call_and_report
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 126 in runtestprotocol
  File "/builddir/build/BUILDROOT/python-pytest-rerunfailures-9.1.1-3.el9.noarch/usr/lib/python3.9/site-packages/pytest_rerunfailures.py", line 240 in pytest_runtest_protocol
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 323 in _main
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185 in console_main
  File "/usr/lib/python3.9/site-packages/pytest/__main__.py", line 5 in <module>
  File "/usr/lib64/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib64/python3.9/runpy.py", line 197 in _run_module_as_main

+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Captured stderr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
option --max-complexity: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --application-import-names: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --application-package-names: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --import-order-style: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --inline-quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --multiline-quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --docstring-quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future

~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-28 (139950930503232) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 576, in _handle_results
    task = get()
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 254, in recv
    buf = self._recv_bytes()
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 418, in _recv_bytes
    buf = self._recv(4)
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 383, in _recv
    chunk = read(handle, remaining)

~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-27 (139950947288640) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 528, in _handle_tasks
    for taskseq, set_length in iter(taskqueue.get, None):

~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-26 (139951743956544) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 519, in _handle_workers
    cls._wait_for_updates(current_sentinels, change_notifier)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 499, in _wait_for_updates
    wait(sentinels, timeout=timeout)
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 935, in wait
    ready = selector.select(timeout)
  File "/usr/lib64/python3.9/selectors.py", line 416, in select
    fd_event_list = self._selector.poll(timeout)

~~~~~~~~~~~~~~~~~~~~ Stack of MainThread (139952591243072) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.9/site-packages/pytest/__main__.py", line 5, in <module>
    raise SystemExit(pytest.console_main())
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185, in console_main
    code = main()
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162, in main
    ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 323, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 348, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/builddir/build/BUILDROOT/python-pytest-rerunfailures-9.1.1-3.el9.noarch/usr/lib/python3.9/site-packages/pytest_rerunfailures.py", line 240, in pytest_runtest_protocol
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 126, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 215, in call_and_report
    call = call_runtest_hook(item, when, **kwds)
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 254, in call_runtest_hook
    return CallInfo.from_call(
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311, in from_call
    result: Optional[TResult] = func()
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 255, in <lambda>
    lambda: ihook(item=item, **kwds), when=when, reraise=reraise
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 162, in pytest_runtest_call
    item.runtest()
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 1641, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 183, in pytest_pyfunc_call
    result = testfunction(**testargs)
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/src/ros2/ros2cli/ros2cli/test/test_flake8.py", line 22, in test_flake8
    rc, errors = main_with_errors(argv=[])
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 88, in main_with_errors
    report = generate_flake8_report(
  File "/home/jenkins-agent/workspace/nightly_linux-rhel_release/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 281, in generate_flake8_report
    report.report = style.check_files(paths)
  File "/usr/lib/python3.9/site-packages/flake8/api/legacy.py", line 109, in check_files
    self._application.run_checks(paths)
  File "/usr/lib/python3.9/site-packages/flake8/main/application.py", line 271, in run_checks
    self.file_checker_manager.run()
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 309, in run
    self.run_parallel()
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 275, in run_parallel
    for ret in pool_map:
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 448, in <genexpr>
    return (item for chunk in result for item in chunk)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 858, in next
    self._cond.wait(timeout)
  File "/usr/lib64/python3.9/threading.py", line 312, in wait
    waiter.acquire()

+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++
@clalancette
Copy link
Contributor

I took a look into this, and this is almost certainly failing because of ros2/rclpy#1349 . Since that is such a large PR, it will be somewhat hard to track it down exactly, but with that reverted the failure stops happening for me.

@fujitatomoya
Copy link
Collaborator

@clalancette @Crola1702 ros2/rclpy#1359 revert PR.

@fujitatomoya
Copy link
Collaborator

Current Summary

There are 2 possible PRs to generate this RHEL issue.

@Crola1702 if possible, can you check with current rolling if this issue is still happening with RHEL? i just want to be sure if either or both of them are generating this issue.

CC: @clalancette @InvincibleRMC

@InvincibleRMC
Copy link

Looking at nightly It still seems to be failing. So Revert "Executors types (#1345)" rclpy#1360) was not enough.

@fujitatomoya
Copy link
Collaborator

@InvincibleRMC thanks, then let's revert ros2/rclpy#1359

@fujitatomoya
Copy link
Collaborator

@InvincibleRMC both ros2/rclpy#1359 and ros2/rclpy#1360 are reverted, hopefully RHEL nightly comes back with green light 🤞

@clalancette
Copy link
Contributor

Since I was able to reproduce the issue, I'm pretty sure that ros2/rclpy#1359 fixes this. I'm going to close this issue out, but feel free to reopen if it reoccurs.

@Crola1702
Copy link
Contributor Author

This is happening consistently in nightly_linux-rhel_release

job_name last_fail first_fail build_count failure_count failure_percentage
nightly_linux-rhel_release 2024-10-14 2024-10-04 15 8 53.33
nightly_linux-rhel_debug 2024-10-14 2024-10-04 14 7 50.0

Rhel release is consistent and Rhel debug is flaky

@Crola1702 Crola1702 reopened this Oct 14, 2024
@InvincibleRMC
Copy link

I would try reverting ros2/rclpy#1338. It started failing the day after it got merged in.

@fujitatomoya
Copy link
Collaborator

@InvincibleRMC yes, ros2/rclpy#1338 is the only commit since then. lets revert it. (I think that we should run all CI including RHEL debug for any type checking PR.)

@InvincibleRMC
Copy link

@InvincibleRMC yes, ros2/rclpy#1338 is the only commit since then. lets revert it. (I think that we should run all CI including RHEL debug for any type checking PR.)

Sounds good. My apologies again.

@fujitatomoya
Copy link
Collaborator

@InvincibleRMC @clalancette @Crola1702

according to the experimental test with RHEL Debug/Release, ros2/rclpy#1373 (comment) says https://github.com/ros2/rclpy/pull/1363/files is the one that generated this regression as a result.

I just cannot explain why, if you have any idea, please let me know.

here is what i am gonna do, 1st priority is get RHEL back to be stable and green. although i cannot explain the logics why RHEL does not like https://github.com/ros2/rclpy/pull/1363/files. that is true and what happens. So i will go ahead to revert ros2/rclpy#1363 and close ros2/rclpy#1373. any objections?

@InvincibleRMC
Copy link

InvincibleRMC commented Oct 17, 2024

That's very odd. Is there any chance you could run each of roscli tests by themselves? It seems to me test_flake8.py is the likely cause since that seems to be what the stack trace says but, it could be possible that another test is crashing and taking down flake8 with it mid run. Narrowing down which test file then maybe which test case could help get to the cause of the issue.

@sloretz
Copy link
Contributor

sloretz commented Oct 17, 2024

The segfault is strange. The "Current thread" number when the segfault message is printed matches the thread number given for the stack trace of the main thread. Does that meant the segfault happens in Python's threading library?

File "/usr/lib64/python3.9/threading.py", line 312, in wait
    waiter.acquire()
Console output
Starting >>> ros2cli
--- output: ros2cli
�[1m============================= test session starts ==============================�[0m
platform linux -- Python 3.9.18, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
cachedir: /home/jenkins-agent/workspace/ci_linux-rhel/ws/build/ros2cli/.pytest_cache
rootdir: /home/jenkins-agent/workspace/ci_linux-rhel/ws/src/ros2/ros2cli, configfile: pytest.ini
plugins: launch-testing-3.6.1, ament-xmllint-0.18.1, ament-copyright-0.18.1, ament-pep257-0.18.1, ament-mypy-0.18.1, ament-flake8-0.18.1, ament-lint-0.18.1, mock-3.6.1, timeout-1.4.2, colcon-core-0.18.1, repeat-0.9.3, rerunfailures-9.1.1, cov-4.0.0
timeout: 900.0s
timeout method: thread
timeout func_only: False
�[1mcollecting ... �[0m�[1m
collected 31 items                                                             �[0m

test/test_copyright.py �[32m.�[0m�[32m                                                 [  3%]�[0m
test/test_daemon.py �[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m                                  [ 64%]�[0m
test/test_direct.py �[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m                                                 [ 77%]�[0m
Fatal Python error: Segmentation fault

Current thread 0x00007fa4dd1ec740 (most recent call first):
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 294 in __init__
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 195 in <listcomp>
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 195 in get_quotes_errors
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 184 in run
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 500 in run_ast_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 597 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 687 in _run_checks
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 48 in mapstar
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 125 in worker
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 121 in start
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 326 in _repopulate_pool_static
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 303 in _repopulate_pool
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 212 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 119 in Pool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 664 in _try_initialize_processpool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 260 in run_parallel
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 309 in run
  File "/usr/lib/python3.9/site-packages/flake8/main/application.py", line 271 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/api/legacy.py", line 109 in check_files
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 281 in generate_flake8_report
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 88 in main_with_errors
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/src/ros2/ros2cli/ros2cli/test/test_flake8.py", line 22 in test_flake8
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 1641 in runtest
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 255 in <lambda>
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 215 in call_and_report
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 126 in runtestprotocol
  File "/builddir/build/BUILDROOT/python-pytest-rerunfailures-9.1.1-3.el9.noarch/usr/lib/python3.9/site-packages/pytest_rerunfailures.py", line 240 in pytest_runtest_protocol
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 323 in _main
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185 in console_main
  File "/usr/lib/python3.9/site-packages/pytest/__main__.py", line 5 in <module>
  File "/usr/lib64/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib64/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Segmentation fault

Current thread 0x00007fa4dd1ec740 (most recent call first):
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 189 in <listcomp>
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 189 in get_noqa_lines
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 181 in run
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 500 in run_ast_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 597 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 687 in _run_checks
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 48 in mapstar
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 125 in worker
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 121 in start
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 326 in _repopulate_pool_static
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 303 in _repopulate_pool
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 212 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 119 in Pool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 664 in _try_initialize_processpool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 260 in run_parallel
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 309 in run
  File "/usr/lib/python3.9/site-packages/flake8/main/application.py", line 271 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/api/legacy.py", line 109 in check_files
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 281 in generate_flake8_report
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 88 in main_with_errors
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/src/ros2/ros2cli/ros2cli/test/test_flake8.py", line 22 in test_flake8
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 1641 in runtest
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 255 in <lambda>
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 215 in call_and_report
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 126 in runtestprotocol
  File "/builddir/build/BUILDROOT/python-pytest-rerunfailures-9.1.1-3.el9.noarch/usr/lib/python3.9/site-packages/pytest_rerunfailures.py", line 240 in pytest_runtest_protocol
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 323 in _main
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185 in console_main
  File "/usr/lib/python3.9/site-packages/pytest/__main__.py", line 5 in <module>
  File "/usr/lib64/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib64/python3.9/runpy.py", line 197 in _run_module_as_main

+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Captured stderr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
option --max-complexity: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --application-import-names: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --application-package-names: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --import-order-style: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --inline-quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --multiline-quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --docstring-quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future

~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-28 (140344247162432) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 576, in _handle_results
    task = get()
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 254, in recv
    buf = self._recv_bytes()
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 418, in _recv_bytes
    buf = self._recv(4)
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 383, in _recv
    chunk = read(handle, remaining)

~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-27 (140344289125952) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 528, in _handle_tasks
    for taskseq, set_length in iter(taskqueue.get, None):

~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-26 (140345146529344) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 519, in _handle_workers
    cls._wait_for_updates(current_sentinels, change_notifier)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 499, in _wait_for_updates
    wait(sentinels, timeout=timeout)
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 935, in wait
    ready = selector.select(timeout)
  File "/usr/lib64/python3.9/selectors.py", line 416, in select
    fd_event_list = self._selector.poll(timeout)

~~~~~~~~~~~~~~~~~~~~ Stack of MainThread (140346061145920) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.9/site-packages/pytest/__main__.py", line 5, in <module>
    raise SystemExit(pytest.console_main())
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185, in console_main
    code = main()
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162, in main
    ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 323, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 348, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/builddir/build/BUILDROOT/python-pytest-rerunfailures-9.1.1-3.el9.noarch/usr/lib/python3.9/site-packages/pytest_rerunfailures.py", line 240, in pytest_runtest_protocol
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 126, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 215, in call_and_report
    call = call_runtest_hook(item, when, **kwds)
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 254, in call_runtest_hook
    return CallInfo.from_call(
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311, in from_call
    result: Optional[TResult] = func()
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 255, in <lambda>
    lambda: ihook(item=item, **kwds), when=when, reraise=reraise
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 162, in pytest_runtest_call
    item.runtest()
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 1641, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 183, in pytest_pyfunc_call
    result = testfunction(**testargs)
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/src/ros2/ros2cli/ros2cli/test/test_flake8.py", line 22, in test_flake8
    rc, errors = main_with_errors(argv=[])
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 88, in main_with_errors
    report = generate_flake8_report(
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 281, in generate_flake8_report
    report.report = style.check_files(paths)
  File "/usr/lib/python3.9/site-packages/flake8/api/legacy.py", line 109, in check_files
    self._application.run_checks(paths)
  File "/usr/lib/python3.9/site-packages/flake8/main/application.py", line 271, in run_checks
    self.file_checker_manager.run()
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 309, in run
    self.run_parallel()
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 275, in run_parallel
    for ret in pool_map:
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 448, in <genexpr>
    return (item for chunk in result for item in chunk)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 858, in next
    self._cond.wait(timeout)
  File "/usr/lib64/python3.9/threading.py", line 312, in wait
    waiter.acquire()

+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++
---
--- stderr: ros2cli
Fatal Python error: Segmentation fault

Current thread 0x00007fa4dd1ec740 (most recent call first):
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 294 in __init__
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 195 in <listcomp>
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 195 in get_quotes_errors
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 184 in run
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 500 in run_ast_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 597 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 687 in _run_checks
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 48 in mapstar
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 125 in worker
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 121 in start
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 326 in _repopulate_pool_static
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 303 in _repopulate_pool
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 212 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 119 in Pool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 664 in _try_initialize_processpool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 260 in run_parallel
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 309 in run
  File "/usr/lib/python3.9/site-packages/flake8/main/application.py", line 271 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/api/legacy.py", line 109 in check_files
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 281 in generate_flake8_report
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 88 in main_with_errors
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/src/ros2/ros2cli/ros2cli/test/test_flake8.py", line 22 in test_flake8
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 1641 in runtest
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 255 in <lambda>
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 215 in call_and_report
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 126 in runtestprotocol
  File "/builddir/build/BUILDROOT/python-pytest-rerunfailures-9.1.1-3.el9.noarch/usr/lib/python3.9/site-packages/pytest_rerunfailures.py", line 240 in pytest_runtest_protocol
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 323 in _main
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185 in console_main
  File "/usr/lib/python3.9/site-packages/pytest/__main__.py", line 5 in <module>
  File "/usr/lib64/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib64/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Segmentation fault

Current thread 0x00007fa4dd1ec740 (most recent call first):
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 189 in <listcomp>
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 189 in get_noqa_lines
  File "/usr/lib/python3.9/site-packages/flake8_quotes/__init__.py", line 181 in run
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 500 in run_ast_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 597 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 687 in _run_checks
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 48 in mapstar
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 125 in worker
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib64/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 121 in start
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 326 in _repopulate_pool_static
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 303 in _repopulate_pool
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 212 in __init__
  File "/usr/lib64/python3.9/multiprocessing/context.py", line 119 in Pool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 664 in _try_initialize_processpool
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 260 in run_parallel
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 309 in run
  File "/usr/lib/python3.9/site-packages/flake8/main/application.py", line 271 in run_checks
  File "/usr/lib/python3.9/site-packages/flake8/api/legacy.py", line 109 in check_files
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 281 in generate_flake8_report
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 88 in main_with_errors
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/src/ros2/ros2cli/ros2cli/test/test_flake8.py", line 22 in test_flake8
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 1641 in runtest
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 255 in <lambda>
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 215 in call_and_report
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 126 in runtestprotocol
  File "/builddir/build/BUILDROOT/python-pytest-rerunfailures-9.1.1-3.el9.noarch/usr/lib/python3.9/site-packages/pytest_rerunfailures.py", line 240 in pytest_runtest_protocol
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 323 in _main
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185 in console_main
  File "/usr/lib/python3.9/site-packages/pytest/__main__.py", line 5 in <module>
  File "/usr/lib64/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib64/python3.9/runpy.py", line 197 in _run_module_as_main

+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Captured stderr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
option --max-complexity: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --application-import-names: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --application-package-names: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --import-order-style: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --inline-quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --multiline-quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
option --docstring-quotes: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future

~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-28 (140344247162432) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 576, in _handle_results
    task = get()
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 254, in recv
    buf = self._recv_bytes()
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 418, in _recv_bytes
    buf = self._recv(4)
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 383, in _recv
    chunk = read(handle, remaining)

~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-27 (140344289125952) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 528, in _handle_tasks
    for taskseq, set_length in iter(taskqueue.get, None):

~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-26 (140345146529344) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 519, in _handle_workers
    cls._wait_for_updates(current_sentinels, change_notifier)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 499, in _wait_for_updates
    wait(sentinels, timeout=timeout)
  File "/usr/lib64/python3.9/multiprocessing/connection.py", line 935, in wait
    ready = selector.select(timeout)
  File "/usr/lib64/python3.9/selectors.py", line 416, in select
    fd_event_list = self._selector.poll(timeout)

~~~~~~~~~~~~~~~~~~~~ Stack of MainThread (140346061145920) ~~~~~~~~~~~~~~~~~~~~~
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.9/site-packages/pytest/__main__.py", line 5, in <module>
    raise SystemExit(pytest.console_main())
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185, in console_main
    code = main()
  File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162, in main
    ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 323, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 348, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/builddir/build/BUILDROOT/python-pytest-rerunfailures-9.1.1-3.el9.noarch/usr/lib/python3.9/site-packages/pytest_rerunfailures.py", line 240, in pytest_runtest_protocol
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 126, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 215, in call_and_report
    call = call_runtest_hook(item, when, **kwds)
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 254, in call_runtest_hook
    return CallInfo.from_call(
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311, in from_call
    result: Optional[TResult] = func()
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 255, in <lambda>
    lambda: ihook(item=item, **kwds), when=when, reraise=reraise
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 162, in pytest_runtest_call
    item.runtest()
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 1641, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 183, in pytest_pyfunc_call
    result = testfunction(**testargs)
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/src/ros2/ros2cli/ros2cli/test/test_flake8.py", line 22, in test_flake8
    rc, errors = main_with_errors(argv=[])
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 88, in main_with_errors
    report = generate_flake8_report(
  File "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_flake8/lib/python3.9/site-packages/ament_flake8/main.py", line 281, in generate_flake8_report
    report.report = style.check_files(paths)
  File "/usr/lib/python3.9/site-packages/flake8/api/legacy.py", line 109, in check_files
    self._application.run_checks(paths)
  File "/usr/lib/python3.9/site-packages/flake8/main/application.py", line 271, in run_checks
    self.file_checker_manager.run()
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 309, in run
    self.run_parallel()
  File "/usr/lib/python3.9/site-packages/flake8/checker.py", line 275, in run_parallel
    for ret in pool_map:
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 448, in <genexpr>
    return (item for chunk in result for item in chunk)
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 858, in next
    self._cond.wait(timeout)
  File "/usr/lib64/python3.9/threading.py", line 312, in wait
    waiter.acquire()

+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++
---
Finished <<< ros2cli [15min 6s]	[ with test failures ]

@fujitatomoya
Copy link
Collaborator

@InvincibleRMC
CC: @sloretz @clalancette

We talked about this today. Although we are not fully sure what the root cause this is, it does seem there would be a bug somewhere else like flake8 or RHEL platform specific. with that and problem could be related to flake8 multi-threading, we decided to try flake8 in single-threaded configuration for CI ament/ament_lint#505.

if ament/ament_lint#505 comes back all green, probably we do not need to revert things now. i will keep my eyes on that, and share the update later on.

@fujitatomoya
Copy link
Collaborator

ament/ament_lint#505 worked like a silver bullet... 🦀

@Crola1702
Copy link
Contributor Author

Closing this one as the test is not failing anymore

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

Successfully merging a pull request may close this issue.

5 participants