Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916460 - dev-python/xarray-2023.10.1-r1: test failures on hppa
Summary: dev-python/xarray-2023.10.1-r1: test failures on hppa
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: TESTFAILURE
Depends on:
Blocks: 916250
  Show dependency tree
 
Reported: 2023-10-29 03:01 UTC by Sam James
Modified: 2023-10-29 03:34 UTC (History)
0 users

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


Attachments
build.log.xz (build.log.xz,137.89 KB, application/x-xz)
2023-10-29 03:01 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-29 03:01:21 UTC
FAILED xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145224193-ns-int64-20-True]
FAILED xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1970-09-21T00:12:44.145224808-ns-float64-1e+30-True]
FAILED xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145225216-ns-float64--9.223372036854776e+18-True]
FAILED xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145224193-ns-int64-None-False]
FAILED xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145225-us-int64-None-False]
FAILED xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1970-01-01T00:00:01.000001-us-int64-None-False]
FAILED xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:21:52.901038080-ns-float32-20.0-True]
FAILED xarray/tests/test_missing.py::test_interpolate_na_2d[coords1] - Module...
= 8 failed, 5301 passed, 6105 skipped, 10 xfailed, 58 warnings in 681.75s (0:11:21) =
 * ERROR: dev-python/xarray-2023.10.1-r1::gentoo failed (test phase):
 *   pytest failed with python3.11

----

# emerge --info
Portage 3.0.51 (python 3.11.5-final-0, default/linux/hppa/17.0/systemd, gcc-13, glibc-2.38-r1, 6.4.10 parisc64)
=================================================================
System uname: Linux-6.4.10-parisc64-PA8800_-Mako-with-glibc2.38
KiB Mem:     8206292 total,    803796 free
KiB Swap:    1120380 total,   1120380 free
Timestamp of repository gentoo: Sat, 28 Oct 2023 23:01:58 +0000
sh dash 0.5.12
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo, 3.12.0_rc2_p1-r1::gentoo
dev-util/cmake:            3.27.5::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.3::gentoo
sys-devel/autoconf:        2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.5::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r1::gentoo
Repositories:

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

ACCEPT_KEYWORDS="hppa ~hppa"
ACCEPT_LICENSE="*"
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"
CXXFLAGS="-O2 -pipe -march=2.0"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --ask-enter-invalid --quiet-build --keep-going --complete-graph --with-bdeps=y --usepkg=y --deep"
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 -march=2.0"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=2.0"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2 -l2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
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 systemd udev 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="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31 ruby32" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, 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-10-29 03:01:51 UTC
Created attachment 873627 [details]
build.log.xz
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-29 03:08:15 UTC
        var = Variable(["time"], times, encoding=encoding)
>       assert var.dtype == np.dtype("<M8[ns]")
E       AssertionError: assert dtype('>M8[ns]') == dtype('<M8[ns]')
E        +  where dtype('>M8[ns]') = <xarray.Variable (time: 3)>\narray(['1970-01-01T00:00:00.000000000',                           'NaT',\n       '1677-09-21T00:12:43.145224193'], dtype='datetime64[ns]').dtype
E        +  and   dtype('<M8[ns]') = <class 'numpy.dtype'>('<M8[ns]')
E        +    where <class 'numpy.dtype'> = np.dtype
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-29 03:09:12 UTC
If it's the same thing as in https://github.com/pandas-dev/pandas/issues/51041, it's not ideal, but it's not critically broken either.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-29 03:12:02 UTC
I'll try 2023.8.0 and see what that has.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-29 03:24:33 UTC
(In reply to Sam James from comment #4)
> I'll try 2023.8.0 and see what that has.

FAILED xarray/tests/test_missing.py::test_interpolate_na_2d[coords1] - ModuleNotFoundError: No module named 'scipy'
FAILED xarray/tests/test_plot.py::TestPlot::test2d_nonuniform_calls_contourf - assert False
FAILED xarray/tests/test_plot.py::TestContourf::test_contourf_called - AssertionError: assert False
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-29 03:25:48 UTC
hm, maybe this got introduced by https://github.com/pydata/xarray/commit/a4f80b23d32e9c3986e3342182fe382d8081c3c2, which would then make it susceptible to the numpy bug/quirk/feature linked?
Comment 7 Larry the Git Cow gentoo-dev 2023-10-29 03:34:04 UTC
The bug has been closed via the following commit(s):

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

commit 214b26e564b13c56363258163cda0c16173b3636
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-10-29 03:33:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-29 03:33:02 +0000

    dev-python/xarray: skip tests caused by numpy quirk/bug
    
    See bug for details, it looks like it's a numpy quirk/feature/misfeature...?
    
    Closes: https://bugs.gentoo.org/916460
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/xarray/xarray-2023.10.1-r1.ebuild | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)