Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608570 - dev-python/attrs-16.3.0-r1 fails tests on slower machines
Summary: dev-python/attrs-16.3.0-r1 fails tests on slower machines
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL: https://github.com/python-attrs/attrs...
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-02-07 21:28 UTC by Mart Raudsepp
Modified: 2018-03-27 23:10 UTC (History)
0 users

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


Attachments
build.log from mips (should be performance of single core 700-1000MHz x86 or so iirc) (build-attrs.log,20.03 KB, text/x-log)
2017-02-07 21:29 UTC, Mart Raudsepp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mart Raudsepp gentoo-dev 2017-02-07 21:28:12 UTC
=============================================== FAILURES ================================================
___________________________________ TestAsTuple.test_recurse_property ___________________________________

self = <tests.test_funcs.TestAsTuple object at 0x762ae230>

    @given(nested_classes, st.sampled_from(SEQUENCE_TYPES))
>   def test_recurse_property(self, cls, tuple_class):
        """
            Property tests for recursive astuple.

tests/test_funcs.py:186: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib32/python2.7/site-packages/hypothesis/core.py:438: in wrapped_test
    HealthCheck.too_slow,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

message = 'Data generation is extremely slow: Only produced 8 valid examples in 1.18 seconds (0 invalid ones and 0 exceeded maxi... want to disable just this health check, add HealthCheck.too_slow to the suppress_health_check settings for this test.'
label = <HealthCheck.too_slow: 3>

    def fail_health_check(message, label):
        if label in settings.suppress_health_check:
            return
        message += (
            '\nSee https://hypothesis.readthedocs.io/en/latest/health'
            'checks.html for more information about this. '
        )
        message += (
            'If you want to disable just this health check, add %s '
            'to the suppress_health_check settings for this test.'
        ) % (label,)
>       raise FailedHealthCheck(message)
E       FailedHealthCheck: Data generation is extremely slow: Only produced 8 valid examples in 1.18 seconds (0 invalid ones and 0 exceeded maximum size). Try decreasing size of the data you're generating (with e.g.average_size or max_leaves parameters).
E       See https://hypothesis.readthedocs.io/en/latest/healthchecks.html for more information about this. If you want to disable just this health check, add HealthCheck.too_slow to the suppress_health_check settings for this test.

/usr/lib32/python2.7/site-packages/hypothesis/core.py:306: FailedHealthCheck
=========================== 1 failed, 188 passed, 2 skipped in 163.45 seconds ===========================
 * ERROR: dev-python/attrs-16.3.0-r1::gentoo failed (test phase):
 *   (no error message)
Comment 1 Mart Raudsepp gentoo-dev 2017-02-07 21:29:35 UTC
Created attachment 462828 [details]
build.log from mips (should be performance of single core 700-1000MHz x86 or so iirc)
Comment 2 Mart Raudsepp gentoo-dev 2017-02-07 21:30:32 UTC
Portage 2.3.3 (python 2.7.12-final-0, default/linux/mips/13.0/mipsel/n32, gcc-5.4.0, glibc-2.23-r3, 3.12.22 mips64)
=================================================================
System uname: Linux-3.12.22-mips64-ICT_Loongson-2_V0.3_FPU_V0.1-with-gentoo-2.3
KiB Mem:     1031168 total,    808688 free
KiB Swap:    2859520 total,   2859520 free
sh bash 4.4_p11
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p11::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.11.6::gentoo, 1.13.4::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.27::gentoo
sys-devel/gcc:            5.3.0::gentoo, 5.4.0-r2::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /home/leio/gentoo/gentoo-x86
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

loongson
    location: /home/leio/gentoo/loongson
    masters: gentoo
    priority: 0

leio-yeeloong
    location: /home/leio/gentoo/local
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="* -@EULA"
CBUILD="mips64el-unknown-linux-gnu"
CFLAGS="-O2 -march=loongson2f -mabi=n32 -pipe -mplt -Wa,-mfix-loongson2f-nop"
CHOST="mips64el-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
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 -march=loongson2f -mabi=n32 -pipe -mplt -Wa,-mfix-loongson2f-nop"
DISTDIR="/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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"
USE="X acl berkdb bzip2 cairo cli cracklib crypt cxx gdbm iconv ipv6 jpeg loongson2f mips modules n32 ncurses nls nptl pam pcre png readline seccomp session ssl tcpd tiff unicode xattr zlib" ABI_MIPS="n32" ALSA_CARDS="au1x00" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en et et_EE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="siliconmotion fbdev" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Mart Raudsepp gentoo-dev 2017-02-07 21:31:16 UTC
This was tried to be ~mips keyworded due to twisted[crypt] -> service_identity FEATURES=test deptree
Comment 4 Mike Gilbert gentoo-dev 2017-02-19 18:09:39 UTC
Please try again.


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

commit 1d56d28e26354152645d35c7741f10152fd737e9
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun Feb 19 13:08:50 2017 -0500

    dev-python/attrs: suppress too_slow health check on test_recurse_property
    
    Bug: https://bugs.gentoo.org/608570
    Package-Manager: Portage-2.3.3_p56, Repoman-2.3.1_p49

 dev-python/attrs/attrs-16.3.0-r1.ebuild          |  4 ++++
 dev-python/attrs/files/test_funcs-too-slow.patch | 21 +++++++++++++++++++++
 2 files changed, 25 insertions(+)