Repository navigation
Open
Labels
Description
Warning
This issue is not yet ready for a PR. If you are interested in contributing to scikit-learn, please have a look at our contributing guidelines, and in particular the sections for new contributors and the "Needs triage" label.
Looking at numpy approach, the idea would be to have scikit-learn wheels.yml be a "simplified" version of scikit-learn-release wheels.yml so that we can catch most wheels error in the scikit-learn repo. numpy went for one wheels build per platform with the minimal Python version.
There are at least to things:
- use cibuildwheel directly + remove the Docker set-up since the minimal Docker image is tested in scikit-learn-release. This would allow to get rid of the intermittent Docker on Windows GHA issue: ⚠️ CI failed on Wheel builder (last failure: Aug 14, 2026) ⚠️ #34569. There are other things to sync, like bash scripts and config (maybe it would be better if both repos use a
pyroject.tomlor acibuildwheel.toml, rather thancibuildwheel.tomlfor scikit-learn-release andpyproject.toml) - which wheels build do we want to run in
scikit-learnand on which trigger. Do we want to do something like numpy, i.e. one wheels build per platform for the minimal Python version? Do we want to keep[cd build]to test wheels only on demand? See numpy PR for numpy and scipy PR for more details.
First item can be work on already. Second one may need a bit of discussion.
Caveat:
- our lock-files setup gives us confidence that a new release of our dependencies will not break all PRs at once. What do we want to do about this if we start having wheels build on each PR push, hope that it doesn't happen this often? Last time it happened was with cython see Cython >= 3.2.6 (including cython dev) issues related to KDTree picklability #34525. In principle we should have caught it in the scipy-dev build and reported it earlier to cython but we didn't 🤷. An alternative is to have lock files in wheels build, see Use lock files and relative dependency cooldowns scikit-learn-release#1, but that seems to be further away in the future IMO.
To think about for the future:
- how do we make sure that both
wheels.ymldoes not diverge too much. AFAICT numpy has not a ready-made solution but they introduced this check CI: add check for numpy-release version of scipy-openblas numpy/numpy#30166 to make sure that the pinned scipy-openblas version is the same in both repos. - automatic wheels failure issue creation, see Create automated issue when wheels failed on scikit-learn-release scikit-learn-release#6
Activity
[-]CI Align `scikit-learn` wheels.yml with `scikit-learn-release` wheels.yml[/-][+]CI Align `scikit-learn` wheels.yml` with `scikit-learn-release` wheels.yml[/+][-]CI Align `scikit-learn` wheels.yml` with `scikit-learn-release` wheels.yml[/-][+]CI Align `scikit-learn` `wheels.yml` with `scikit-learn-release` `wheels.yml`[/+][-]CI Align `scikit-learn` `wheels.yml` with `scikit-learn-release` `wheels.yml`[/-][+]CI Align wheel workflow in `scikit-learn` and `scikit-learn-release` repo[/+][-]CI Align wheel workflow in `scikit-learn` and `scikit-learn-release` repo[/-][+]CI Align wheel workflow in `scikit-learn` and `scikit-learn-release` repos[/+]andyfaff commentedon Oct 15, 2026
As of numpy/numpy-release#69 numpy-release is now using uv.lock files to pin the wheel builds. The
numpyrepo usesdependency-groupsinpyproject.tomlto define packages and versions, such as the scipy-openblas version. i.e. there is one source of truth for version specification. Thenumpy-releaserepo then generates its ownpyproject.tomlfromnumpy/numpyusing a sync script. From that a uv.lock file is generated. This allows numpy-release to pin all dependencies during build and test. All requirements.txt files from both repos have been removed. There are a few places where a 7 day cooldown is enforced.lesteve commentedon Oct 15, 2026
Interesting, thanks for the update, I'll try to have a closer look at one point!
FYI lately we have been thinking about using a
workflow_callto avoid having to keep two slightly modified versions of the wheels workflow in sync. I would be very curious what your take on this approach is, in particular if you see potential shortcomings 😅.The main idea:
build-and-test-wheels.ymlworkflow lives inscikit-learn-releasebuild-and-test-wheels.ymlthat is pretty muchuses: scikit-learn-release/build-and-test-wheelsand only run on[cd build]commit (historical scikit-learn approach). I am guessing you could also have some logic in the workflow so that it only runs the subset of builds you are interested in on all PR pushes. IIRC that is what numpy and scipy are doing, right?See scikit-learn/scikit-learn-release#18 for more details.