Le lab artefacts-entre-jobs : un build partagé par needs et artefact, if-no-files-found: error, et les rapports en if: always()
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 52/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, python, yaml
- 領域
- ci-cd, devops, documentation, testing-qa
研究方向
Start with the existing structure under labs/optimiser/artefacts-entre-jobs and the referenced artifact lessons, then inspect lab.yaml, scenario.md, challenge/, solution/, and challenge/hints.yaml. Run the lab with act using the documented action versions, and use the artifact-server-path results to understand the required tests. Done means the lab validator reaches 100, validation-labs.json records the verdict, and pinact, zizmor, actionlint, and the metadata test pass.
由索引模型根據 Issue 內容生成。
描述
Mesuré le 2026-09-25 sur le parcours github-actions.yaml et les leçons du blog.
Lab labs/optimiser/artefacts-entre-jobs, module optimiser. Leçons éprouvées :
/docs/pipeline-cicd/github/optimiser/artifacts//docs/pipeline-cicd/github/optimiser/artifacts-vs-cache/
La leçon artifacts l.540-543 et l.604-631 affirme qu'un download par name: sans path: crée un sous-dossier du nom de l'artefact : depuis v4, un artefact seul s'extrait à la racine du workspace. Le lab fait mesurer où le fichier atterrit.
Jouable avec act : oui
Avec la paire v5.0.0 + v6.0.0 seulement, mesurée. Rétention et interface : plateforme.
Ce qui n'est pas qu'un copier-coller
act ne parle plus à upload-artifact v7. Mesuré le 2026-09-25 avec act 0.2.89 : upload-artifact v6.0.0 et v7.0.1 échouent sur unknown field "mime_type", download-artifact v7 et v8 ne fonctionnent pas davantage ; la paire v5.0.0 + v6.0.0 fonctionne. La PR amont nektos/act#6174 est ouverte. Le lab épingle donc upload-artifact@330a01c4... # v5.0.0 et download-artifact@018cc2cf... # v6.0.0, avec un commentaire daté qui dit pourquoi, et cette issue reste ouverte jusqu'à la montée de version. Le test lit le répertoire passé à --artifact-server-path : le zip est là après build, le fichier est relu par deploy, un build sans fichier échoue sur if-no-files-found: error, et le rapport de tests est envoyé même quand test échoue.
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
-
Le lab gh-piloter-les-runs : déclencher, suivre avec --exit-status, relancer les seuls jobs en échec未關閉
難度 4/5 3-5 天 新手友好度 68/100
stephrobert/github-actions-training#48 ·
維護者通常 1 天內回覆
-
難度 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 天內回覆
查看 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 天內回覆