Skip to content

fix: scope CI pip cache key per Python version - #562

Merged
azfoo merged 1 commit into
devfrom
ci-cache-key-py-version
Aug 4, 2026
Merged

fix: scope CI pip cache key per Python version#562
azfoo merged 1 commit into
devfrom
ci-cache-key-py-version

Conversation

@azfoo

@azfoo azfoo commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

All Linux/macOS/Windows matrix lanes shared one cache key keyed only on runner.os + pyproject.toml hash. GitHub Actions caches are write-once per key, so once a fast lane (3.10-3.12) populated the cache, every other lane got a cache hit and never saved its own wheels. The 3.13 lane never got to persist its from-source numpy build, so it rebuilt numpy from source (~3min) on every single run instead of reusing a cached wheel.

All Linux/macOS/Windows matrix lanes shared one cache key keyed only
on runner.os + pyproject.toml hash. GitHub Actions caches are
write-once per key, so once a fast lane (3.10-3.12) populated the
cache, every other lane got a cache hit and never saved its own
wheels. The 3.13 lane never got to persist its from-source numpy
build, so it rebuilt numpy from source (~3min) on every single run
instead of reusing a cached wheel.
@azfoo
azfoo merged commit 2e7e754 into dev Aug 4, 2026
11 checks passed
@azfoo
azfoo deleted the ci-cache-key-py-version branch August 4, 2026 16:10
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.

1 participant