Le lab artefacts-entre-jobs : un build partagé par needs et artefact, if-no-files-found: error, et les rapports en if: always()

Đang mở
#38 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, python, yaml

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.yaml renseigné : module, doc_url, lessons, act (oui, partiel, non) et act_notes qui dit pourquoi
  • scenario.md dé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 dans validation-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 --offline et actionlint rendent 0 sur solution/
  • le lab est dans meta.yml, tests/test_meta_declare_les_labs.py est vert
  • quatre indices base64 de coût croissant dans challenge/hints.yaml
Ngôn ngữ chính
Python
Star
7
Fork
4
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stephrobert/github-actions-training

Tất cả issue của stephrobert/github-actions-training

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.