Skip to content

Remove pip cache in GitHub Actions#2776

Merged
zcbenz merged 2 commits intoml-explore:mainfrom
zcbenz:ci-pip-cache
Nov 16, 2025
Merged

Remove pip cache in GitHub Actions#2776
zcbenz merged 2 commits intoml-explore:mainfrom
zcbenz:ci-pip-cache

Conversation

@zcbenz
Copy link
Copy Markdown
Collaborator

@zcbenz zcbenz commented Nov 15, 2025

I made some test runs to see how much time pip cache can save.

For normal linux build it saved 10s in build time (when most pip installs happen) but it is probably just noise.

For CUDA build, the build time reduced 40s but the setup time (when cache is uncompressed) increased 1m50s, it is likely because the cache size is too large (4GB). I also saw similar reports in actions/setup-python#330.

So I think we should just remove the pip cache.

@zcbenz zcbenz force-pushed the ci-pip-cache branch 4 times, most recently from 585745a to deefeb9 Compare November 16, 2025 02:16
@zcbenz zcbenz changed the title [WIP] Fix pip cache in GitHub Actions Fix pip cache key in GitHub Actions Nov 16, 2025
@zcbenz zcbenz changed the title Fix pip cache key in GitHub Actions [WIP] Fix pip cache key in GitHub Actions Nov 16, 2025
@zcbenz zcbenz changed the title [WIP] Fix pip cache key in GitHub Actions Remove pip cache in GitHub Actions Nov 16, 2025
Copy link
Copy Markdown
Member

@awni awni left a comment

Choose a reason for hiding this comment

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

LGTM!

@zcbenz zcbenz merged commit b7214ff into ml-explore:main Nov 16, 2025
9 checks passed
@zcbenz zcbenz deleted the ci-pip-cache branch November 16, 2025 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants