Skip to content

CI Remove conda environment cache in CUDA CI #31900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2025

Conversation

lesteve
Copy link
Member

@lesteve lesteve commented Aug 8, 2025

Installing and creating the environment from scratch takes 1 min 30s:
build log
image

Reusing the cache takes ~2 minutes so it's actually slower:
build log
image

It seems like this pattern is consistent e.g. build log without cache and build log with cache.

I noticed because the cache is quite big ~6.4GB (out of a 10GB quota in principle), see all our caches.
image

So basically if you run the CUDA CI in 2 different PRs you will create 2 cache entries (different branches) and you are above the quota limit. I am not sure how strongly this quota is enforced to be honest but I noticed there was a warning the other day that we were above our limit.

cc @betatim in case you remember some details about using caching for the conda environment in #29130.

Copy link

github-actions bot commented Aug 8, 2025

✔️ Linting Passed

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

Generated for commit: a17b228. Link to the linter CI: here

@betatim
Copy link
Member

betatim commented Aug 11, 2025

Let's remove it.

The conda cache was added speculatively. The assumption was that setting up conda envs is mostly limited by network speed and that the network speed to the cache might be slightly faster than to the conda package server.

Seems like this is not the case and not using the cache makes the CI simpler. So I'd remove it

@ogrisel ogrisel merged commit 7a26152 into scikit-learn:main Aug 11, 2025
45 checks passed
@lesteve lesteve deleted the remove-cuda-conda-env-cache branch August 11, 2025 14:09
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