From 9558592d8d40879673cc46465ffb56357a1186b6 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Tue, 5 Sep 2023 09:48:01 -0700 Subject: [PATCH 1/2] CI: Ignore hypothesis differing executors --- pandas/conftest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandas/conftest.py b/pandas/conftest.py index a4f58e99d8bcc..75648d58b156d 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -202,7 +202,10 @@ def pytest_collection_modifyitems(items, config) -> None: # 2022-02-09: Changed deadline from 500 -> None. Deadline leads to # non-actionable, flaky CI failures (# GH 24641, 44969, 45118, 44969) deadline=None, - suppress_health_check=(hypothesis.HealthCheck.too_slow,), + suppress_health_check=( + hypothesis.HealthCheck.too_slow, + hypothesis.HealthCheck.differing_executors, + ), ) hypothesis.settings.load_profile("ci") From 4f431f25551df2d5efb7f54c53c8fc08ec57b743 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Tue, 5 Sep 2023 11:01:49 -0700 Subject: [PATCH 2/2] Version check --- pandas/conftest.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pandas/conftest.py b/pandas/conftest.py index 75648d58b156d..ac0275bf695d4 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -71,6 +71,7 @@ Index, MultiIndex, ) +from pandas.util.version import Version if TYPE_CHECKING: from collections.abc import ( @@ -191,6 +192,10 @@ def pytest_collection_modifyitems(items, config) -> None: item.add_marker(pytest.mark.arraymanager) +hypothesis_health_checks = [hypothesis.HealthCheck.too_slow] +if Version(hypothesis.__version__) >= Version("6.83.2"): + hypothesis_health_checks.append(hypothesis.HealthCheck.differing_executors) + # Hypothesis hypothesis.settings.register_profile( "ci", @@ -202,10 +207,7 @@ def pytest_collection_modifyitems(items, config) -> None: # 2022-02-09: Changed deadline from 500 -> None. Deadline leads to # non-actionable, flaky CI failures (# GH 24641, 44969, 45118, 44969) deadline=None, - suppress_health_check=( - hypothesis.HealthCheck.too_slow, - hypothesis.HealthCheck.differing_executors, - ), + suppress_health_check=tuple(hypothesis_health_checks), ) hypothesis.settings.load_profile("ci")