Skip to content

CI Clean-up after Azure -> GHA move - #33403

Merged
lesteve merged 9 commits into
scikit-learn:mainfrom
lesteve:cleanup-azure
Mar 2, 2026
Merged

lesteve merged 9 commits into
scikit-learn:mainfrom
lesteve:cleanup-azure

Conversation

@lesteve

@lesteve lesteve commented Feb 25, 2026 •

Copy link
Copy Markdown
Member

Clean-up mentioned in #32434 (comment)

I double-checked that there was no Azure related thing via the git grep below. The remaining files that mentions Azure:

  • pip-compile _lock.txt lock-files that mentions the previous build_tools/azure in a comment. I will let the automatic update-lock file handle this next Monday.
  • some Azure related packages in conda lock-files like azure-storage-common, I think this happens in environments that have pyarrow
❯ git grep -i azure 
build_tools/github/debian_32bit_lock.txt:#    pip-compile --output-file=build_tools/azure/debian_32bit_lock.txt build_tools/azure/debian_32bit_requirements.txt
build_tools/github/debian_32bit_lock.txt:    # via -r build_tools/azure/debian_32bit_requirements.txt
build_tools/github/debian_32bit_lock.txt:    # via -r build_tools/azure/debian_32bit_requirements.txt
build_tools/github/debian_32bit_lock.txt:    # via -r build_tools/azure/debian_32bit_requirements.txt
build_tools/github/debian_32bit_lock.txt:    # via -r build_tools/azure/debian_32bit_requirements.txt
build_tools/github/debian_32bit_lock.txt:    #   -r build_tools/azure/debian_32bit_requirements.txt
build_tools/github/debian_32bit_lock.txt:    # via -r build_tools/azure/debian_32bit_requirements.txt
build_tools/github/debian_32bit_lock.txt:    # via -r build_tools/azure/debian_32bit_requirements.txt
build_tools/github/debian_32bit_lock.txt:    # via -r build_tools/azure/debian_32bit_requirements.txt
build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/azure-core-cpp-1.16.2-h206d751_0.conda#5492abf806c45298ae642831c670bba0
build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/azure-identity-cpp-1.13.3-hed0cdb0_1.conda#68bfb556bdf56d56e9f38da696e752ca
build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/azure-storage-common-cpp-12.12.0-ha7a2c86_1.conda#6400f73fe5ebe19fe7aca3616f1f1de7
build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/azure-storage-blobs-cpp-12.16.0-hdd73cc9_1.conda#939d9ce324e51961c7c4c0046733dbb7
build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/azure-storage-files-datalake-cpp-12.14.0-h52c5a47_1.conda#6d10339800840562b7dad7775f5d2c16
build_tools/github/pylatest_conda_forge_mkl_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/azure-core-cpp-1.16.2-h206d751_0.conda#5492abf806c45298ae642831c670bba0
build_tools/github/pylatest_conda_forge_mkl_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/azure-identity-cpp-1.13.3-hed0cdb0_1.conda#68bfb556bdf56d56e9f38da696e752ca
build_tools/github/pylatest_conda_forge_mkl_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/azure-storage-common-cpp-12.12.0-ha7a2c86_1.conda#6400f73fe5ebe19fe7aca3616f1f1de7
build_tools/github/pylatest_conda_forge_mkl_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/azure-storage-blobs-cpp-12.16.0-hdd73cc9_1.conda#939d9ce324e51961c7c4c0046733dbb7
build_tools/github/pylatest_conda_forge_mkl_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/azure-storage-files-datalake-cpp-12.14.0-h52c5a47_1.conda#6d10339800840562b7dad7775f5d2c16
build_tools/github/ubuntu_atlas_lock.txt:#    pip-compile --output-file=build_tools/azure/ubuntu_atlas_lock.txt build_tools/azure/ubuntu_atlas_requirements.txt
build_tools/github/ubuntu_atlas_lock.txt:    # via -r build_tools/azure/ubuntu_atlas_requirements.txt
build_tools/github/ubuntu_atlas_lock.txt:    # via -r build_tools/azure/ubuntu_atlas_requirements.txt
build_tools/github/ubuntu_atlas_lock.txt:    # via -r build_tools/azure/ubuntu_atlas_requirements.txt
build_tools/github/ubuntu_atlas_lock.txt:    # via -r build_tools/azure/ubuntu_atlas_requirements.txt
build_tools/github/ubuntu_atlas_lock.txt:    #   -r build_tools/azure/ubuntu_atlas_requirements.txt
build_tools/github/ubuntu_atlas_lock.txt:    # via -r build_tools/azure/ubuntu_atlas_requirements.txt
build_tools/github/ubuntu_atlas_lock.txt:    # via -r build_tools/azure/ubuntu_atlas_requirements.txt

@github-actions github-actions Bot added Build / CI CI:Linter failure The linter CI is failing on this PR and removed CI:Linter failure The linter CI is failing on this PR labels Feb 25, 2026
@lesteve
lesteve marked this pull request as ready for review February 25, 2026 10:53

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

Thank you @lesteve!
I have one clarification question, otherwise LGTM!

@AnneBeyer AnneBeyer 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 should have added the question to the review... So here it is now.

# Enable global random seed randomization to discover seed-sensitive tests
# only on nightly builds.
# https://scikit-learn.org/stable/computing/parallelism.html#environment-variables
export SKLEARN_TESTS_GLOBAL_RANDOM_SEED=$(($RANDOM % 20))

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 haven't checked if this used to be an azure-related context only, just double checking if the random seed part is removed on purpose here as well?

@lesteve lesteve Feb 25, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The random seed generation on schedule runs is done in the yaml for Github Actions see

- 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 % 20))" >> $GITHUB_ENV
shell: bash

Having said this, it's worth adding a similar echo statement as there was on Azure, let me do this in this PR.

I also realized that in Azure we set SKLEARN_RUN_FLOAT32_TESTS=1 in scheduled runs and I don't think this was carried over to GHA ... I will do it as well in this PR while I am at it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I tested the schedule/manual workflow in my fork and it seems to work just fine see build log.

Everything works (step setting the random global random seed + step setting the float32 env variable + tests). CI is red because the last step that updates the tracking issue doesn't have the secrets correctly configured on my fork but it will work fine on the main repo.

@lorentzenchr

Copy link
Copy Markdown
Member

@lesteve you can merge when you think its ready.

@lesteve
lesteve merged commit c492f2f into scikit-learn:main Mar 2, 2026
32 checks passed
@lesteve
lesteve deleted the cleanup-azure branch March 2, 2026 13:43
@lesteve lesteve mentioned this pull request Mar 2, 2026
11 of 14 tasks
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.

5 participants