Investigate mini-CTK cache duplication after HTTP 429 restore failures
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions
- 領域
- ci-cd
研究方向
Read .github/actions/fetch_ctk/action.yml, starting with the restore step at lines 54–59 and save condition at lines 137–143; compare their behavior with the cited failed and successful job logs. Investigate bounded retries and how to distinguish a failed lookup from a genuinely absent key. Done means a validated approach reduces duplicate saves while preserving caching for new toolkit configurations and reliable downloads when the cache service is unavailable; wait for maintainer agreement before implementation.
由索引模型根據 Issue 內容生成。
描述
Maintainer investigation; not yet open for external implementation PRs. The approach touches shared CI infrastructure and is still being decided. Reproducers, measurements, and suggestions are very welcome here; please check with a maintainer before starting on an implementation.
Summary
Transient GitHub Actions cache restore failures can lead to redundant mini-CTK archives on PR branches, consuming capacity that could otherwise retain useful compiler caches.
This issue follows up on #3071. We are not pursuing its default-branch-only save proposal because PRs introducing new toolkit configurations benefit from caching between iterations. The focus here is understanding and preventing unnecessary copies while preserving that behavior.
Observed behavior
Two examined jobs show the same sequence:
- A CUDA 12.9.1 cache restore receives HTTP 429: Too Many Requests.
- The action warns that restoration failed, then reports Cache not found.
- The workflow downloads the toolkit and saves another PR-scoped copy using the same cache key.
Examples:
- PR #3035: job 112907497057. The warning says the rate limit resets in eight seconds.
- PR #3046: job 113043762946. The warning says the rate limit resets in six seconds. A sibling job restores the same key successfully before the failing job saves its copy.
The matching shared cache was already present on main. GitHub's cache lookup includes default-branch fallback; these observations point to transient restore failures rather than a missing fallback configuration.
Log timestamps and affected key
All timestamps below are UTC on 2026-10-07.
| Job | HTTP 429 / reported miss | Save of the same key |
|---|---|---|
| #3035, 112907497057 | 16:03:52 | 16:05:10 |
| #3046, 113043762946 | 22:16:54 | 22:18:05 |
The sibling job in #3046 restores the key at 22:17:21.
Affected key:
mini-ctk-12.9.1-linux-64-d12979cd4e49e7936d5e589fcded5123fe7abaeef89cb5c8e3fd4b88c8cb021d
The current restore step and save condition are relevant starting points.
Impact and caveats
The October 9 inventory documented in #3071 identified 23 PR-scoped entries totaling 10.91 GiB that matched a main entry's key and cache version. This establishes potentially redundant storage, but does not establish why every copy was created. Only the two jobs above have been traced to HTTP 429 failures.
The earlier 11-13 GiB estimate assumed broadly removing PR-scoped saves. It is not a supported savings forecast for this investigation. Preventing new duplicates would also not remove existing entries automatically.
Investigation questions
- Can transient restore failures be retried with bounded backoff, taking account of the service's reset information?
- How can we distinguish a genuinely absent key from a failed lookup before deciding to save another copy?
- How can we validate reduced duplication while preserving useful PR caching for new toolkit configurations and reliable toolkit downloads when the cache service is unavailable?
Removing mini-CTK's extra compression layer remains a separate optimization; it is outside this investigation.
- 主要語言
- Cython
- 星號
- 3.4k
- 分支
- 353
- 平均合併
- 2 天 3 小時
- 30 天內合併 PR
- 163
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NVIDIA/cuda-python 的其他 Issue
-
[BUG]: the `__cuda_stream__` deprecation warning points to `Stream(obj)`, which always raises可能已有人在做 @Iamsohungrynow 於 5 天前認領。 未關閉bug cuda.core P1
難度 1/5 1 小時以內 新手友好度 86/100
NVIDIA/cuda-python#3505 · 3 則留言 · 1 個 reaction · 已指派 1 人 ·
維護者通常 1 天內回覆
-
[BUG]: ProcessInfo.used_gpu_memory returns the NVML_VALUE_NOT_AVAILABLE sentinel as a byte count未關閉triage
難度 2/5 1-3 小時 新手友好度 80/100
NVIDIA/cuda-python#3468 · 3 則留言 ·
維護者通常 1 天內回覆
-
triage
難度 2/5 1-3 小時 新手友好度 68/100
NVIDIA/cuda-python#3409 ·
維護者通常 1 天內回覆
-
[BUG]: cleanup-pr-previews never removes previews of deleted PRs可能重新可做 @rwgk 於 48 天前認領,目前沒有進行中的 PR。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
NVIDIA/cuda-python#2952 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
[BUG]: LocatedHeaderDir is mutable, so callers can poison the cached header-directory lookup可能已有人在做 @rwgk 於 63 天前認領。 未關閉triage
難度 2/5 1-3 小時 新手友好度 82/100
NVIDIA/cuda-python#2646 · 1 個 reaction ·
維護者通常 1 天內回覆
查看 NVIDIA/cuda-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
test(kubernetes-nodes): stop hand-typing the default Talos version in tests that are not about it未關閉area/testing kind/cleanup triage/needs-triage
難度 2/5 1-3 小時 新手友好度 74/100
cozystack/cozystack#5456 · 1 個 reaction ·
維護者通常 3 天內回覆
-
aikido high security
難度 1/5 1 小時以內 新手友好度 66/100
dequelabs/axe-core-nuget#312 ·
-
area/build-framework kind/enhancement
難度 2/5 1-3 小時 新手友好度 78/100
yugabyte/yugabyte-db#39342 ·
維護者通常 1 天內回覆
-
cleanup
難度 2/5 1-3 小時 新手友好度 78/100
CivicTechWR/accessible-housing-portal#634 ·
維護者通常 1 天內回覆