CI: Use year and week number cache key for -master and -latest - #1110
Merged
rhenium merged 1 commit intoSep 8, 2026
Merged
Conversation
This was referenced Sep 7, 2026
The commit 790ed93 ("CI: enable caching for openssl-master, libressl-master, and aws-lc-latest") assumed that caches expire after a week, but they only expire if not accessed within that period. On an active repository, the cache would be accessed on every CI run and remain permanently stale. https://github.com/actions/cache#cache-limits Include the current year and week number in the cache key for openssl-master, libressl-master, and aws-lc-latest to ensure the cached builds are refreshed weekly. http://man7.org/linux/man-pages/man1/date.1.html > %W week number of year, with Monday as first day of week > (00..53) Assisted-by: Claude:Opus 4.6
junaruga
force-pushed
the
wip/ci-cache-openssl-libressl-master-aws-lc-validity
branch
from
September 7, 2026 17:17
29d656f to
2ef44dd
Compare
Member
|
Thanks! This looks even better. |
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.
This PR is a follow-up for #1109 (790ed93). This PR includes the current year and week number by
date -u '+%Y%W'in the cache key for openssl-master, libressl-master, and aws-lc-latest to ensure the cached builds are refreshed weekly.I tested the openssl-master and aws-lc-latest cases in my fork repository. The log is below.
https://github.com/junaruga/ruby-openssl/actions/runs/34144869607/job/101814592780#step:4:4
https://github.com/junaruga/ruby-openssl/actions/runs/34144869607/job/101814592774#step:4:4
Commit message
The commit 790ed93 ("CI: enable caching for
openssl-master, libressl-master, and aws-lc-latest") assumed that caches expire
after a week, but they only expire if not accessed within that period. On an
active repository, the cache would be accessed on every CI run and remain
permanently stale.
https://github.com/actions/cache#cache-limits
Include the current year and week number in the cache key for openssl-master,
libressl-master, and aws-lc-latest to ensure the cached builds are refreshed
weekly.
http://man7.org/linux/man-pages/man1/date.1.html
Assisted-by: Claude:Opus 4.6