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

release: candidate cleanup fails with 404 deleting scheduling-candidate versions

Đang mở Phù hợp với người mới
#1,909 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/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ệ
github-actions, python
Lĩnh vực
ci-cd, release

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ả

area:release area:scheduling bug criticality:p3 triage:needs-implementation

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

  1. In the org package settings for scheduling-candidate, confirm the repository registrystack/registry-stack has the Admin role under Actions access. Compare with a candidate package whose cleanup succeeds.
  2. Re-run the workflow in apply mode and confirm it deletes expired scheduling-candidate versions.
  3. 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

  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 registrystack/registry-stack

Tất cả issue của registrystack/registry-stack

Issue tương tự

Thêm issue về Rust

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.