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

Abierto
#2,663 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github-actions, typescript
Área
ci-cd, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
2k
Forks
301
Merge medio
3 d 14 h
PR fusionados (30 d)
103

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Zoo-Code-Org/Zoo-Code

Todos los issues de Zoo-Code-Org/Zoo-Code

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.