Skip to content

Commit 1a0ac93

Browse files
committed
fixes and reverts
1 parent 288c2a0 commit 1a0ac93

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

.github/workflows/array-api-tests-dask.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
package-version: '>= 2024.9.0'
1111
module-name: dask.array
1212
extra-requires: numpy
13-
# Dask is quite slower then other libraries on unit tests
14-
# Reduce the number of examples to speed up CI, even though
15-
# this can cause flakiness.
16-
pytest-extra-args: --max-examples=50
13+
# Dask is substantially slower then other libraries on unit tests.
14+
# Reduce the number of examples to speed up CI, even though this means that this
15+
# workflow is barely more than a smoke test, and one should expect extreme
16+
# flakiness. Before changes to dask-xfails.txt or dask-skips.txt, please run
17+
# the full test suite with at least 200 examples.
18+
pytest-extra-args: --max-examples=5

dask-skips.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# NOTE: dask tests run on a very small number of examples in CI due to
2+
# slowness. This causes very high flakiness in the tests.
3+
# Before changing this file, please run with at least 200 examples.
4+
15
# Passes, but extremely slow
26
array_api_tests/test_linalg.py::test_outer
37

dask-xfails.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# NOTE: dask tests run on a very small number of examples in CI due to
2+
# slowness. This causes very high flakiness in the tests.
3+
# Before changing this file, please run with at least 200 examples.
4+
15
# Shape mismatch; needs high priority investigation
26
array_api_tests/test_array_object.py::test_setitem
37
array_api_tests/test_indexing_functions.py::test_take
@@ -35,7 +39,7 @@ array_api_tests/test_set_functions.py::test_unique_values
3539
# fails for ndim > 2
3640
array_api_tests/test_linalg.py::test_svdvals
3741

38-
# dtype mismatch got uint64, but should be uint8, NPY_PROMOTION_STATE=weak doesn't help :(
42+
# dtype mismatch got uint64, but should be uint8; NPY_PROMOTION_STATE=weak doesn't help
3943
array_api_tests/test_linalg.py::test_tensordot
4044

4145
# AssertionError: out.dtype=uint64, but should be uint8 [tensordot(uint8, uint8)]
@@ -105,13 +109,16 @@ array_api_tests/test_array_object.py::test_getitem_arrays_and_ints_1[None]
105109
array_api_tests/test_array_object.py::test_getitem_arrays_and_ints_2[1]
106110
array_api_tests/test_array_object.py::test_getitem_arrays_and_ints_2[None]
107111
array_api_tests/test_has_names.py::test_has_names[indexing-take_along_axis]
112+
array_api_tests/test_signatures.py::test_func_signature[count_nonzero]
108113
array_api_tests/test_signatures.py::test_func_signature[take_along_axis]
114+
109115
array_api_tests/test_linalg.py::test_cholesky
110116
array_api_tests/test_linalg.py::test_linalg_matmul
111117
array_api_tests/test_linalg.py::test_matmul
112118
array_api_tests/test_linalg.py::test_matrix_norm
113119
array_api_tests/test_linalg.py::test_qr
114-
array_api_tests/test_signatures.py::test_func_signature[count_nonzero]
120+
array_api_tests/test_manipulation_functions.py::test_roll
121+
115122
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity]
116123
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity]
117124
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is -infinity and isfinite(x2_i) and x2_i > 0) -> -infinity]

0 commit comments

Comments
 (0)