Make a failed pr dispatch comment carry no ref time
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 64/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- github-actions
- 領域
- ci-cd
調査の方向性
.github/workflows/benchmark.yml の workflow_dispatch パスの comment ジョブから始め、<!-- elfuse-benchmark-ref-time: ... --> マーカーが投稿された各コメントに組み込まれる箇所を見つけてください。それを .github/workflows/bench-report.yml の #543 の変更(測定値が存在する場合にのみそのマーカーを書き込む)と、コメントの置き換えを拒否するときに使われる PR_TIME ガードと比較してください。完了とは、dispatch ジョブが 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時間
- マージ済み PR(30日)
- 18
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日以内に返信
sysprog21/elfuse の issue をすべて見る
似ている 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 日以内に返信