NVIDIA / NVIDIA/cuda-python

CI: Add a workflow to add a git tag via web UI

Aperta
#1,213 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

CI/CD enhancement
Lingua principale
Cython
Stelle
3.4k
Fork
329
Merge medio
1g 23h
PR unite (30g)
116

Descrizione

Today before triggering the release workflow we need to create a git tag locally and push it to the remote repo, because

  1. GitHub for whatever reason does not offer a way for us to do this in the browser
  2. our release workflow needs the tag to reverse-lookup the corresponding run ID:
    https://github.com/NVIDIA/cuda-python/blob/36b8c5fa799ddd9b8c9eb8b4816258485cbeeb7c/.github/workflows/release.yml#L22-L25

However, this mixed workflow is error prone and we did accidentally pushed wrong tags in the past. We should avoid this by adding a workflow to tag (based on the commit). Then, we can consider combine this new workflow with the release workflow, so that we don't need to provide both commit and tag; just the former should be enough for everything.

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

Inizia leggendo .github/workflows/release.yml alle righe 22-25 per capire come il workflow di release esegue la ricerca inversa di un run a partire da un tag. Esamina quindi le convenzioni di workflow esistenti nel repository e definisci un workflow che accetti un commit e ne crei il tag tramite l’interfaccia web di GitHub; il lavoro è completato quando il processo di release non richiede più un tag creato localmente.

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

Valutazione

Stack tecnologico
git, github-actions
Ambito
ci-cd, release
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.