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

CI: a superseded dispatched run's pending status can overwrite the newer run's result (typescript.yml, python.yml)

Aperta Adatta ai principianti
#5,223 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
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, typescript
Ambito
ci-cd

Direzione di ricerca

Inizia confrontando dispatch-status-pending in typescript.yml e python.yml con il controllo di un’esecuzione più recente in dispatch-status, poi individua lo script pending eseguito da quei job. Aggiungi lo stesso controllo al percorso pending ed esegui lo script pending con un gh simulato, come descritto nell’issue. Il lavoro è terminato quando non viene pubblicato alcuno stato pending se esiste un’esecuzione più recente avviata tramite dispatch e il test copre questo caso.

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

Descrizione

chore v2

In typescript.yml and python.yml, the dispatch-status-pending job posts its (dispatched) status as pending without first checking for a newer dispatched run on the same commit. The dispatch-status result job does check (#5178), and it posts nothing when a newer run exists.

How it happens

  1. Run A is dispatched on commit X, and then run B.
  2. B finishes and posts success (or failure).
  3. A's pending job runs after that and posts pending. Two ways this can happen:
    • A is re-run after B finished. A re-run keeps its run ID, so it is still the older run.
    • A's pending job starts late, which the ordering allows when the two runs are not in one concurrency group.
  4. A's result job finds B, the newer run, and exits without posting.

The status stays pending until someone dispatches the workflow again.

Expected

The pending job runs the same newer-run check as the result job and posts nothing when it finds one. A test runs the pending script against a stub gh to pin this.

Found by Copilot on #5222. That PR fixes the two reporters it adds (dco.yml, everything-mcp-diff.yml). This issue covers the two existing ones, which that PR leaves alone.

Lingua principale
TypeScript
Stelle
91.4k
Fork
11.8k
Merge medio
6h 39m
PR unite (30g)
146

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 modelcontextprotocol/servers

Tutte le issue di modelcontextprotocol/servers

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.