Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948260 - dev-ada/e3-core: missing rdepend on dev-python/coverage (app-misc/ranger-1.9.4-r1 fails test - [ffmpeg] ImportError: Missing test and coverage packages. Please install pytest and coverage packages)
Summary: dev-ada/e3-core: missing rdepend on dev-python/coverage (app-misc/ranger-1.9....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux ADA team
URL:
Whiteboard:
Keywords: TESTFAILURE
: 948248 948249 948255 948258 948259 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-01-17 17:39 UTC by Toralf Förster
Modified: 2025-01-27 17:20 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.30 KB, text/plain)
2025-01-17 17:39 UTC, Toralf Förster
Details
app-misc:ranger-1.9.4-r1:20250117-115615.log (app-misc:ranger-1.9.4-r1:20250117-115615.log,72.78 KB, text/plain)
2025-01-17 17:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,142.35 KB, text/plain)
2025-01-17 17:39 UTC, Toralf Förster
Details
environment (environment,164.83 KB, text/plain)
2025-01-17 17:39 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.15 KB, application/x-xz)
2025-01-17 17:39 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,16.52 KB, application/x-xz)
2025-01-17 17:39 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,1.36 KB, application/x-xz)
2025-01-17 17:39 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,38.30 KB, application/x-xz)
2025-01-17 17:39 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,34.89 KB, application/x-xz)
2025-01-17 17:39 UTC, Toralf Förster
Details
tests.tar.xz (tests.tar.xz,3.18 KB, application/x-xz)
2025-01-17 17:39 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2025-01-17 17:39:36 UTC
  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"
Comment 1 Toralf Förster gentoo-dev 2025-01-17 17:39:38 UTC
Created attachment 916913 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-01-17 17:39:39 UTC
Created attachment 916914 [details]
app-misc:ranger-1.9.4-r1:20250117-115615.log
Comment 3 Toralf Förster gentoo-dev 2025-01-17 17:39:41 UTC
Created attachment 916915 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2025-01-17 17:39:42 UTC
Created attachment 916916 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-01-17 17:39:42 UTC
Created attachment 916917 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-01-17 17:39:43 UTC
Created attachment 916918 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-01-17 17:39:44 UTC
Created attachment 916919 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-01-17 17:39:45 UTC
Created attachment 916920 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-01-17 17:39:46 UTC
Created attachment 916921 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2025-01-17 17:39:47 UTC
Created attachment 916922 [details]
tests.tar.xz
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-17 18:16:57 UTC
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
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-17 18:17:53 UTC
*** Bug 948259 has been marked as a duplicate of this bug. ***
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-17 18:17:56 UTC
*** Bug 948258 has been marked as a duplicate of this bug. ***
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-17 18:17:59 UTC
*** Bug 948255 has been marked as a duplicate of this bug. ***
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-17 18:18:03 UTC
*** Bug 948249 has been marked as a duplicate of this bug. ***
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-17 18:18:06 UTC
*** Bug 948248 has been marked as a duplicate of this bug. ***
Comment 17 Tupone Alfredo gentoo-dev 2025-01-27 13:16:01 UTC
(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.
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-27 14:20:55 UTC
(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.
Comment 19 Tupone Alfredo gentoo-dev 2025-01-27 14:56:54 UTC
(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.
Comment 20 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-27 15:06:55 UTC
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.
Comment 21 Larry the Git Cow gentoo-dev 2025-01-27 17:20:53 UTC
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(-)