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

未关闭
#2,663 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
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 小时
30 天内合并 PR
103

环境准备

从这里开始

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

Zoo-Code-Org/Zoo-Code 的其他 Issue

查看 Zoo-Code-Org/Zoo-Code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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