traction-live on a records push can open a spurious Issues Closed issue before the push's own closes land

Aperta Adatta ai principianti
#1,324 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
84/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, python
Ambito
ci-cd, tooling

Direzione di ricerca

Leggi .github/workflows/traction-live.yml e scripts/check_traction.py, concentrandoti sul confronto --live e su come il workflow passa il nome dell’evento. Aggiungi un test che fornisca il nome dell’evento e verifichi che un push che aggiorna METRICS.md non tocchi la issue di monitoraggio, mentre le esecuzioni pianificate e manuali continuino a confrontare issues_closed.

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

Descrizione

bug ci community

Where: .github/workflows/traction-live.yml, scripts/check_traction.py (--live).

Current gap: Since #1317 the workflow also runs on a push to main that updates METRICS.md. A sweep's METRICS row counts the issues its commits close on merge (the row says 8 while GitHub says 2 until the push), and GitHub closes those issues a moment after the push, so the run can compare against the old number and open or edit the Traction figures out of date issue, which the next run then closes.

Suggested approach: On a push run, skip the issues_closed comparison (or wait for the Closes #N issues of the pushed commits to be closed, with a short retry) and keep the full comparison for the schedule and manual runs.

Done when: a push that updates the row to include its own closes does not touch the tracking issue, covered by a test of the comparison with the event name as input.

Lingua principale
HTML
Stelle
47
Fork
45
Merge medio
2h 49m
PR unite (30g)
69

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 yakew7/Fair-Code

Tutte le issue di yakew7/Fair-Code

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.