-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
CI: Upgrade array-api-tests
#27081
CI: Upgrade array-api-tests
#27081
Conversation
9e6541c
to
785e4d7
Compare
785e4d7
to
84ca719
Compare
array_api_tests/test_signatures.py::test_func_signature[argsort] | ||
array_api_tests/test_signatures.py::test_func_signature[sort] | ||
|
||
# missing 'descending' keyword argument | ||
array_api_tests/test_sorting_functions.py::test_argsort | ||
array_api_tests/test_sorting_functions.py::test_sort |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest of these are bugs in the test suite but this looks like one thing that is actually missing from NumPy for array API compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but we decided that it would be too much churn to include it now.
The tests only take 26 seconds to run - maybe a value higher than 50? I don't have a good intuition about what a reasonable number to use here is, or whether it should be time-bound instead. |
The default value, which comes from hypothesis, is 100. |
I increased
And I wonder if it's more an issue on the
And the failing example is: In [30]: x = np.array(0, dtype=np.uint16)
In [31]: np.clip(x, min=0, max=np.uint32(0))
Out[31]: np.uint32(0) I think promotion here is intentional and if handling mixed data types of |
On a hunch I just tried
|
The sum thing is indeed a known issue with the test suite. Here's a more accurate set of xfails for numpy https://github.com/data-apis/array-api-compat/blob/main/numpy-dev-xfails.txt (that should also include The |
9a3b3a0
to
bdd3e92
Compare
Ok, then let's keep 100 for now as it's the default. I added another xfail for |
Maybe you should be using the skips file maintained by the array-api-tests repo like Aaron suggested? Since it captures issues discovered upstream. |
In this PR I'm using I think it's more accurate to use |
Sorry, I mean the xfails |
I think this file is outdated, it contains non-existing tests. Here I updated it: data-apis/array-api-compat#171 |
If you can't just immediately use that let's move to using the upstream file in a followup. Thanks @mtsokol! |
Fixes #27072 and increases
array-api-tests
suite--max-examples
to 50.