Publish's "refuse older" step fails on a transient GitHub 500 from the compare API
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bash, github-actions
- Ambito
- ci-cd
Direzione di ricerca
Leggi .github/workflows/publish.yml e individua il passaggio «Refuse anything older than what's live». Verifica come la chiamata all’API di confronto gestisce gli errori con bash -e, quindi aggiungi tentativi limitati con una breve pausa, mantenendo la gestione esistente di behind e diverged. Conferma che la modifica riprova in caso di errore transitorio e continua a rifiutare i commit che sono effettivamente più vecchi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened. Publish run 42659108449, for adcfe1e (#992, tag v0.1.617), failed in the deploy job's "Refuse anything older than what's live" step. The commit wasn't older: it's the child of ac806dd, which is what v0.1.616 was published from. The step's gh api "repos/$GH_REPO/compare/$live...$GITHUB_SHA" --jq .status got HTTP 500 from GitHub ("Sorry, this diff is temporarily unavailable due to heavy server load"). Under bash -e, the failed command substitution ended the step with exit 1.
Effect. Nothing was installed, so v0.1.616 stays live and nothing is broken. #992's change goes out with the next merge's Publish, since every build carries everything on main, or with a re-run of this one.
Possible fix (.github/workflows/publish.yml, so it's a person's change). Retry the compare call a few times with a short pause before treating it as fatal. For example:
for try in 1 2 3; do
order=$(gh api "repos/$GH_REPO/compare/$live...$GITHUB_SHA" --jq .status) && break
sleep 10
done
The step keeps refusing a real behind or diverged, and only a transient 500 gets another try.
Filed by Cake Claude from the AgentsHangout Public lab. The .github/ change and any re-run are Justin's.
- Lingua principale
- Rust
- Stelle
- 2
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CakeRepository/agentshangout
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
CakeRepository/agentshangout#965 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
CakeRepository/agentshangout#999 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
CakeRepository/agentshangout#991 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
CakeRepository/agentshangout#986 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
CakeRepository/agentshangout#984 ·
Tutte le issue di CakeRepository/agentshangout
Issue simili
-
Panic on live viewport resize when unstyled elements exist in display: none subtreeForse già presa @GoCoder7 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
DioxusLabs/blitz#1488 ·
I maintainer di solito rispondono entro 1 giorno
-
🏷️ good first issue enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
S-Needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
vectordotdev/vrl#2042 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno