Investigate mini-CTK cache duplication after HTTP 429 restore failures

Đang mở
#3,074 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions
Lĩnh vực
ci-cd

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

CI/CD

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:

  1. A CUDA 12.9.1 cache restore receives HTTP 429: Too Many Requests.
  2. The action warns that restoration failed, then reports Cache not found.
  3. The workflow downloads the toolkit and saves another PR-scoped copy using the same cache key.

Examples:

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.

Ngôn ngữ chính
Cython
Star
3.4k
Fork
353
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
163

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/cuda-python

Tất cả issue của NVIDIA/cuda-python

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.