Repository navigation
CI Move debian-32 build from Azure to GHA - #33063
Conversation
55ce087 to
a3cd061
Compare
|
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 |
a3cd061 to
c9345cd
Compare
c9345cd to
2947ad5
Compare
|
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 |
|
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. |
|
|
||
| - 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
I have not tried it on GHA before, but can we run the steps directly in a container with these instructions? https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/run-jobs-in-a-container
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Ah, I see, needing nodejs is kind of a pain. In any case, I'm okay with the PR as is.
There was a problem hiding this comment.
Thanks for your insights @thomasjpfan, super happy to see you pop occasionally on the repo 🙏
|
Quick note: we probably want to merge #33203 first and then adapt this PR. |
lesteve
left a comment
There was a problem hiding this comment.
I think this is good to go.
We can tweak it later if/when we notice possible improvements.

Addresses part of #32434
Ping @lesteve