Skip to content

CI Move debian-32 build from Azure to GHA - #33063

Merged
lesteve merged 23 commits into
scikit-learn:mainfrom
augustebaum:push-wqomplxxvrvv
Feb 6, 2026
Merged

lesteve merged 23 commits into
scikit-learn:mainfrom
augustebaum:push-wqomplxxvrvv

Conversation

@augustebaum

Copy link
Copy Markdown
Contributor

Addresses part of #32434

Ping @lesteve

@lesteve

lesteve commented Jan 13, 2026 •

Copy link
Copy Markdown
Member

I think this one is trickier in theory. I would leave it to tackle later in the GHA migration 😉.

Basically there is a GHA syntax to use to run inside a docker container. Only setting the DOCKER_CONTAINER environment variable is not enough. This works for Azure because we have a custom script. We probably don't want to use a custom script in GHA unless we really really really have to.

@augustebaum

Copy link
Copy Markdown
Contributor Author

We're struggling to properly implement this job in GHA because we need to run the tests in a Docker container, which duplicates logic already in unit-tests.yml. At the same time, the job in question tests sklearn in a 32-bit machine, and perhaps our difficulties are a starting point to discuss whether such machines should be supported by sklearn. cc @lesteve

@lesteve

lesteve commented Feb 3, 2026 •

Copy link
Copy Markdown
Member

The tests pass after a few tweaks, it would be nice to have a final pass at this to see if we could simplify a few things.

There is some duplication between the docker debian-32 steps and the "normal" CI build steps but I guess this is acceptable. The duplication was already present in the Azure templates and I don't remember causing any significant maintenance burden in practice.

Comment thread .github/workflows/unit-tests.yml Outdated

- name: Set random seed for nightly/manual runs
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: echo "SKLEARN_TESTS_GLOBAL_RANDOM_SEED=$((RANDOM % 100))" >> $GITHUB_ENV

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.

This won't work since it sets the env variable in the host rather than the docker container.

DISTRIB: debian-32
LOCK_FILE: build_tools/azure/debian_32bit_lock.txt
SKLEARN_TESTS_GLOBAL_RANDOM_SEED: 4 # non-default seed
DOCKER_CONTAINER: i386/debian:trixie

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.

@lesteve lesteve Feb 5, 2026 •

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.

We kind of did a half-hearted attempt in this direction. The first issue is you don't have nodejs in the container. You could apt-get install nodejs but you would have an old nodejs so actions/checkout@v6 does not work, IIRC looking at the version actions/checkout@v4 might work.

Basically I was like, OK this seems more painful that I would have liked, let's do the same setup as Azure and revisit later.

More than happy to have someone else try a bit harder along the GHA docker support to see whether it's worth doing or not but honestly I would merge this PR first and do it in a follow-up PR.

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.

Ah, I see, needing nodejs is kind of a pain. In any case, I'm okay with the PR as is.

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 your insights @thomasjpfan, super happy to see you pop occasionally on the repo 🙏

@lesteve

lesteve commented Feb 5, 2026

Copy link
Copy Markdown
Member

Quick note: we probably want to merge #33203 first and then adapt this PR.

@lesteve lesteve changed the title CI Port linux-docker test job from Azure to GHA CI Move debian32 build from Azure to GHA Feb 6, 2026
@lesteve lesteve changed the title CI Move debian32 build from Azure to GHA CI Move debian-32 build from Azure to GHA Feb 6, 2026
@lesteve

lesteve commented Feb 6, 2026 •

Copy link
Copy Markdown
Member

Note to our future selves, since there is no Azure jobs any more we will need to remove the Azure required check before being able to merge this PR.

image

@lesteve lesteve 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.

I think this is good to go.

We can tweak it later if/when we notice possible improvements.

@lesteve
lesteve merged commit f22110e into scikit-learn:main Feb 6, 2026
32 checks passed
@lesteve lesteve mentioned this pull request Feb 6, 2026
11 of 14 tasks
@augustebaum
augustebaum deleted the push-wqomplxxvrvv branch February 6, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants