-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Fix cache restoration for Hypothesis CI job #121756
Fix cache restoration for Hypothesis CI job #121756
Conversation
Previously, the CI workflow job running Hypothesis was mistakenly set up to use a cache restoration key prefixed with a leading hyphen [[1]]. This was done in an attempt to figure out the right format for the `actions/cache` input argument called `restore-keys` as the official examples tend to be confusing [[2]]. This results no cache being found for the Hypothesis database on lookup [[3]] and the logs contain the following: Cache not found for input keys: hypothesis-database-9927179210, - hypothesis-database- The patch corrects that by dropping the unintended characters from the catch-all cache key. [1]: python@ccbb010#r1677102123 [2]: actions/cache#1173 [3]: https://github.com/python/cpython/actions/runs/9927179210/job/27421821417#step:21:24
Here's the proof from this PR's CI run that cache restoration works now, with the patch applied: Cache Size: ~0 MB (22203 B)
/usr/bin/tar -xf /home/runner/work/_temp/49dc92bc-12d7-4daa-afbd-fb3faf161361/cache.tzst -P -C /home/runner/work/cpython/cpython --use-compress-program unzstd
Cache restored successfully
Cache restored from key: hypothesis-database-9927179210 (https://github.com/python/cpython/actions/runs/9927318541/job/27422127017?pr=121756#step:21:27) |
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.
Thank you!
(cherry picked from commit 6505bda) Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
GH-121759 is a backport of this pull request to the 3.13 branch. |
(cherry picked from commit 6505bda) Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
GH-121760 is a backport of this pull request to the 3.12 branch. |
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
Previously, the CI workflow job running Hypothesis was mistakenly set up to use a cache restoration key prefixed with a leading hyphen [1]. This was done in an attempt to figure out the right format for the
actions/cache
input argument calledrestore-keys
as the official examples tend to be confusing [2].This results no cache being found for the Hypothesis database on lookup [3] and the logs contain the following:
The patch corrects that by dropping the unintended characters from the catch-all cache key.