Mutation preflight silently degrades on Windows: Stryker spawn hits the extension-less pnpm shim, is logged as an advisory, and exits 0

Abierto
#2,715 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
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, node.js
Área
devtools

Línea de trabajo

Start in scripts/stryker-diff.mjs, where Stryker is launched with spawnSync against node_modules/.bin/stryker, and find the branch that records the 'Stryker preflight could not start' advisory and exits 0. Reproduce on Windows or reason from the ENOENT versus shell:true results in the body. Done when a failed Stryker launch exits non-zero and Windows resolves the .CMD shim or uses shell:true.

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

Descripción

On Windows, scripts/stryker-diff.mjs launches Stryker via spawnSync against the extension-less node_modules/.bin/stryker shim, which Windows cannot execute. Measured with the same spawnSync in two modes: without shell -> status=null error=ENOENT; with shell:true -> status=0 printing 10.0.0. The install is complete (@stryker-mutator/core 10.0.0 + vitest-runner present as root devDeps; u1-journal/node_modules/.bin contains stryker, stryker.CMD and stryker.ps1) - the failure is purely the spawn mode.

The script records a failed launch as a one-line advisory ('Stryker preflight could not start') and exits 0. A Windows author following AGENTS.md's local preflight therefore receives exit 0 with a log line saying the tool never started - which reads like a pass to anyone trusting exit codes. Linux CI never hits this path, so the gate is green in CI while being unable to run locally on Windows.

Observed live: PREFLIGHT_EXIT=0 with body 'Stryker preflight could not start'; our lane treats the preflight result as valid only when the JSON report file exists and its status fields are complete (report-existence check), which is how the silent degradation was caught.

Suggested fixes: spawn with shell:true on win32 (or resolve the .CMD), and exit non-zero when Stryker could not start instead of recording an advisory - a missing run is not an advisory finding. Workaround we use without touching repo files: node --import .
[Filed by the issue-1410 split lane; both spawnSync self-test outputs and log excerpts available on request.]

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.