Repository navigation
Prebuilds: key ccache on the source tag to stop cache eviction - #35
Conversation
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 85bae215f2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
918e13b to
38777af
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Prebuilt jobs normally finish in about 20-25 minutes with a warm ccache, but can take 2-3 hours after their cache is evicted.
The eviction is caused by workflow reruns. GitHub limits cache storage to 10 GB per repository, and the current timestamped keys make every rerun save a new set of 21 cache entries. A few reruns can fill the repository and evict the large CUDA caches.
Change
This PR makes the source tag part of each cache key and disables timestamp appending. As a result:
This applies to the CUDA, CUDA Windows, CPU, and Vulkan workflows. ROCm and macOS do not use ccache.
Validation
The b10075 workflow was run twice at the same commit with the same 500 MB ccache limit. The first run had to start from an older b10043 cache and then saved the completed b10075 cache. The second run restored that exact b10075 cache.
cuda12-portableAfter the rerun, b10075 still had exactly 21 cache entries totaling about 6.0 GiB. The rerun restored the fast path without adding another cache generation.