Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#1,909 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, python
Ambito
ci-cd, release

Direzione di ricerca

Inizia da release/scripts/cleanup-release-candidates.py (invocato da .github/workflows/release-candidate-cleanup.yml) e trova dove viene controllata la risposta DELETE per versione, così che l'esecuzione si interrompa al primo 404. Leggi la run fallita collegata nell'issue per confermare quale interrompe il ciclo e fai in modo che lo script registri il fallimento e prosegua con i pacchetti rimanenti, uscendo con codice diverso da zero solo dopo averli tentati tutti. Finito significa che il 404 di un pacchetto non blocca più l'eliminazione delle versioni scadute dei pacchetti successivi e che il fallimento viene comunque segnalato; il controllo delle impostazioni del pacchetto allo step 1 richiede accesso admin dell'org, quindi coordina quella parte con un maintainer.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
2
Fork
0
Merge medio
9h 5m
PR unite (30g)
248

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di registrystack/registry-stack

Tutte le issue di registrystack/registry-stack

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.