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

Aberta
#2,663 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
github-actions, typescript
Domínio
ci-cd, testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
2k
Forks
301
Merge médio
3d 14h
PRs com merge (30d)
103

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Zoo-Code-Org/Zoo-Code

Todas as issues de Zoo-Code-Org/Zoo-Code

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.