Re-running an old merge's publish can move canary back

Aperta
#134 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start by reading .github/workflows/publish.yml, especially the build and registry jobs, and trace how a canary publish is triggered when failed jobs are rerun. Reproduce the M1/M2 sequence described in the issue and check where the “main has moved past this commit” guard runs. Done when rerunning an older failed registry job cannot move the canary tag back.

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

Descrizione

The guard that refuses to move canary back to an older merge runs only in the build job of publish.yml. "Re-run failed jobs" on an older merge's run re-runs only the failed npmjs job, so the guard does not run again.

How it fails: merge M1's npmjs job fails, merge M2 then publishes its canary, and someone re-runs M1's failed jobs. M1's version is not on npmjs yet, so npm publish --tag canary points canary back at M1.

Repeat the "main has moved past this commit" check inside the registry jobs (or right before npm publish when the tag is canary). Found in the ready-gate review of #132; not introduced by it.

Lingua principale
TypeScript
Stelle
2
Fork
0
Merge medio
1g 1h
PR unite (30g)
36

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 lablup/ui-common

Tutte le issue di lablup/ui-common

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.