Le lab gh-piloter-les-runs : déclencher, suivre avec --exit-status, relancer les seuls jobs en échec
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 68/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- github, github-actions, python
- 領域
- ci-cd, documentation, testing-qa
研究方向
Start in labs/outils/gh-piloter-les-runs, then read /docs/pipeline-cicd/github/gh-cli/ and inspect the existing lab conventions. Run python3 scripts/valider-labs.py --lab before changing anything, and use the stated gh workflow scenario to verify exit status, rerun, and success handling. Done means the lab metadata, challenge, solution, hints, validation, pinned actions, and meta test all satisfy the listed checks.
由索引模型根據 Issue 內容生成。
描述
Mesuré le 2026-09-25 sur le parcours github-actions.yaml et les leçons du blog.
Lab labs/outils/gh-piloter-les-runs, module outils. Leçons éprouvées :
/docs/pipeline-cicd/github/gh-cli/
La leçon emploie gh run watch sans --exit-status (l.429, 811-815) : sans lui, la commande sort en 0 même sur un run en échec, et le step « Wait for checks » ne bloque jamais. gh run view --json artifacts (l.482) n'existe pas. Trois exemples appellent gh dans Actions sans checkout ni GH_REPO. Le lab fait mesurer les codes de sortie.
Jouable avec act : non
Plateforme : gh sur LAB_REPO.
Ce qui n'est pas qu'un copier-coller
Le code de sortie est l'état. Le test plateforme déclenche par gh workflow run sur LAB_REPO un workflow qui échoue sur un input, exige gh run watch --exit-status non nul, gh run rerun --failed après correction de l'input, puis gh run view --json conclusion à success. Un script fourni par l'apprenant doit rendre le bon code, et le test l'exécute.
Définition de terminé
-
lab.yamlrenseigné :module,doc_url,lessons,act(oui, partiel, non) etact_notesqui dit pourquoi -
scenario.mddécrit une situation et un objectif, pas un mode d'emploi ; aucun emoji, aucun tiret cadratin -
challenge/est un point de départ que l'apprenant modifie,solution/une solution de référence rejouable - chaque test lit l'état (résultat d'act, findings d'un scanner, réponse de
gh api), et le dernier exerce les deux côtés - la question « serait-il vert si l'apprenant ne faisait rien ? » a reçu non pour chaque test
-
python3 scripts/valider-labs.py --lab <id>rend 0 avant, 100 après, rejouable ; le verdict est dansvalidation-labs.json - les actions de la solution sont épinglées par SHA au tag mesuré ce jour, commentaire de version vérifié par
pinact run --check -
zizmor --offlineetactionlintrendent 0 sursolution/ - le lab est dans
meta.yml,tests/test_meta_declare_les_labs.pyest vert - quatre indices base64 de coût croissant dans
challenge/hints.yaml
- 主要語言
- Python
- 星號
- 7
- 分支
- 4
- 平均合併
- 2 天 10 小時
- 30 天內合併 PR
- 8
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
stephrobert/github-actions-training 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 68/100
stephrobert/github-actions-training#47 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 68/100
stephrobert/github-actions-training#46 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 72/100
stephrobert/github-actions-training#45 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 68/100
stephrobert/github-actions-training#44 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 68/100
stephrobert/github-actions-training#43 ·
維護者通常 1 天內回覆
查看 stephrobert/github-actions-training 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 67/100
LIF-Initiative/lif-core#1534 ·
維護者通常 1 天內回覆
-
bug frontend good first issue help wanted
難度 2/5 1-3 小時 新手友好度 89/100
nikhilb2/simple_invoicing#1231 ·
-
review-panel severity:low
難度 2/5 1-3 小時 新手友好度 76/100
kristovatlas/coin-accounting#498 ·
維護者通常 1 天內回覆
-
enhancement github_actions
難度 2/5 1-3 小時 新手友好度 76/100
QWED-AI/qwed-verification#703 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