Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

CI: make sccache resilient to transient cache-backend failures

Đang mở Phù hợp với người mới
#3,273 1 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure, github-actions
Lĩnh vực
build-system, ci-cd

Hướng nghiên cứu

Đọc phần mô tả các biến môi trường của sccache trong Configuration.md được liên kết và kiểm tra các khối môi trường sccache trong .github/workflows/build-wheel.yml và .github/workflows/test-sdist-linux.yml. Thêm các cài đặt được đề xuất vào những vị trí phù hợp, sau đó xác nhận rằng các workflow có thể tiếp tục sau khi khởi động cache gặp lỗi tạm thời và việc sử dụng cache thông thường vẫn hoạt động.

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

Mô tả

CI/CD P1

The sccache daemon currently aborts the build when the remote cache backend returns a transient error at startup. Example from the recent GitHub/Azure outage in build-wheel · PR 3239, step 23 L881:

sccache: error: Server startup failed: cache storage failed to read:
Unexpected (temporary) at read =>
<Error><Code>ServerBusy</Code><Message>Egress is over the account limit.

The compile would have succeeded without the cache; the daemon's pre-flight check is what killed the job. We want sccache to degrade gracefully to a cacheless build in this case.

Proposal — try the env vars suggested by @trxcllnt offline
  • SCCACHE_SKIP_CACHE_CHECK=true — skip the pre-flight .sccache_check read/write that is the actual thing failing here. Documented in mozilla/sccache docs/Configuration.md; parsed in src/config.rs (skip_cache_check_from_env). Per Paul, cache errors after startup already do not fail the build; the pre-flight is the only hard gate.
  • SCCACHE_CACHE_RATE_LIMIT_ON_ERROR_COUNT=5 and SCCACHE_CACHE_RATE_LIMIT_ON_ERROR_WINDOW_SIZE_SECS=5 — temporarily disables cache I/O for 5s after 5 errors in a 5s window. Parsed in the rapidsai fork at src/config/client.rs:730-731 (confirmed present at the v0.18.0-rapids.7 tag that install-sccache pins). Not currently in upstream mozilla/sccache.
Where to apply
  • .github/workflows/build-wheel.yml — the failing path uses the GHA backend; this is where the Azure-blob-storage read fired. Add the env vars alongside the existing SCCACHE_GHA_ENABLED=true / SCCACHE_PREPROCESSOR_CACHE_GHA_ENABLED=true block.
  • .github/workflows/test-sdist-linux.yml — mirror if the behavior is useful for the local-disk sccache path too.

Related: #1061 (original sccache rollout).

-- Leo's bot

Ngôn ngữ chính
Cython
Star
3.4k
Fork
341
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
148

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ề Build System

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.