Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651794 - dev-python/attrs-17.4.0 fails tests on slower machines
Summary: dev-python/attrs-17.4.0 fails tests on slower machines
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: https://github.com/python-attrs/attrs...
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-03-27 23:10 UTC by Matt Turner
Modified: 2020-03-03 01:53 UTC (History)
1 user (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 Matt Turner gentoo-dev 2018-03-27 23:10:00 UTC
Noticed when keywording attrs-17.4.0 on mips.

==================================================================================================== FAILURES =====================================================================================================
_______________________________________________________________________________________ TestMetadata.test_not_none_metadata _______________________________________________________________________________________

self = <tests.test_make.TestMetadata object at 0x753da5f0>

    @given(lists(simple_attrs_with_metadata(), min_size=2, max_size=5))
>   def test_not_none_metadata(self, list_of_attrs):
        """
            Non-empty metadata attributes exist as fields after ``@attr.s``.
E           FailedHealthCheck: Data generation is extremely slow: Only produced 9 valid examples in 1.12 seconds (0 invalid ones and 0 exceeded maximum size). Try decreasing size of the data you're generating (with e.g.max_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.

tests/test_make.py:935: FailedHealthCheck
--------------------------------------------------------------------------------------------------- Hypothesis ----------------------------------------------------------------------------------------------------
You can add @seed(302934307671667531413257853548643485645) to this test or run pytest with --hypothesis-seed=302934307671667531413257853548643485645 to reproduce this failure.



I'll submit a pull request.
Comment 1 Mart Raudsepp gentoo-dev 2018-05-04 13:24:37 UTC
Sometimes fails on 2GHz arm64 as well..
Comment 2 ernsteiswuerfel archtester 2018-06-27 16:15:51 UTC
Same problem with another test on dev-python/attrs-16.3.0-r1 on ppc:

==================================================================================================== FAILURES =====================================================================================================
________________________________________________________________________________________ TestAsTuple.test_recurse_property ________________________________________________________________________________________

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

    @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:187: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python2.7/site-packages/hypothesis/core.py:438: in wrapped_test
    HealthCheck.too_slow,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

message = 'Data generation is extremely slow: Only produced 9 valid examples in 1.07 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 9 valid examples in 1.07 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.
Comment 3 Matt Turner gentoo-dev 2020-03-03 01:53:28 UTC
19.3.0 passes all tests on my yeeloong.