enhancement: produce more useful names in build-matrix

Đang mở
#343 1 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, github-actions
Lĩnh vực
build-system, ci-cd

Hướng nghiên cứu

Start with the referenced .github/workflows/bake.yml section around lines 517–528 and compare the generated check names with the Docker packaging workflow linked in the issue. Identify where the numeric matrix index enters the name and whether the other matrix fields provide a stable unique name. Done means the checks use informative names without collisions; verify by inspecting the resulting matrix names.

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

Mô tả

kind/enhancement status/triage
Description

Opening as a quick write-up; I didn't dig deep yet, and may even be in the wrong repository 😂

Looking at the packaging repository; for example on this PR https://github.com/docker/packaging/pull/577

workflow; https://github.com/docker/packaging/actions/runs/43001873392/job/130460054549?pr=577

The checks matrix produces builds like;

run / build (almalinux10) / build (almalinux10, 0, linux/amd64, ubuntu-26.04)
run / build (almalinux10) / build (almalinux10, 1, linux/arm64, ubuntu-26.04-arm)

Given that the other parameters already seem to produce a unique combination, I wondered where the 0 and 1 came from, as they're not very informative.

Some initial searching .. I suspect this may be the part to look at? https://github.com/docker/github-builder/blob/a31d2311da4d55e21b978c1c52bab82ba97d51ee/.github/workflows/bake.yml#L517-L528

Can we remove the numeric index somehow from the name to produce a more logical name for the check (perhaps a custom name: attribute if the fields in the matrix are predictable and not expected to change?)

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
94
Fork
28
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
20

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 docker/github-builder

Tất cả issue của docker/github-builder

Issue tương tự

Thêm issue về Build System

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.