Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894532 - dev-python/build-0.10.0 fails tests
Summary: dev-python/build-0.10.0 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-15 08:37 UTC by Patrick Lauer
Modified: 2023-10-24 19:43 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 Patrick Lauer gentoo-dev 2023-02-15 08:37:04 UTC
================================================================================================================================================================================ FAILURES =================================================================================================================================================================================
_________________________________________________________________________________________________________________________________________________________________ test_output_env_subprocess_error[color] _________________________________________________________________________________________________________________________________________________________________
[gw22] linux -- Python 3.10.10 /var/tmp/portage/dev-python/build-0.10.0/work/build-0.10.0-python3_10/install/usr/bin/python3.10

mocker = <pytest_mock.plugin.MockerFixture object at 0x7fc34d2949a0>, monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fc34d294610>, main_reload_styles = None, package_test_invalid_requirements = '/var/tmp/portage/dev-python/build-0.10.0/work/build-0.10.0/tests/packages/test-invalid-requirements'
tmp_dir = '/var/tmp/portage/dev-python/build-0.10.0/temp/python-build-test-srqzufv0', capsys = <_pytest.capture.CaptureFixture object at 0x7fc34d295450>, color = True
stdout_body = ['\x1b[1m* Creating venv isolated environment...\x1b[0m', '\x1b[1m* Installing packages in isolated environment... (setuptools >= 42.0.0, this is invalid, wheel >= 0.36.0)\x1b[0m', '', '\x1b[2mTraceback (most recent call last):'], stdout_error = '\x1b[91mERROR\x1b[0m '

[...]

capsys     = <_pytest.capture.CaptureFixture object at 0x7fc34d295450>
color      = True
main_reload_styles = None
mocker     = <pytest_mock.plugin.MockerFixture object at 0x7fc34d2949a0>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fc34d294610>
package_test_invalid_requirements = '/var/tmp/portage/dev-python/build-0.10.0/work/build-0.10.0/tests/packages/test-invalid-requirements'
stderr     = ["\x1b[31mERROR: Invalid requirement: 'this is invalid' (from line 2 of "
 '/var/tmp/portage/dev-python/build-0.10.0/temp/build-reqs-692htetv.txt)\x1b[0m\x1b[31m',
 '\x1b[0m']
stdout     = ['\x1b[1m* Creating venv isolated environment...\x1b[0m',
 '\x1b[1m* Installing packages in isolated environment... (setuptools >= '
 '42.0.0, this is invalid, wheel >= 0.36.0)\x1b[0m',
 '',
 '\x1b[2mTraceback (most recent call last):',
 '  File '
 '"/var/tmp/portage/dev-python/build-0.10.0/work/build-0.10.0-python3_10/install/usr/lib/python3.10/site-packages/build/__main__.py", '
 'line 375, in main',
 '    built = build_call(',
 '  File '
 '"/var/tmp/portage/dev-python/build-0.10.0/work/build-0.10.0-python3_10/install/usr/lib/python3.10/site-packages/build/__main__.py", '
 'line 235, in build_package_via_sdist',
 "    sdist = _build(isolation, builder, outdir, 'sdist', config_settings, "
 'skip_dependency_check)',
 '  File '
 '"/var/tmp/portage/dev-python/build-0.10.0/work/build-0.10.0-python3_10/install/usr/lib/python3.10/site-packages/build/__main__.py", '
 'line 145, in _build',
 '    return _build_in_isolated_env(builder, outdir, distribution, '
 'config_settings)',
 '  File '
 '"/var/tmp/portage/dev-python/build-0.10.0/work/build-0.10.0-python3_10/install/usr/lib/python3.10/site-packages/build/__main__.py", '
 'line 113, in _build_in_isolated_env',
 '    env.install(builder.build_system_requires)',
 '  File '
 '"/var/tmp/portage/dev-python/build-0.10.0/work/build-0.10.0-python3_10/install/usr/lib/python3.10/site-packages/build/env.py", '
 'line 214, in install',
 '    _subprocess(cmd)',
 '  File '
 '"/var/tmp/portage/dev-python/build-0.10.0/work/build-0.10.0-python3_10/install/usr/lib/python3.10/site-packages/build/env.py", '
 'line 79, in _subprocess',
 '    raise e',
 '  File '
 '"/var/tmp/portage/dev-python/build-0.10.0/work/build-0.10.0-python3_10/install/usr/lib/python3.10/site-packages/build/env.py", '
 'line 76, in _subprocess',
 '    subprocess.run(cmd, check=True, stdout=subprocess.PIPE, '
 'stderr=subprocess.STDOUT)',
 '  File "/usr/lib/python3.10/subprocess.py", line 526, in run',
 '    raise CalledProcessError(retcode, process.args,',
 'subprocess.CalledProcessError: Command '
 "'['/var/tmp/portage/dev-python/build-0.10.0/temp/build-env-dol45z8y/bin/python', "
 "'-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', '-r', "
 "'/var/tmp/portage/dev-python/build-0.10.0/temp/build-reqs-692htetv.txt']' "
 'returned non-zero exit status 1.\x1b[0m',
 '',
 '\x1b[91mERROR\x1b[0m Command '
 "'['/var/tmp/portage/dev-python/build-0.10.0/temp/build-env-dol45z8y/bin/python', "
 "'-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', '-r', "
 "'/var/tmp/portage/dev-python/build-0.10.0/temp/build-reqs-692htetv.txt']' "
 'returned non-zero exit status 1.']
