Investigate mini-CTK cache duplication after HTTP 429 restore failures
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- github-actions
- Área
- ci-cd
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Cython
- Estrellas
- 3.4k
- Forks
- 353
- Merge medio
- 2 d 3 h
- PR fusionados (30 d)
- 163
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NVIDIA/cuda-python
-
[BUG]: the `__cuda_stream__` deprecation warning points to `Stream(obj)`, which always raisesPosiblemente ocupada @Iamsohungrynow la tomó hace 5 días. Abiertobug cuda.core P1
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
NVIDIA/cuda-python#3505 · 3 comentarios · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[BUG]: ProcessInfo.used_gpu_memory returns the NVML_VALUE_NOT_AVAILABLE sentinel as a byte countAbiertotriage
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
NVIDIA/cuda-python#3468 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
NVIDIA/cuda-python#3409 ·
Los mantenedores suelen responder en 1 día
-
[BUG]: cleanup-pr-previews never removes previews of deleted PRsQuizá libre de nuevo @rwgk la tomó hace 48 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
NVIDIA/cuda-python#2952 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[BUG]: LocatedHeaderDir is mutable, so callers can poison the cached header-directory lookupPosiblemente ocupada @rwgk la tomó hace 62 días. Abiertotriage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NVIDIA/cuda-python#2646 · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de NVIDIA/cuda-python
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
kaiachain/kaia#1143 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Remove Home Hub and the old working name from variable names, database names and test fixturesAbiertocleanup
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CivicTechWR/accessible-housing-portal#634 ·
Los mantenedores suelen responder en 1 día
-
ci-cd priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
LearningCircuit/local-deep-research#9163 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
hivecommons/hive#19912 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Menos de una hora Aptitud para principiantes 65/100
daniel-ospina/tortoise#14685 ·
Los mantenedores suelen responder en 1 día