enhancement: produce more useful names in build-matrix

未关闭
#343 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
57/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, github-actions

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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?)

主要语言
没有语言数据
星标
94
派生
28
平均合并
2 天 7 小时
30 天内合并 PR
20

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

docker/github-builder 的其他 Issue

查看 docker/github-builder 的全部 Issue

相似的 Issue

更多 Build System Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。