-
Notifications
You must be signed in to change notification settings - Fork 44
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
Failed hypothesis health check #132
Comments
A health check error generally indicates a bug in the test suite. It means we are filtering too much in one of the strategies. |
In that case, should I skip the test or disable the health check for now? |
Yep, although when it comes to
If you can figure using Hypothesis' internal suite as mentioned above, I'd try and explore that. But yeah otherwise I'd skip for now if you're running this on CI—I'd disable the health check only when exploring things locally. |
To be sure, this particular health check error means that the test isn't actually being run at all, so you'd effectively need to treat this test as an XFAIL. |
Is there a way to skip one of the special case functions for a particular method? e.g. skip |
Depends how, but yes. Specifying the test case externally (e.g. how we specify skips in CI), you'll need the unique test case id e.g. |
I'm attempting to implement a similar set of functions to here down in the ivy conftest.py file. In principal, should this work? (currently not having any luck). Or is it necessary to have the skips.txt file within the array-api submodule directory itself as only the array api conftest.py can skip tests? |
Yeah, in principal... but specifying skips/xfails is a bit annoying to do with pytest, outside of them being literally coded in the test heh.
I think you could have |
Cheers, I think I have it working now! |
I'm getting a lot of health check errors testing against the NumPy compat library https://github.com/data-apis/numpy-array-api-compat, specifically for Maybe we should add a plain NumPy build to the CI to check for test suite errors like this. Also, if you run the tests against the development NumPy with |
Yep, on the in-place branch copy is used, as IIRC it's necessary to actually test the elements of resulting arrays. array-api-tests/array_api_tests/test_operators_and_elementwise_functions.py Lines 410 to 415 in 8ad6b62
|
Hi, I have encountered an hypothesis heath check error for the
__ifloordiv__
and other similar arithmetic operator methods intest_iop
when using tensorflow backend functions:What is the best way to handle this?
The text was updated successfully, but these errors were encountered: