File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/usr/lib/python3.12/site-packages/e3/pytest.py", line 25, in <module> raise ImportError( ImportError: Missing test and coverage packages. Please install pytest and coverage packages * ERROR: app-misc/ranger-1.9.4-r1::gentoo failed (test phase): * pytest failed with python3.12 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_no_multilib_hardened_systemd_test-20250114-213502 UNMASKED: Requested by sam >=media-video/ffmpeg-7.0 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-14 * clang version 19.1.7 llvm-config: 19.1.7 Python 3.12.8 go version go1.23.4 linux/amd64 Available Ruby profiles: [1] ruby32 (with Rubygems) * Available Rust versions: [1] rust-bin-1.81.0 [2] rust-bin-1.84.0 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21] 2) Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-21 system-vm HEAD of ::gentoo commit 77eca81908272259bbacc199af3ca81576432823 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Jan 17 11:33:38 2025 +0000 2025-01-17 11:33:38 UTC emerge -qpvO =app-misc/ranger-1.9.4-r1 [ebuild N ] app-misc/ranger-1.9.4-r1 USE="test" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13"
Created attachment 916913 [details] emerge-info.txt
Created attachment 916914 [details] app-misc:ranger-1.9.4-r1:20250117-115615.log
Created attachment 916915 [details] emerge-history.txt
Created attachment 916916 [details] environment
Created attachment 916917 [details] etc.clang.tar.xz
Created attachment 916918 [details] etc.portage.tar.xz
Created attachment 916919 [details] logs.tar.xz
Created attachment 916920 [details] qlist-info.txt.xz
Created attachment 916921 [details] temp.tar.xz
Created attachment 916922 [details] tests.tar.xz
From one of these bugs, emerge-history.txt has: """ 2025-01-16T16:03:36 >>> dev-ada/e3-core-22.6.0-r2 """ The error here is: """ >>> Source compiled. >>> Test phase: app-misc/ranger-1.9.4-r1 python3.12 -m pytest -vv -ra -l -Wdefault -Werror::pytest.PytestUnhandledCoroutineWarning --color=no -o console_output_style=count -o tmp_path_retention_count=0 -o tmp_path_retention_policy=failed -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:pytest-describe -p no:plus -p no:tavern -p no:salt-factories Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/e3/pytest.py", line 17, in <module> from coverage.sqldata import CoverageData ModuleNotFoundError: No module named 'coverage' [...] """ ... so: 1) dev-ada/e3-core is injecting a plugin or something which isn't ideal (maybe we should add it to the list we disable in the python eclass) 2) it's misisng an RDEPEND on coverage, I guess
*** Bug 948259 has been marked as a duplicate of this bug. ***
*** Bug 948258 has been marked as a duplicate of this bug. ***
*** Bug 948255 has been marked as a duplicate of this bug. ***
*** Bug 948249 has been marked as a duplicate of this bug. ***
*** Bug 948248 has been marked as a duplicate of this bug. ***
(In reply to Sam James from comment #11) > 2025-01-16T16:03:36 >>> dev-ada/e3-core-22.6.0-r2 I don't see any dependency by ranger on e3-core or e3-testsuite Actually, e3-core only reverse dependency are e3-testsuite and langkit.
(In reply to Tupone Alfredo from comment #17) > (In reply to Sam James from comment #11) > > 2025-01-16T16:03:36 >>> dev-ada/e3-core-22.6.0-r2 > > I don't see any dependency by ranger on e3-core or e3-testsuite > > Actually, e3-core only reverse dependency are e3-testsuite and langkit. That doesn't matter. The point is that *if* e3-core gets installed, it installs a plugin (it gets automatically loaded by pytest *always*), and then that breaks other packages because it has a missing dep.
(In reply to Sam James from comment #18) > (In reply to Tupone Alfredo from comment #17) > > (In reply to Sam James from comment #11) > > > 2025-01-16T16:03:36 >>> dev-ada/e3-core-22.6.0-r2 > > > > I don't see any dependency by ranger on e3-core or e3-testsuite > > > > Actually, e3-core only reverse dependency are e3-testsuite and langkit. > > That doesn't matter. The point is that *if* e3-core gets installed, it > installs a plugin (it gets automatically loaded by pytest *always*), and > then that breaks other packages because it has a missing dep. From https://e3-core.readthedocs.io/en/latest/pytest.html seems that To activate the e3-core pytest plugin, you need to install e3-core and pass the option --e3 to pytest. However I will try to replicate the issues and, maybe, fix it.
From the top of the page: "e3-core contains a pytest plugin that is discovered automatically when installed." It fails immediately upon discovery because of the missing dep, even if the functionality isn't enabled.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f2e2a82f87b419a55a924354c28676c1dca2ee8 commit 7f2e2a82f87b419a55a924354c28676c1dca2ee8 Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2025-01-27 17:19:47 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2025-01-27 17:20:30 +0000 dev-ada/e3-core: add dev-python/coverage rdep Closes: https://bugs.gentoo.org/948260 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> .../{e3-core-22.6.0-r2.ebuild => e3-core-22.6.0-r3.ebuild} | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)