⚠️ CI failed on Wheel builder (last failure: Jul 27, 2024) ⚠️

**CI is still failing on [Wheel builder](https://github.com/scikit-learn/scikit-learn/actions/runs/10120613947)** (Jul 27, 2024)

COMMENT:
For further reference, cryptic error on cp39-macosx_arm64 [build log](https://github.com/scikit-learn/scikit-learn/actions/runs/10105363204/job/27945724986):
```
6491 Bus error: 10           pytest --pyargs sklearn
```

<details>

```
 model_selection/tests/test_plot.py sssssssssssssssssssssssssssss         [ 40%]
  Fatal Python error: Bus error
  
  Thread 0x00000001707af000 (most recent call first):
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 312 in wait
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/joblib/externals/loky/backend/queues.py", line 147 in _feed
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 917 in run
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 980 in _bootstrap_inner
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 937 in _bootstrap
  
  Thread 0x000000016f7a3000 (most recent call first):
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/selectors.py", line 416 in select
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/connection.py", line 936 in wait
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/joblib/externals/loky/process_executor.py", line 654 in wait_result_broken_or_wakeup
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/joblib/externals/loky/process_executor.py", line 596 in run
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 980 in _bootstrap_inner
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 937 in _bootstrap
  
  Current thread 0x0000000202b6cc00 (most recent call first):
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/numpy/lib/_arraysetops_impl.py", line 356 in _unique1d
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/numpy/lib/_arraysetops_impl.py", line 289 in unique
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/utils/_array_api.py", line 432 in unique_values
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/utils/multiclass.py", line 403 in type_of_target
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/metrics/_classification.py", line 92 in _check_targets
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/metrics/_classification.py", line 219 in accuracy_score
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/utils/_param_validation.py", line 216 in wrapper
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/base.py", line 764 in score
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/metrics/_scorer.py", line 469 in __call__
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/model_selection/_validation.py", line 968 in _score
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/model_selection/_validation.py", line 907 in _fit_and_score
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/utils/parallel.py", line 139 in __call__
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/joblib/parallel.py", line 1847 in _get_sequential_output
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/joblib/parallel.py", line 1918 in __call__
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/utils/parallel.py", line 77 in __call__
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/model_selection/_search.py", line 961 in evaluate_candidates
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/model_selection/_search.py", line 1569 in _run_search
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/model_selection/_search.py", line 1015 in fit
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/base.py", line 1514 in wrapper
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/sklearn/model_selection/tests/test_search.py", line 525 in test_grid_search_sparse
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/python.py", line 159 in pytest_pyfunc_call
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_callers.py", line 103 in _multicall
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_manager.py", line 120 in _hookexec
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_hooks.py", line 513 in __call__
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/python.py", line 1627 in runtest
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/runner.py", line 174 in pytest_runtest_call
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_callers.py", line 103 in _multicall
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_manager.py", line 120 in _hookexec
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_hooks.py", line 513 in __call__
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/runner.py", line 242 in <lambda>
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/runner.py", line 341 in from_call
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/runner.py", line 241 in call_and_report
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/runner.py", line 132 in runtestprotocol
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/runner.py", line 113 in pytest_runtest_protocol
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_callers.py", line 103 in _multicall
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_manager.py", line 120 in _hookexec
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_hooks.py", line 513 in __call__
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/main.py", line 362 in pytest_runtestloop
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_callers.py", line 103 in _multicall
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_manager.py", line 120 in _hookexec
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_hooks.py", line 513 in __call__
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/main.py", line 337 in _main
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/main.py", line 283 in wrap_session
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/main.py", line 330 in pytest_cmdline_main
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_callers.py", line 103 in _multicall
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_manager.py", line 120 in _hookexec
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/pluggy/_hooks.py", line 513 in __call__
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/config/__init__.py", line 175 in main
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/lib/python3.9/site-packages/_pytest/config/__init__.py", line 201 in console_main
    File "/private/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/cibw-run-ck9vb8r2/cp39-macosx_arm64/venv-test-arm64/bin/pytest", line 8 in <module>
  /Users/runner/work/scikit-learn/scikit-learn/build_tools/wheels/test_wheels.sh: line 26:  6491 Bus error: 10           pytest --pyargs sklearn
  model_selection/tests/test_search.py ......................::endgroup::Testing wheel...
```

</details>

There was recently another weird error on cp310-macosx_arm64 segmentation fault that went away see https://github.com/scikit-learn/scikit-learn/pull/29538#issuecomment-2242448112. Does not seem directly related looking at the stack-trace but I mention it just in case.

Labels: Bug