release: candidate cleanup fails with 404 deleting scheduling-candidate versions
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
- 68/100
Hướng nghiên cứu
Bắt đầu với release/scripts/cleanup-release-candidates.py (được gọi từ .github/workflows/release-candidate-cleanup.yml) và tìm chỗ phản hồi DELETE theo từng phiên bản được kiểm tra để lần chạy dừng ngay ở 404 đầu tiên. Đọc lần chạy thất bại được liên kết trong issue để xác nhận gói nào làm dừng vòng lặp, rồi sửa script để ghi lại lỗi và tiếp tục với các gói còn lại, chỉ thoát với mã khác không sau khi đã thử tất cả. Xong nghĩa là 404 của một gói không còn chặn việc xóa các phiên bản hết hạn của các gói sau, và lỗi vẫn được báo cáo; phần kiểm tra package-settings ở bước 1 cần quyền org admin, nên hãy phối hợp phần đó với một maintainer.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What fails
Release candidate cleanup (.github/workflows/release-candidate-cleanup.yml) has failed every day since 2026-10-01; it was green through 2026-09-30. The step "Delete candidate versions older than eight days" (release/scripts/cleanup-release-candidates.py --apply) stops on the Scheduling candidate image:
release candidate cleanup failed: GitHub API DELETE https://api.github.com/orgs/registrystack/packages/container/scheduling-candidate/versions/1302456199 failed with 404: {"message":"Package not found." ...}
Example run: https://github.com/registrystack/registry-stack/actions/runs/37455706477
Likely cause (not yet confirmed)
The job deletes with the workflow GITHUB_TOKEN (packages: write). For an org container package, GitHub answers 404 rather than 403 when the token cannot manage it. The most likely explanation is that scheduling-candidate does not grant this repository's Actions admin access in its package settings ("Manage Actions access"), unlike the older candidate packages. A renamed or deleted package would give the same response, and so would a version listed through another endpoint. The package settings have not been checked yet.
To check and fix
- In the org package settings for
scheduling-candidate, confirm the repositoryregistrystack/registry-stackhas the Admin role under Actions access. Compare with a candidate package whose cleanup succeeds. - Re-run the workflow in apply mode and confirm it deletes expired
scheduling-candidateversions. - Decide whether one package's refusal should stop cleanup of all the others. Today the first failure ends the run, so expired versions of later packages are not deleted either.
Impact
Expired candidate images are not deleted. At minimum this affects scheduling-candidate, and possibly every package after it in the cleanup order.
- Ngôn ngữ chính
- Rust
- Star
- 2
- Fork
- 0
- Merge trung bình
- 9 giờ 14 phút
- Pull request đã merge (30 ngày)
- 241
Chuẩn bị môi trường
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 registrystack/registry-stack
-
agent-ready area:breg bug criticality:p3 triage:needs-implementation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
registrystack/registry-stack#1941 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:casework bug criticality:p2 rust
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
registrystack/registry-stack#1936 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:casework bug criticality:p3 rust
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
registrystack/registry-stack#1934 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:release bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
registrystack/registry-stack#1874 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:breg bug criticality:p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
registrystack/registry-stack#1851 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của registrystack/registry-stack
Issue tương tự
-
[Feature]: [P3] engine-rs: the package source hash should ignore line endings and untracked filesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
maniator/verticopolis#880 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 3 ngày
-
defect
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
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 74/100
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 82/100
Maintainer thường phản hồi trong vòng 2 ngày