Skip to content

CI Align wheel workflow in scikit-learn and scikit-learn-release repos #34723

Open

Description

@lesteve

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.toml or a cibuildwheel.toml, rather than cibuildwheel.toml for scikit-learn-release and pyproject.toml)
  • which wheels build do we want to run in scikit-learn and 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:

To think about for the future:

Activity

  1. added
    Needs Triage
    on Aug 11, 2026
  2. added
    Needs Investigation
    Needs Triage
    and removed
    Needs Triage
    on Aug 11, 2026
  3. removed
    Needs Triage
    on Aug 11, 2026
  4. changed the title [-]CI Align `scikit-learn` wheels.yml with `scikit-learn-release` wheels.yml[/-] [+]CI Align `scikit-learn` wheels.yml` with `scikit-learn-release` wheels.yml[/+] on Aug 11, 2026
  5. changed the title [-]CI Align `scikit-learn` wheels.yml` with `scikit-learn-release` wheels.yml[/-] [+]CI Align `scikit-learn` `wheels.yml` with `scikit-learn-release` `wheels.yml`[/+] on Aug 11, 2026
  6. changed the title [-]CI Align `scikit-learn` `wheels.yml` with `scikit-learn-release` `wheels.yml`[/-] [+]CI Align wheel workflow in `scikit-learn` and `scikit-learn-release` repo[/+] on Aug 11, 2026
  7. changed the title [-]CI Align wheel workflow in `scikit-learn` and `scikit-learn-release` repo[/-] [+]CI Align wheel workflow in `scikit-learn` and `scikit-learn-release` repos[/+] on Aug 11, 2026
  8. andyfaff commented on Oct 15, 2026

    @andyfaff

    As of numpy/numpy-release#69 numpy-release is now using uv.lock files to pin the wheel builds. The numpy repo uses dependency-groups in pyproject.toml to define packages and versions, such as the scipy-openblas version. i.e. there is one source of truth for version specification. The numpy-release repo then generates its own pyproject.toml from numpy/numpy using 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.

  9. lesteve commented on Oct 15, 2026

    @lesteve
    MemberAuthor

    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_call to 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.yml workflow lives in scikit-learn-release
    • scikit-learn has a simple build-and-test-wheels.yml that is pretty much uses: scikit-learn-release/build-and-test-wheels and 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Build / CINeeds Investigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions