Skip to content

Commit 288c2a0

Browse files
committed
TST: dask tests are extremely flaky
1 parent 289203e commit 288c2a0

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ jobs:
1010
package-version: '>= 2024.9.0'
1111
module-name: dask.array
1212
extra-requires: numpy
13-
pytest-extra-args: --disable-deadline --max-examples=5
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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ on:
3333
description: "Multiline string of environment variables to set for the test run."
3434

3535
env:
36-
PYTEST_ARGS: "--max-examples 200 -v -rxXfE --ci ${{ inputs.pytest-extra-args }} --hypothesis-disable-deadline"
36+
PYTEST_ARGS: "--max-examples 200 -v -rxXfE --ci ${{ inputs.pytest-extra-args }} --hypothesis-disable-deadline --durations 10"
3737

3838
jobs:
3939
tests:

dask-skips.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# slow and not implemented in dask
2-
array_api_tests/test_linalg.py::test_matrix_power
1+
# Passes, but extremely slow
2+
array_api_tests/test_linalg.py::test_outer
33

4-
# hangs on 2024.12
4+
# Hangs
55
array_api_tests/test_creation_functions.py::test_eye

dask-xfails.txt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Shape mismatch; needs high priority investigation
2+
array_api_tests/test_array_object.py::test_setitem
3+
array_api_tests/test_indexing_functions.py::test_take
4+
15
# Various indexing errors
26
array_api_tests/test_array_object.py::test_getitem_masking
37

@@ -89,28 +93,24 @@ array_api_tests/meta/test_hypothesis_helpers.py::test_symmetric_matrices
8993
# https://github.com/dask/dask/issues/11706
9094
array_api_tests/test_creation_functions.py::test_arange
9195

96+
# da.searchsorted with a sorter argument is not supported
97+
array_api_tests/test_searching_functions.py::test_searchsorted
98+
9299
# 2023.12 support
93100
array_api_tests/test_manipulation_functions.py::test_repeat
94101

95102
# 2024.12 support
96-
array_api_tests/test_array_object.py::test_setitem
97103
array_api_tests/test_array_object.py::test_getitem_arrays_and_ints_1[1]
98104
array_api_tests/test_array_object.py::test_getitem_arrays_and_ints_1[None]
99105
array_api_tests/test_array_object.py::test_getitem_arrays_and_ints_2[1]
100106
array_api_tests/test_array_object.py::test_getitem_arrays_and_ints_2[None]
101107
array_api_tests/test_has_names.py::test_has_names[indexing-take_along_axis]
102108
array_api_tests/test_signatures.py::test_func_signature[take_along_axis]
103-
104109
array_api_tests/test_linalg.py::test_cholesky
105110
array_api_tests/test_linalg.py::test_linalg_matmul
111+
array_api_tests/test_linalg.py::test_matmul
106112
array_api_tests/test_linalg.py::test_matrix_norm
107113
array_api_tests/test_linalg.py::test_qr
108-
array_api_tests/test_manipulation_functions.py::test_concat
109-
array_api_tests/test_manipulation_functions.py::test_roll
110-
array_api_tests/test_operators_and_elementwise_functions.py::test_add[add(x1, x2)]
111-
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_left_shift[bitwise_left_shift(x1, x2)]
112-
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_right_shift[bitwise_right_shift(x1, x2)]
113-
array_api_tests/test_operators_and_elementwise_functions.py::test_greater[__gt__(x1, x2)]
114114
array_api_tests/test_signatures.py::test_func_signature[count_nonzero]
115115
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity]
116116
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity]
@@ -131,5 +131,3 @@ array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is -infinity
131131
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0]
132132
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0]
133133
array_api_tests/test_special_cases.py::test_nan_propagation[cumulative_prod]
134-
135-

0 commit comments

Comments
 (0)