-
-
Notifications
You must be signed in to change notification settings - Fork 32k
CI: Include Python version in cache.config key #111410
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for figuring it out and fixing!
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
* Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers (cherry picked from commit 9d4a1a4) Co-authored-by: Hugo van Kemenade <[email protected]>
GH-111421 is a backport of this pull request to the 3.12 branch. |
* Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers (cherry picked from commit 9d4a1a4) Co-authored-by: Hugo van Kemenade <[email protected]>
GH-111422 is a backport of this pull request to the 3.11 branch. |
…11422) CI: Include Python version in cache.config key (GH-111410) * Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers (cherry picked from commit 9d4a1a4) Co-authored-by: Hugo van Kemenade <[email protected]>
…11421) CI: Include Python version in cache.config key (GH-111410) * Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers (cherry picked from commit 9d4a1a4) Co-authored-by: Hugo van Kemenade <[email protected]>
* Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @hugovk, I could not cleanly backport this to
|
Sorry, @hugovk, I could not cleanly backport this to
|
This was already backported 🙃 |
* Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers
* Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers
Yesterday, the
actions/setup-python
updated the Python version3.x
from 3.11 to 3.12 which caused build failures in the "Configure CPython" step of thecheck_generated_files
job:https://github.com/python/cpython/actions/runs/6658472864/job/18096250159
Deleting the
check_generated_files-Linux-52d68ba849d6fda1735c7031561b5102961493401ad71cfb10f4fcbca7a3c9d4
file from https://github.com/python/cpython/actions/caches and restarting the job, fixed it (the filename was shown in the "Restore config.cache" step.The root problem is the Python version isn't part of the cache file's key.
We need to include it, so when the version changes, there'll be a new key, and so the old cache file won't be used anymore (and eventually deleted), and a new one will be generated.
So let's add
${{ env.pythonLocation }}
to the key used byactions/cache
.