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

Offen
#2,663 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, typescript
Bereich
ci-cd, testing

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
301
Ø Merge
3 T. 14 Std.
Gemergte PRs (30 T.)
103

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Zoo-Code-Org/Zoo-Code

Alle Issues in Zoo-Code-Org/Zoo-Code

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.