Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950942 - x11-wm/qtile-0.31.0 fails tests ( No module named 'rerunfailures' )
Summary: x11-wm/qtile-0.31.0 fails tests ( No module named 'rerunfailures' )
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks: 950766
  Show dependency tree
 
Reported: 2025-03-08 12:40 UTC by Jakov Smolić
Modified: 2025-03-08 16:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakov Smolić archtester gentoo-dev 2025-03-08 12:40:13 UTC
>>> Test phase: x11-wm/qtile-0.31.0
 [32m*[0m Starting Xvfb ...
 [32m*[0m Xvfb started on DISPLAY=:0
 [32m*[0m python3_12: running distutils-r1_run_phase python_test
python3.12 -m pytest -vv -ra -l -Wdefault -Werror::pytest.PytestUnhandledCoroutineWarning --color=yes -o console_output_style=count -o tmp_path_retention_count=0 -o tmp_path_retention_policy=failed -p timeout --timeout=180 --deselect test/test_check.py --deselect test/migrate/test_check_migrations.py --deselect test/backend/x11/test_window.py::test_urgent_hook_fire[wayland-2] --deselect test/test_hook.py::test_net_wm_icon_change -p rerunfailures --reruns=5 --backend=x11
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 858, in import_plugin
    __import__(importspec)
ModuleNotFoundError: No module named 'rerunfailures'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib/python3.12/site-packages/pytest/__main__.py", line 9, in <module>
    raise SystemExit(pytest.console_main())
                     ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 201, in console_main
    code = main()
           ^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 156, in main
    config = _prepareconfig(args, plugins)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 341, in _prepareconfig
    config = pluginmanager.hook.pytest_cmdline_parse(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
    raise exception.with_traceback(exception.__traceback__)
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
    teardown.throw(exception)  # type: ignore[union-attr]
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/helpconfig.py", line 105, in pytest_cmdline_parse
    config = yield
             ^^^^^
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 1140, in pytest_cmdline_parse
    self.parse(args)
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 1494, in parse
    self._preparse(args, addopts=addopts)
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 1377, in _preparse
    self.pluginmanager.consider_preparse(args, exclude_only=False)
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 787, in consider_preparse
    self.consider_pluginarg(parg)
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 810, in consider_pluginarg
    self.import_plugin(arg, consider_entry_points=True)
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 860, in import_plugin
    raise ImportError(
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 858, in import_plugin
    __import__(importspec)
ImportError: Error importing plugin "rerunfailures": No module named 'rerunfailures'
 [31;01m*[0m pytest failed with python3.12
 [31;01m*[0m Tests failed with python3.12
 [31;01m*[0m ERROR: x11-wm/qtile-0.31.0::gentoo failed (test phase):
 [31;01m*[0m   Failed to run 'distutils-r1_src_test'
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  136:  Called src_test
 [31;01m*[0m   environment, line 3753:  Called virtx 'distutils-r1_src_test'
 [31;01m*[0m   environment, line 4758:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       [[ ${retval} -ne 0 ]] && die "Failed to run '$@'";
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=x11-wm/qtile-0.31.0::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=x11-wm/qtile-0.31.0::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/x11-wm/qtile-0.31.0/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-wm/qtile-0.31.0/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/x11-wm/qtile-0.31.0/work/qtile-0.31.0'
 [31;01m*[0m S: '/var/tmp/portage/x11-wm/qtile-0.31.0/work/qtile-0.31.0'
Comment 1 Jakov Smolić archtester gentoo-dev 2025-03-08 14:49:32 UTC
After installing pytest-rerunfailures I hit bug 934078 which is fixed by adding dev-python/isort to test deps as well
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-03-08 16:26:47 UTC
Thanks!
Comment 3 Larry the Git Cow gentoo-dev 2025-03-08 16:29:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=034bf9c2bbdea9bec364f6e6e93edb77296153a4

commit 034bf9c2bbdea9bec364f6e6e93edb77296153a4
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2025-03-08 12:43:22 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2025-03-08 16:29:23 +0000

    x11-wm/qtile: Add missing pytest-rerunfailures test dep
    
    Closes: https://bugs.gentoo.org/950942
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 x11-wm/qtile/qtile-0.30.0.ebuild | 1 +
 x11-wm/qtile/qtile-0.31.0.ebuild | 1 +
 2 files changed, 2 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f79a9da0aa1b196bdaeef6a8273357f0a043943

commit 5f79a9da0aa1b196bdaeef6a8273357f0a043943
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2025-03-08 14:48:21 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2025-03-08 16:29:24 +0000

    x11-wm/qtile: Add dev-python/isort to test deps
    
    Closes: https://bugs.gentoo.org/934078
    Bug: https://bugs.gentoo.org/950942
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/40960
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 x11-wm/qtile/qtile-0.30.0.ebuild | 1 +
 x11-wm/qtile/qtile-0.31.0.ebuild | 1 +
 2 files changed, 2 insertions(+)