]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
python3-attrs: disable Hypothesis deadline
authorTim Orling <tim.orling@konsulko.com>
Thu, 29 Feb 2024 23:00:26 +0000 (15:00 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Mar 2024 09:32:11 +0000 (09:32 +0000)
commitf6064e573b68104d57565c57bfe43f0d708a14f6
tree34a873a7e075d31131dd2287b11b11493aabfbba
parenta80ce6e3c023809d1ec13d19e8acb25770b54737
python3-attrs: disable Hypothesis deadline

The deadline is by default 200ms, but this is intended to be useful to
the developer and not necessarily recommended for heavily loaded CI
systems. Avoid warnings by disabling the deadline completely.

https://github.com/HypothesisWorks/hypothesis/issues/3713
https://hypothesis.readthedocs.io/en/latest/settings.html#hypothesis.settings.deadline
https://lists.openembedded.org/g/openembedded-core/topic/104640034#196437
https://github.com/python-attrs/attrs/pull/1252

Fixes:
"""
Unreliable test timings! On an initial run, this test took 268.29ms,
which exceeded the deadline of 200.00ms, but on a subsequent run it
took 2.63 ms, which did not. If you expect this sort of variability in
your test timings, consider turning deadlines off for this test by
setting deadline=None.
"""

[YOCTO #15350]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3-attrs/0001-conftest.py-disable-deadline.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3-attrs_23.2.0.bb