Skip to content

Strictly expect test failures - #12435

Merged
crusaderky merged 6 commits into
dask:mainfrom
crusaderky:expect-failures
Jun 1, 2026
Merged

crusaderky merged 6 commits into
dask:mainfrom
crusaderky:expect-failures

Conversation

@crusaderky

@crusaderky crusaderky commented Jun 1, 2026 •

Copy link
Copy Markdown
Collaborator

Remove most cases of

  • pytest.mark.xfail(strict=False)
  • pytest.xfail (terminates test immediately, unlike pytest.mark.xfail)
  • pytest.skip
  • pytest.mark.skip

Instead make the tests run until the end and assert that they do fail.
This PR effectively re-enables a lot of tests that used to be broken a long time ago; later the use case was fixed in dask or upstream but nobody noticed.

@crusaderky crusaderky added the tests Unit tests and/or continuous integration label Jun 1, 2026
@crusaderky
crusaderky marked this pull request as draft June 1, 2026 13:13
@github-actions

github-actions Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     25 files  +     1       25 suites  +1   7h 15m 24s ⏱️ + 52m 0s
 18 634 tests ±     0   17 353 ✅ +   104   1 281 💤  - 104  0 ❌ ±0 
378 863 runs  +18 433  330 030 ✅ +18 941  48 833 💤  - 508  0 ❌ ±0 

Results for commit 454257b. ± Comparison against base commit 2796a84.

This pull request removes 543 and adds 543 tests. Note that renamed tests count towards both.
dask.array.tests.test_array_function ‑ test_array_function_sparse[<lambda>0]
dask.array.tests.test_array_function ‑ test_array_function_sparse[<lambda>1]
dask.array.tests.test_array_function ‑ test_array_function_sparse[<lambda>2]
dask.dataframe.tests.test_groupby ‑ test_aggregate__single_element_groups[corr-disk]
dask.dataframe.tests.test_groupby ‑ test_aggregate__single_element_groups[corr-tasks]
dask.dataframe.tests.test_groupby ‑ test_aggregate__single_element_groups[count-disk]
dask.dataframe.tests.test_groupby ‑ test_aggregate__single_element_groups[count-tasks]
dask.dataframe.tests.test_groupby ‑ test_aggregate__single_element_groups[cov-disk]
dask.dataframe.tests.test_groupby ‑ test_aggregate__single_element_groups[cov-tasks]
dask.dataframe.tests.test_groupby ‑ test_aggregate__single_element_groups[first-disk]
…
dask.array.tests.test_array_function ‑ test_array_function_sparse[imag]
dask.array.tests.test_array_function ‑ test_array_function_sparse[real]
dask.array.tests.test_array_function ‑ test_array_function_sparse[transpose]
dask.dataframe.tests.test_groupby ‑ test_aggregate_single_element_groups[corr-disk]
dask.dataframe.tests.test_groupby ‑ test_aggregate_single_element_groups[corr-tasks]
dask.dataframe.tests.test_groupby ‑ test_aggregate_single_element_groups[count-disk]
dask.dataframe.tests.test_groupby ‑ test_aggregate_single_element_groups[count-tasks]
dask.dataframe.tests.test_groupby ‑ test_aggregate_single_element_groups[cov-disk]
dask.dataframe.tests.test_groupby ‑ test_aggregate_single_element_groups[cov-tasks]
dask.dataframe.tests.test_groupby ‑ test_aggregate_single_element_groups[first-disk]
…
This pull request removes 24 skipped tests and adds 34 skipped tests. Note that renamed tests count towards both.
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-1-<lambda>4]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-2-<lambda>0]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-2-<lambda>1]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-2-<lambda>2]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-2-<lambda>3]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-2-<lambda>4]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-tasks-1-<lambda>4]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-tasks-2-<lambda>0]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-tasks-2-<lambda>1]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-tasks-2-<lambda>2]
…
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-1-4-<lambda>]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-2-0-<lambda>]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-2-1-<lambda>]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-2-2-<lambda>]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-2-3-<lambda>]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-disk-2-4-<lambda>]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-tasks-1-4-<lambda>]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-tasks-2-0-<lambda>]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-tasks-2-1-<lambda>]
dask.dataframe.tests.test_groupby ‑ test_dataframe_aggregations_multilevel[corr-tasks-2-2-<lambda>]
…

♻️ This comment has been updated with latest results.

@crusaderky
crusaderky marked this pull request as ready for review June 1, 2026 16:21
@crusaderky
crusaderky merged commit 40a413d into dask:main Jun 1, 2026
32 of 33 checks passed
@crusaderky
crusaderky deleted the expect-failures branch June 1, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Unit tests and/or continuous integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant