Skip to content

Add Windows ARM64 GHA runner - #31867

Merged
adrinjalali merged 4 commits into
scikit-learn:mainfrom
vask2108:woa_gha_runner
Oct 2, 2025
Merged

adrinjalali merged 4 commits into
scikit-learn:mainfrom
vask2108:woa_gha_runner

Conversation

@vask2108

@vask2108 vask2108 commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Fixes issue : #30567

What does this implement/fix? Explain your changes.

This PR will add CI work to create Windows on ARM64(WoA) wheel.

Any other comments?

Please note SciPy Windows on Arm64 (WoA) is recently committed and SciPy wheel will take sometime to appear in PyPI. Currently I have to create a temporary patch to pick it from pypi.anaconda.org. I will remove this temporary solution soon, once PyPI hosts SciPy wheel. Please see the comment here ( scipy/scipy#23122 (comment) )

Please also note WoA GHA runners are new (available from April 2025) and docker is not available yet. So docker is skipped for WoA now.

@github-actions

github-actions Bot commented Aug 1, 2025 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 6896d43. Link to the linter CI: here

@vask2108 vask2108 changed the title Add Winows ARM64 GHA runner Add Windows ARM64 GHA runner Aug 1, 2025

@adrinjalali adrinjalali left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need a commit with [cd build] message to test the wheel builds

@adrinjalali

Copy link
Copy Markdown
Member

@vask2108 please never force push here. It makes reviews harder, and we squash and merge anyway. This can be put as a draft PR since I don't think we should really look at it much until our dependencies have all the wheels available first.

@vask2108

vask2108 commented Aug 4, 2025 •

Copy link
Copy Markdown
Contributor Author

@adrinjalali
Thank you very the review.

As it was cosmetic change, I did a the force push. But I can understand the inconvenience, I will definitely avoid next time.

What I understand from your response is that, you would like to wait for SciPy (dependency) wheel to be available in PyPI to proceed further with this PR? Until then, you consider this as draft PR.

I don't think any other dependency wheel is pending apart from SciPy

Is my understanding is correct?

Thank you.

@adrinjalali

Copy link
Copy Markdown
Member

Yes, that sounds about right.

@ogrisel ogrisel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I took a look at the diff and scanned the CI outputs, and it looks good to me.

But I would also rather wait for SciPy to publish a stable release with Windows ARM64 wheels to avoid having to rely on the sed-based hackish workaround in our CI config.

However, if a downstream project of scikit-learn would like to have access to nightly Windows ARM64 builds before that happens, I am fine with merging that PR earlier.

Comment thread .github/workflows/wheels.yml Outdated
miniforge-version: latest

# PyPI not yet hosting SciPy wheel as WoA PR of SciPy recently merged.
# This workaround will be removed once PyPI hosts SciPy wheel.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# This workaround will be removed once PyPI hosts SciPy wheel.
# TODO: remove this workaround once PyPI hosts SciPy wheel.

@lesteve

lesteve commented Aug 5, 2025

Copy link
Copy Markdown
Member

+1 for waiting for a scipy release with Windows arm wheels. According to scipy/scipy#23122 (comment) a scipy release with Windows arm wheels may happen some time in September 2025.

Remove SciPy wheel workaround

Fixes issue : scikit-learn#30567
@vask2108

Copy link
Copy Markdown
Contributor Author

@adrinjalali @ogrisel @lesteve

Now I have removed SciPy wheel work around as new SciPy Wheel for Windows ARM64 officially available now in release 1.16.2
All looks good like before. Only branch needs a trivial update with rebase or merge ( to the latest). Hope update with rebase is better ? I can do which ever the way you like, locally or in this web page interface itself.

Thank you.

@ogrisel

ogrisel commented Sep 15, 2025

Copy link
Copy Markdown
Member

We usually update PRs with a simple merge from main. The PR itself will be squashed and merged at the end of the review.

@ogrisel

ogrisel commented Sep 15, 2025

Copy link
Copy Markdown
Member

Once synced with main, please add the new entries for python 314 and 314t.

@vask2108

Copy link
Copy Markdown
Contributor Author

@ogrisel
Synced with main and added new entries for python 314 and 314t.

Thank you.

@vask2108

Copy link
Copy Markdown
Contributor Author

@ogrisel
Any update when this PR can be approved and merged?
Thank you.

@vask2108

Copy link
Copy Markdown
Contributor Author

@adrinjalali
Thank you for approving PR. Please let me know, if I need to do anything to merge it.

Thank you.

@khmyznikov

Copy link
Copy Markdown

Any plans on this being merged?

@lesteve

lesteve commented Oct 1, 2025

Copy link
Copy Markdown
Member

As far I can tell this is an organized effort to push for Windows ARM64 wheels across the Python ecosystem, see e.g. https://github.com/khmyznikov/PyEnv-WoA-State/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen. This personally makes me cringe a little bit because I feel like people involved in this effort are being way too pushy compared to the importance of this right now. When I asked around, the answer I got is that Windows ARM64 machines were not widely available right now although this may change in the future (a rough timeline would be useful because this is outside my expertise).

It would be very nice if @vask2108 and @khmyznikov would explicly state that they will be available to help when we (and other projects) will encounter weird issues on Windows ARM64, which will likely happen in the future.

I would also personally find it good practice to disclose the funding behind this. Maybe I am wrong, but I am a bit skeptical that this is a volunteer-based grass-root effort.

@khmyznikov

khmyznikov commented Oct 1, 2025 •

Copy link
Copy Markdown

Thanks for bringing this up, @lesteve. Regarding device availability, if you check your local store (not sure which country you're in), you'll see plenty of machines already available. For example, in France, there are lots in stock, and more are coming soon.

As for the organized effort, it's a mix of enthusiastic individuals, corporate contributors, and non-profits. I created the repo to help passionate folks collaborate, avoid duplicated work, and build together. People like @Greenie0701 are volunteering their time, and we also have engineers from Microsoft, Arm, QC and organizations like Linaro involved. So yes, this is a serious effort and it's here to stay.

About the pace; it might seem rushed, but honestly, we’re already behind. Devices are out, but the dev environment isn’t fully ready. We can’t enable libraries one by one, it would take years. Some take months due to release cycles. That’s why we’re pushing across multiple fronts to move the platform forward in a reasonable timeframe.

@ogrisel ogrisel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ogrisel

ogrisel commented Oct 2, 2025

Copy link
Copy Markdown
Member

The macos CI is stuck because of the unrelated #32279.

@ogrisel

ogrisel commented Oct 2, 2025 •

Copy link
Copy Markdown
Member

Windows ARM is projected to reach 20% of the market share of Windows laptops in 2025 (growing from 18% in 2024). Since we already support ARM for Linux and macOS I see no reason not to support it for Windows as there is no significant extra complexity to support Windows ARM in the CI config.

@adrinjalali

Copy link
Copy Markdown
Member

Ok, so let's merge this one and see if it breaks too often, we'll remove it before the next release.

@adrinjalali
adrinjalali merged commit d81258a into scikit-learn:main Oct 2, 2025
@lesteve

lesteve commented Oct 2, 2025 •

Copy link
Copy Markdown
Member

Thanks for the response @khmyznikov, I really appreciate it 🙏!

Would you be kind enough to explicitly state some willingness to help debug weird issues in the future in case they happen (maybe they won't as mentioned by others but you know, it's hard to make predictions especially about the future 😉). Basically it's the well known "PR as a puppy metaphor".

@khmyznikov

Copy link
Copy Markdown

@lesteve As you said, it's hard to make predictions about the future. I can't speak for others, but I see myself continuing to be involved in this in the near future, and I'm doing everything I can to ensure this work remains one of my top priorities in long term.

@lesteve

lesteve commented Oct 3, 2025

Copy link
Copy Markdown
Member

Great to hear that @khmyznikov, thanks 🙏!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants