Repository navigation
Closed
Labels
Description
This is an issue to better track the ongoing work and what remains to be done
- initial PR to have an GHA template where builds can be moved one by one CI First step towards moving Azure CI to GHA #31832
- ccache cache setup CI add ccache for GitHub Actions #31895
- codecov upload CI add codecov to GitHub Action workflow #31941
- changes of behaviour based on commit markers e.g.
[float32],[all random seeds]. I had a look and my thinking so far would be to refrain from using CI-provider specific environment variable in bash scripts (e.g. Azure-specificBUILD_REASONis currently used inbuild_tools/test_script.shor inbuild_tools/azure/get_commit_message.pybut I would avoid doing a similar thing for GHA). Instead we should have a step in the yaml that sets environment variable (or job output if we think it's better to use job output), which the bash script can then use.-
[float32]seems the easiest thing to start with CI SetCOMMIT_MESSAGEto allow commit markers detection inunit-tests.yml#32501 -
[all random seeds]is next CI Handle[all random seeds]commit marker in GHA #32505 - our wheels CI has an example of commit marker on GHA for
[cd build]
-
- run tests on schedule event and set
SKLEARN_TESTS_GLOBAL_RANDOM_SEEDrandomly in the yaml (to keep the idea of not havingtest_script.shCI-provider specific) CI Run unit-tests with random seed on schedule and open automated issue #32797 - automatic issue opening in case of failures (IIRC that happens only for the scheduled/cron run) CI Run unit-tests with random seed on schedule and open automated issue #32797
- an aggegating job to have required checks based on this single aggregating job see CI First step towards moving Azure CI to GHA #31832 (comment)
- have the equivalent of "Test Docs" (run doctest in
.pyand.rstfiles) CI Add doc tests to github actions #32730 - have the equivalent of "Test Soft Dependency" (test soft dependency on pytest) CI Add pytest soft dependency test to github actions #32738
- other things that I did not anticipate
- once the bulk of the setup is done, we can move each build one by one in separate PRs
- once we have moved all the builds, we can do some cleanup like moving things from
build_tools/azuretobuild_tools/github, removebuild_tools/build_tools/azure/get_commit_message.py(maybe?), etc ...
Additional comments:
- to keep the CI configuration simpler, the consensus for now is that all CI builds run in parallel (i.e. the same thing that happens with
[azure parallel]marker). We can revisit this later if there is a need for it. - for now we won't try to have the equivalent of the Azure
PublishTestResults@2i.e. see the failing tests in a "convenient" way in the web UI. We can look at it afterwards if the need arises. IIRC there is some third-party GitHub action but not enough scikit-learn developers care about this to justify the need right now.
Reacted by Jérémie du Boisberranger, Virgil Chan, Stefanie Senger, Lucy Liu and Christian Lorentzen
Activity
MAINT Port windows test job from Azure to GHA
CI Port linux-docker test job from Azure to GHA
CI Port linux-docker test job from Azure to GHA
CI Port MacOS pylatest_conda_forge_mkl_no_openmp test job from Azure …
CI Port MacOS pylatest_conda_forge_mkl_no_openmp test job from Azure …
CI Port MacOS pylatest_conda_forge_mkl_no_openmp test job from Azure …
augustebaum commentedon Jan 13, 2026
@lesteve suggested to add the CPU architecture to the test names (e.g.
Linux {x86-64,arm64} <test_name>)CI Port linux-docker test job from Azure to GHA
CI Port linux-docker test job from Azure to GHA
lesteve commentedon Feb 6, 2026
#33063 has been merged so all builds have moved off Azure and we can start the clean-up process:
lesteve commentedon Feb 18, 2026
The next step is clean-up I think, here is the thing that come to mind:
build_tools/azurefolder tobuild_tools/githubfolderbuild_tools/build_tools/azure/get_commit_message.pymaybe?BUILD_variablesbuild_tools/azure/posix.ymlthat apparently was left over ...git grep -i azureadrinjalali commentedon Mar 2, 2026
@lesteve is going to create a separate issue for future needed improvements, this is mostly done following the clean-up in #33403 🥳
lesteve commentedon Mar 2, 2026
I opened #33438 about the possibility to add an aggregating job as unit test summary that would be used in the required checks to make them easier to manage.