Seed pip caches for docs on main/3.x branches#153127
Merged
Merged
Conversation
itamaro
approved these changes
Jul 5, 2026
zware
approved these changes
Jul 5, 2026
|
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
GH-153231 is a backport of this pull request to the 3.15 branch. |
|
GH-153232 is a backport of this pull request to the 3.14 branch. |
|
GH-153233 is a backport of this pull request to the 3.13 branch. |
Member
Author
|
This is working well. Just after this was merged, there were 53 caches with 12 hours later, there's 29: the three https://github.com/python/cpython/actions/caches?query=key%3Asetup |
hugovk
added a commit
that referenced
this pull request
Jul 7, 2026
…153231) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
hugovk
added a commit
that referenced
this pull request
Jul 7, 2026
…153232) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
hugovk
added a commit
that referenced
this pull request
Jul 7, 2026
…153233) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Our GitHub Actions cache is always full:
https://github.com/python/cpython/actions/caches
Right now, PR caches use up 3.54 GB across 52 PRs:
They tend to get evicted after about a day due to the storage limit, and don't last the full 7-day limit.
But why are there so many caches for PRs?
Nearly all of this is pip caches from docs builds, and they're virtually identical.
There's also about Hypothesis cache of about 6 MB for the
mainbranch. For Hypothesis, PRs usually use themaincache and don't need to write their own cache.However, the docs workflow only runs for PRs, so
main/3.*branches never get to save a cache. If they had, the vast majority would just use a cache frommainand carry on. No need to save their own PR cache.We can do this by letting this workflow run on
mainand3.*, and also limit to only run if one of these files change:Doc/pylock.tomlDoc/requirements.txt.github/workflows/reusable-docs.yml