Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907228 - dev-python/numpy-1.24.2: tests TestUfunc::test_identityless_reduction_huge_array and TestKind::test_all fail
Summary: dev-python/numpy-1.24.2: tests TestUfunc::test_identityless_reduction_huge_ar...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2023-05-26 19:27 UTC by Rolf Eike Beer
Modified: 2023-07-24 00:51 UTC (History)
1 user (show)

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


Attachments
build.log (dev-python_numpy-1.24.2_use_7FPNS.xz,143.86 KB, application/x-xz)
2023-05-26 19:27 UTC, Rolf Eike Beer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer archtester 2023-05-26 19:27:33 UTC
Created attachment 862673 [details]
build.log

FAILED numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array - ValueError: Maximum allowed dimension exceeded
FAILED numpy/f2py/tests/test_kind.py::TestKind::test_all - AssertionError: selectedintkind(19): expected 16 but got -1

The other test failures found in the log are already reported in bug 707116.

Portage 3.0.44 (python 3.10.10-final-0, default/linux/hppa/17.0, gcc-11, glibc-2.36-r8, 5.16.15-gentoo-parisc64 parisc64)
=================================================================
System uname: Linux-5.16.15-gentoo-parisc64-parisc64-PA8800_-Mako-with-glibc2.36
KiB Mem:     8228184 total,   4803788 free
KiB Swap:    4194300 total,   4191080 free
Timestamp of repository gentoo: Fri, 26 May 2023 02:15:01 +0000
Head commit of repository gentoo: 7f5926192af071002c48ebd4c1d88b7cf2c06bff
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.9.16_p3::gentoo, 3.10.10_p2::gentoo, 3.11.2_p2::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.46::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.3.1_p20221209::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r8::gentoo
Repositories:

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

ACCEPT_KEYWORDS="hppa"
ACCEPT_LICENSE="@FREE"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=2.0"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=2.0"
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=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="ftp://castor.sf-tec.de/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEFLAGS="-j 4 -l 4"
PKGDIR="/usr/portage/packages"
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 big-endian bzip2 cli crypt fortran gdbm hppa iconv ipv6 ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl unicode xattr zlib" 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" 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_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30" VIDEO_CARDS="fbdev 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, 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 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-27 09:08:05 UTC
In the ebuild, we have

        if use arm || use x86 ; then
                EPYTEST_DESELECT+=(
                        # too large for 32-bit platforms
                        numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array
                )
        fi

We need to extend that.
Comment 2 Larry the Git Cow gentoo-dev 2023-05-27 09:15:42 UTC
The bug has been referenced in the following commit(s):

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

commit 76dfbd75b4d6b2fcc0c51535c7e54393c1d705e8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-27 09:15:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-27 09:15:31 +0000

    dev-python/numpy: skip test on more 32-bit arches
    
    Bug: https://bugs.gentoo.org/907228
    Bug: https://bugs.gentoo.org/328401
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/numpy/numpy-1.24.3.ebuild | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-27 09:15:51 UTC
TestKind::test_all still pending.
Comment 4 Larry the Git Cow gentoo-dev 2023-07-24 00:51:27 UTC
The bug has been referenced in the following commit(s):

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

commit eeb89bb8748fea3cefee84621b15fa6d507cce1e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-07-24 00:50:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-24 00:50:22 +0000

    dev-python/numpy: skip 2 more tests on hppa
    
    These two tests are the only failures:
    * f2py/tests/test_kind.py::TestKind::test_real
    * f2py/tests/test_kind.py::TestKind::test_quad_precision
    
    Both need to be taught about HPPA and its characteristics, so added a comment
    about how to do that & some past examples. But not a regression either.
    
    Bug: https://bugs.gentoo.org/907228
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/numpy/numpy-1.25.1-r2.ebuild | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)