Mutation report marker: `blocking` and `advisories` point at opposite things depending on whether the package ran

オープン
#2,663 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, typescript
領域
ci-cd, testing

調査の方向性

Start from the mutation report marker that writes blocking and advisories into the mutation-diff check and the pr-comment.md artifact, and compare the three cited runs against it. The unmeasured-package case shows up as an Advisory incomplete row with no extension/mutation.json. Done means the survivor count and the unmeasured-package count have separate names or a plain label in the digest, which needs a maintainer decision on naming first.

索引モデルが issue の本文から書いたものです。

説明

The mutation report marker uses two counter names that point at opposite things depending on whether the mutated
package actually ran, and a reader who takes either name at face value draws the wrong conclusion in both directions.

Three artifact digests I downloaded (run id / head / marker / digest row):

  • 45238062095 / 6f007ca6bd34d659c77470672371def4339dea80 / blocking:19 advisories:0 /
    | extension | 322 | 378 | 359 | 0 | 17 | 2 | Advisory findings | — the package ran; the 19 counted into
    blocking are survivors, which the log and the row itself call advisory, and the row concluded success.

  • 45235632800 / 9281047bba29b573cd660f6998b453ba43567ad6 / blocking:0 advisories:1 /
    | extension | 493 | 0 | 0 | 0 | 0 | 0 | Advisory incomplete | — 560 mutants were generated in preflight over the
    400 limit, so the package contributed no measured mutants; advisories:1 here means "one package was not measured".

  • 45250673208 / adf6e9a77d237f39812a1b11d7632803a969816e / blocking:0 advisories:1 /
    | extension | 378 | 0 | 0 | 0 | 0 | 0 | Advisory incomplete | — 429 mutants over the limit, and the artifact
    contains only pr-comment.md (1,167 B): no extension/mutation.json, no mutation.html.

  • check-run 137898835165 (mutation-diff, completed success) on head 5828b4a45e204cb2afc8c1e345b276598e6fde17
    (PR #1406) — marker blocking:4 advisories:1 /
    | extension | 468 | 0 | 0 | 0 | 0 | 0 | Advisory incomplete | alongside | types | 7 | ... | Passed | and
    | webview | 21 | 8 | 5 | 0 | 3 | 0 | ... | — both counters are non-zero on the same line: blocking:4
    counts survivor advisories from the packages that ran, while advisories:1 says the 468-line extension delta was
    not measured at all. This is the clearest case that the two numbers need two names, because a single digest line
    is carrying both meanings at once.
    So blocking rises when a package ran and produced survivors, and advisories rises when a package did not run at
    all - the same word, "advisory", names measured survivors in one carrier and unmeasured packages in the other.
    Reading blocking:19 as "19 blocking findings" overstates what can block a merge (the row passed); reading
    advisories:1 as "one code suggestion" understates it, because the pull with an unmeasured package has weaker
    verification than the digest's green row suggests.

Request: two separately named fields - one for survivor advisories, one for packages the run did not measure - or a
line in the digest that says plainly which of the two a number is. Nothing here asks for a head to change.

主要言語
TypeScript
スター
2k
フォーク
301
平均マージ
3日 14時間
マージ済み PR(30日)
103

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Zoo-Code-Org/Zoo-Code のほかの issue

Zoo-Code-Org/Zoo-Code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。