CI: make sccache resilient to transient cache-backend failures
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ả
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_checkread/write that is the actual thing failing here. Documented in mozilla/sccachedocs/Configuration.md; parsed insrc/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=5andSCCACHE_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 atsrc/config/client.rs:730-731(confirmed present at thev0.18.0-rapids.7tag thatinstall-sccachepins). Not currently in upstreammozilla/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 existingSCCACHE_GHA_ENABLED=true/SCCACHE_PREPROCESSOR_CACHE_GHA_ENABLED=trueblock..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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/cuda-python
-
[BUG]: multi-GPU cuda.core samples take the CUDA device count from NVML and break under CUDA_VISIBLE_DEVICESCó thể đã có người làm @Andy-Jost đã nhận 1 ngày trước. Đang mởbug cuda.core P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/cuda-python#3215 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: cuda.bindings GL interop tests open EGL device 0 on headless multi-GPU hosts and fail with cudaErrorInvalidDeviceCó thể đã có người làm @0z5a đã nhận hôm nay. Đang mởtriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/cuda-python#3212 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lychee should specify which links are failingCó thể đã có người làm @kkonnerharris đã nhận 1 ngày trước. Đang mởtriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
NVIDIA/cuda-python#3204 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: cleanup-pr-previews never removes previews of deleted PRsCó thể đã có người làm @rwgk đã nhận 21 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
NVIDIA/cuda-python#2952 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[DOC]: cuda.core 1.1.1 note misstates program cache permissionsCó thể đã có người làm @leofang đã nhận 35 ngày trước. Đang mởdocumentation P1
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
NVIDIA/cuda-python#2717 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NVIDIA/cuda-python
Issue tương tự
-
0.kind: enhancement 6.topic: reproducible builds
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
NixOS/nixpkgs#580765 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
objectionary/hone-maven-plugin#1350 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
ClassNotFoundException: io.netty.channel.kqueue.KQueueEventLoop stack trace printed during native build on main (Netty 4.2 removed the class)Có thể đã có người làm @gastaldi đã nhận hôm nay. Đang mởarea/netty kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
quarkusio/quarkus#57939 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
immich-app/immich#32814 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
jupyterlab/jupyter-builder#203 ·