Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751526 - dev-python/hypothesis-5.37.3 fails 2 tests on m68k ( cover/test_float_nastiness.py, cover/test_float_utils.py )
Summary: dev-python/hypothesis-5.37.3 fails 2 tests on m68k ( cover/test_float_nastine...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-28 02:23 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2020-12-21 19:29 UTC (History)
1 user (show)

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


Attachments
build.log.gz (build.log.gz,47.09 KB, application/gzip)
2020-10-28 02:23 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-10-28 02:23:17 UTC
Admittedly, this looks like possibly either numpy (bug #750386) or cython (bug #750272) to blame.

But I'll get around to the nitty gritty once some magical theoretical future occurs where cython doesn't fail tests (it could even be failing in python itself, or even glibc! hard to tell)

Relevant context from qemu-chroot-m68k ( which has at least proven to be consistent when it comes to segfaults, across both qemu-user, qemu-system, and aranym )



FAILED tests/cover/test_float_nastiness.py::test_down_means_lesser - assert ((True and False) or (nan < 0) or (nan == 1.7976931348623157e+308
FAILED tests/cover/test_float_utils.py::test_next_float_equal[next_down-nan] - assert False

> _________________________________________________________________________________________________________________________________________________ test_down_means_lesser ___________________________________________________________________________________________________________________________________________________
> [gw0] linux -- Python 3.7.9 /usr/bin/python3.7
> Traceback (most recent call last):
>   File "/var/tmp/portage/dev-python/hypothesis-5.37.3/work/hypothesis-hypothesis-python-5.37.3/hypothesis-python-python3_7/tests/cover/test_float_nastiness.py", line 155, in test_down_means_lesser
>     def test_down_means_lesser(x):
>   File "/var/tmp/portage/dev-python/hypothesis-5.37.3/work/hypothesis-hypothesis-python-5.37.3/hypothesis-python-python3_7/build/lib/hypothesis/core.py", line 1162, in wrapped_test
>     raise the_error_hypothesis_found
>   File "/var/tmp/portage/dev-python/hypothesis-5.37.3/work/hypothesis-hypothesis-python-5.37.3/hypothesis-python-python3_7/tests/cover/test_float_nastiness.py", line 158, in test_down_means_lesser
>     assert (
> AssertionError: assert ((True and False) or (nan < 0) or (nan == 1.7976931348623157e+308
>  +  where True = <built-in function isnan>(nan)
>  +    where <built-in function isnan> = math.isnan
>  +  and   False = <built-in function isnan>(1.7976931348623157e+308)
>  +    where <built-in function isnan> = math.isnan
>   +nan
>   -1.7976931348623157e+308))
> --------------------------------------------------------------------------------------------------------------------------------------------------------  Hypothesis --------------------------------------------------------------------------------------------------------------------------------------------------------> -
> Falsifying example: test_down_means_lesser(
>     x=nan,
> )
> ___________________________________________________________________________________________________________________________________________ test_next_float_equal[next_down-nan] ____________________________________________________________________________________________________________________________________________
> [gw0] linux -- Python 3.7.9 /usr/bin/python3.7
> Traceback (most recent call last):
>   File "/var/tmp/portage/dev-python/hypothesis-5.37.3/work/hypothesis-hypothesis-python-5.37.3/hypothesis-python-python3_7/tests/cover/test_float_utils.py", line 40, in test_next_float_equal
>     assert math.isnan(func(val))
> AssertionError: assert False
>  +  where False = <built-in function isnan>(1.7976931348623157e+308)
>  +    where <built-in function isnan> = math.isnan
>  +    and   1.7976931348623157e+308 = <function next_down at 0x3d853194>(nan)


I will try not to file any more python bugs or run any more python tests until this mess gets sorted out, just filing this one now because I did it a week or so ago, and want to preserve state before I fire up a clean.

Portage 3.0.8 (python 3.7.9-final-0, default/linux/m68k/17.0, gcc-10.2.0, glibc-2.32-r2, 5.7.14-gentoo m68k)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.7.14-gentoo-m68k-with-gentoo-2.7
KiB Mem:     7987300 total,    829156 free
KiB Swap:   20478972 total,  17474812 free
Timestamp of repository gentoo: Mon, 19 Oct 2020 10:05:18 +0000
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p1) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.7.9::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.35.1::gentoo
sys-devel/gcc:            10.2.0-r2::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

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

ACCEPT_KEYWORDS="m68k ~m68k"
ACCEPT_LICENSE="@FREE"
CBUILD="m68k-unknown-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="m68k-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /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 -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --binpkg-respect-use=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo noman parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_NZ.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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"
USE="acl berkdb big-endian bzip2 cli crypt dri fortran gdbm iconv ipv6 m68k ncurses nls nptl openmp pcre readline split-usr ssl tcpd unicode xattr zlib" ADA_TARGET="gnat_2018" 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-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-python/hypothesis-5.37.3::gentoo was built with the following:
USE="-cli -test" PYTHON_TARGETS="python3_7 (-pypy3) -python3_6 -python3_8 -python3_9"
FEATURES="binpkg-docompress parallel-fetch sfperms unmerge-logs strict binpkg-dostrip buildpkg fixlafiles userfetch news merge-sync config-protect-if-modified binpkg-logs protect-owned nodoc qa-unresolved-soname-deps preserve-libs ebuild-locks noman unmerge-orphans assume-digests multilib-strict userpriv noinfo unknown-features-warn usersync distlocks xattr"
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-10-28 02:23:41 UTC
Created attachment 668858 [details]
build.log.gz