Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942426 - dev-python/cython-3.0.11 - fails runTest (__main__.EndToEndTest.runTest) and fails to complete testsuite
Summary: dev-python/cython-3.0.11 - fails runTest (__main__.EndToEndTest.runTest) and ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-10-28 22:45 UTC by ernsteiswuerfel
Modified: 2025-04-19 23:31 UTC (History)
2 users (show)

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


Attachments
build.log.xz (ppc, 3.0.11) (cython-3.0.11:20241028-085328.log.xz,92.91 KB, application/x-xz)
2024-10-28 22:45 UTC, ernsteiswuerfel
Details
build.log.xz (ppc, 3.0.10) (cython-3.0.10:20241028-185748.log.xz,102.79 KB, application/x-xz)
2024-10-28 22:46 UTC, ernsteiswuerfel
Details
emerge --info (file_942426.txt,5.84 KB, text/plain)
2024-10-28 22:46 UTC, ernsteiswuerfel
Details
emerge --info (emerge--info.txt,22.51 KB, text/plain)
2025-03-20 10:34 UTC, Dustin Polke
Details
Full build log (build.log.xz,95.32 KB, application/x-xz)
2025-03-20 10:36 UTC, Dustin Polke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-10-28 22:45:53 UTC
Created attachment 907199 [details]
build.log.xz (ppc, 3.0.11)

On ppc current cython 3.0.10 and 3.0.11 fail to complete testsuite, running for several hours only showing these "#### 2024-10-28 12:12:06.128567", etc. timestamps.

[...]
runTest (__main__.CythonRunTestCase.runTest)
[1] compiling (cpp/cy2) and running cppwrap ... DoubleKeeper (cppwrap)
Doctest: cppwrap.DoubleKeeper ... ok
doublefunc (cppwrap)
Doctest: cppwrap.doublefunc ... ok
transmogrify_from_cpp (cppwrap)
Doctest: cppwrap.transmogrify_from_cpp ... ok
voidfunc (cppwrap)
Doctest: cppwrap.voidfunc ... ok

======================================================================
FAIL: runTest (__main__.EndToEndTest.runTest)
[1] End-to-end coverage_cmd_src_pkg_layout
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/cython-3.0.11/work/cython-3.0.11/runtests.py", line 2095, in runTest
    self.assertEqual(0, res, "non-zero exit status, last output was:\n%r\n-- stdout:%s\n-- stderr:%s\n" % (
AssertionError: 0 != 1 : non-zero exit status, last output was:
'/usr/bin/python3.12 -m pip install .'
-- stdout:
-- stderr:error: externally-managed-environment

× This environment is externally managed
╰─> 
    The system-wide Python installation in Gentoo should be maintained
    using the system package manager (e.g. emerge).
    
    If the package in question is not packaged for Gentoo, please
    consider installing it inside a virtual environment, e.g.:
    
    python -m venv /path/to/venv
    . /path/to/venv/bin/activate
    pip install mypackage
    
    To exit the virtual environment, run:
    
    deactivate
    
    The virtual environment is not deleted, and can be re-entered by
    re-sourcing the activate file.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.



----------------------------------------------------------------------
Ran 7547 tests in 8036.223s

FAILED (failures=1, skipped=16)
Following tests excluded because of missing dependencies on your system:
   run.numpy_pythran
   run.numpy_pythran_unit
   run.test_exceptions
FAILED (1/2)
ALL DONE (1/2)

#### 2024-10-28 12:12:06.128567

#### 2024-10-28 12:12:16.158388

#### 2024-10-28 12:12:26.186493

#### 2024-10-28 12:12:36.206186

#### 2024-10-28 12:12:46.220736
[...]

Up to that point 3.0.11 shows the __main__.EndToEndTest.runTest above, 3.0.10 shows a few more.
Comment 1 ernsteiswuerfel archtester 2024-10-28 22:46:16 UTC
Created attachment 907200 [details]
build.log.xz (ppc, 3.0.10)
Comment 2 ernsteiswuerfel archtester 2024-10-28 22:46:33 UTC
Created attachment 907201 [details]
emerge --info
Comment 3 Dustin Polke 2025-03-20 10:31:57 UTC
Same for dev-python/cython-3.0.12 on amd64:

Errors from shard 11:
======================================================================
FAIL: runTest (__main__.EndToEndTest.runTest)
[11] End-to-end coverage_cmd_src_pkg_layout
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/cython-3.0.12/work/cython-3.0.12/runtests.py", line 2095, in runTest
    self.assertEqual(0, res, "non-zero exit status, last output was:\n%r\n-- stdout:%s\n-- stderr:%s\n" % (
AssertionError: 0 != 1 : non-zero exit status, last output was:
'/usr/bin/python3.12 -m pip install .'
-- stdout:
-- stderr:error: externally-managed-environment

× This environment is externally managed
╰─> 
    The system-wide Python installation in Gentoo should be maintained
    using the system package manager (e.g. emerge).
    
    If the package in question is not packaged for Gentoo, please
    consider installing it inside a virtual environment, e.g.:
    
    python -m venv /path/to/venv
    . /path/to/venv/bin/activate
    pip install mypackage
    
    To exit the virtual environment, run:
    
    deactivate
    
    The virtual environment is not deleted, and can be re-entered by
    re-sourcing the activate file.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.


 # emerge -pqv =dev-python/cython-3.0.12::gentoo
[ebuild     U ] dev-python/cython-3.0.12 [3.0.11] USE="test* -debug -doc" PYTHON_TARGETS="python3_12 (-pypy3) (-pypy3_11) -python3_10 -python3_11 -python3_13"
Comment 4 Dustin Polke 2025-03-20 10:34:20 UTC
Created attachment 921335 [details]
emerge --info
Comment 5 Dustin Polke 2025-03-20 10:36:14 UTC
Created attachment 921336 [details]
Full build log
Comment 6 Larry the Git Cow gentoo-dev 2025-04-19 23:31:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e15dabbacc0307c6d5d2090435a774b36446f6a

commit 4e15dabbacc0307c6d5d2090435a774b36446f6a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-19 23:30:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-19 23:30:06 +0000

    dev-python/cython: skip layout test
    
    It needs dev-python/pip and if pip is installed, it'll (often?) fail
    because of 'externally managed'.
    
    Closes: https://bugs.gentoo.org/927995
    Closes: https://bugs.gentoo.org/930482
    Closes: https://bugs.gentoo.org/942426
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/cython/cython-3.0.12-r1.ebuild      | 7 +++++++
 dev-python/cython/cython-3.0.12.ebuild         | 7 +++++++
 dev-python/cython/cython-3.1.0_beta1-r1.ebuild | 7 +++++++
 3 files changed, 21 insertions(+)