Make a failed pr dispatch comment carry no ref time
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 64/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions
- 领域
- ci-cd
调研方向
从 .github/workflows/benchmark.yml 中 workflow_dispatch 路径的 comment job 开始,找到 <!-- elfuse-benchmark-ref-time: ... --> 标记被构建进每条已发布评论的位置。将它和 .github/workflows/bench-report.yml 中的 #543 改动(仅当存在测量结果时才写入该标记)以及拒绝替换评论时使用的 PR_TIME 守卫进行比较。完成意味着 dispatch job 仅在设置了 report 时写入参考时间,同时保持入站侧检查不变。
由索引模型根据 Issue 内容生成。
描述
Problem
The comment job of .github/workflows/benchmark.yml, for a workflow_dispatch run with pr, writes <!-- elfuse-benchmark-ref-time: ... --> into every comment it posts, including "The benchmark did not complete at this commit, so it has no measurements." Since #543, .github/workflows/bench-report.yml writes the ref time only into a comment that carries measurements. Both writers refuse to replace a comment whose ref time is later than their own. So the report of an earlier pull_request run replaces a "did not complete" comment that a later pull_request run left, but not one that a later pr dispatch left. For that to happen, the dispatch would have to fail (for example in a step before the measurement) and post its comment before the earlier run reports; that run's report is then dropped with the notice "Comment N reports a merge ref from ...". Found by reading daf19f0; not run.
The dispatch job does not have the case that made #543 change bench-report.yml: its if requires !cancelled(), so a dispatch run replaced while pending posts nothing.
Proposal
Write the ref time in the dispatch job only when report is set, and keep the PR_TIME check on the incoming side, so that both writers follow one rule: a comment with no measurements keeps out no report.
Alternatives
Keep the dispatch job as it is, on the ground that a later merge ref that failed matters more than an earlier one's measurements, and then say so in both writers' comments.
Origin
Follow-up from #543 (https://github.com/sysprog21/elfuse/pull/543).
- 主要语言
- C
- 星标
- 287
- 派生
- 33
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 18
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sysprog21/elfuse 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 80/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 62/100
维护者通常 2 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
libreswan/libreswan#3185 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
-
category:port-update
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
llvm:instcombine
难度 2/5 1-3 小时 新手友好度 64/100
llvm/llvm-project#246503 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复