stdout_body = ['\x1b[1m* Creating venv isolated environment...\x1b[0m',
 '\x1b[1m* Installing packages in isolated environment... (setuptools >= '
 '42.0.0, this is invalid, wheel >= 0.36.0)\x1b[0m',
 '',
 '\x1b[2mTraceback (most recent call last):']
stdout_error = '\x1b[91mERROR\x1b[0m '
tmp_dir    = '/var/tmp/portage/dev-python/build-0.10.0/temp/python-build-test-srqzufv0'

tests/test_main.py:371: AssertionError
========================================================================================================================================================================= short test summary info =========================================================================================================================================================================
SKIPPED [1] tests/test_env.py:50: workaround for Apple Python
SKIPPED [1] tests/test_env.py:59: workaround for Debian/Ubuntu Python
SKIPPED [30] tests/test_integration.py:70: integration tests not run (no --run-integration flag)
SKIPPED [1] tests/test_integration.py: integration tests not run (no --run-integration flag)
FAILED tests/test_main.py::test_output_env_subprocess_error[color] - assert 2 == 1
=============================================================================================================================================================== 1 failed, 113 passed, 33 skipped in 12.20s ================================================================================================================================================================
 * ERROR: dev-python/build-0.10.0::gentoo failed (test phase):
 *   pytest failed with python3.10
Comment 1 Patrick Lauer gentoo-dev 2023-02-15 08:37:36 UTC
Portage 3.0.44 (python 3.11.2-final-0, default/linux/amd64/17.1, gcc-12, glibc-2.37, 6.1.7-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.1.7-gentoo-x86_64-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.37
KiB Mem:    65760584 total,  31007236 free
KiB Swap:   20971516 total,  20971516 free
sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p2) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.10_p1::gentoo, 3.11.2_p1::gentoo
dev-util/cmake:            3.25.2::gentoo
dev-util/meson:            1.0.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.46::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.40-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

overlay
    location: /overlay
    masters: gentoo
    priority: 0
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl test test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_11 python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Larry the Git Cow gentoo-dev 2023-10-24 19:43:59 UTC
The bug has been closed via the following commit(s):

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

commit e9e39ea68f5b4070af5e8ef4c04005145feff455
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-10-24 19:43:02 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-10-24 19:43:41 +0000

    dev-python/build: skip failing tests of coloring
    
    Closes: https://bugs.gentoo.org/894532
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-python/build/build-1.0.3.ebuild | 3 +++
 1 file changed, 3 insertions(+)