Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hypothesis.errors.FailedHealthCheck: CI is broken on array-api-compat #326

Closed
crusaderky opened this issue Dec 2, 2024 · 2 comments
Closed

Comments

@crusaderky
Copy link

Two hypothesis tests on array-api-compat CI have started failing. I did not notice a commit in either array-api-compat or array-api-tests which suggests a regression.

https://github.com/data-apis/array-api-compat/actions/runs/12119646698/job/33786657188?pr=207

FAILED array_api_tests/test_linalg.py::test_eigh - hypothesis.errors.FailedHealthCheck: It looks like your strategy is filtering out a lot of data. Health check found 50 filtered examples but only 7 good ones. This will make your tests much slower, and also will probably distort the data generation quite a lot. You should adapt your strategy to filter less. This can also be caused by a low max_leaves parameter in recursive() calls
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.filter_too_much to the suppress_health_check settings for this test.
FAILED array_api_tests/test_linalg.py::test_eigvalsh - hypothesis.errors.FailedHealthCheck: It looks like your strategy is filtering out a lot of data. Health check found 50 filtered examples but only 9 good ones. This will make your tests much slower, and also will probably distort the data generation quite a lot. You should adapt your strategy to filter less. This can also be caused by a low max_leaves parameter in recursive() calls
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.filter_too_much to the suppress_health_check settings for this test.
@ev-br
Copy link
Contributor

ev-br commented Dec 2, 2024

xref #325 and references therein

@ev-br
Copy link
Contributor

ev-br commented Dec 4, 2024

Looks to be fixed by gh-325.

@ev-br ev-br closed this as completed Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants