Mutation gate job mixes its self-test's CI-format output lines with real findings
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, node.js, typescript
Direzione di ricerca
Leggi il passaggio di self-test che esegue pnpm test:mutation-ci e la gestione dell’output in scripts/stryker-diff.mjs. Verifica come i test acquisiscono e stampano l’output delle fixture contenente la sintassi dei comandi dei workflow GitHub, quindi scegli uno dei rimedi proposti: isolare i self-test, contrassegnare chiaramente le righe delle fixture oppure sopprimere l’output dei test superati. Il lavoro è completato quando i log di un gate superato non presentano più gli avvisi delle fixture come risultati apparenti, mentre i self-test non superati continuano a fornire diagnosi utili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened
In a mutation-diff job log, four lines look like gate findings but come from the workflow's own passing test suite:
L1045 # ::warning title=Mutation test advisory::core Stryker preflight could not start: spawnSync /tmp/stryker-launch-Fw8RbA/node_modules/.bin/stryker ENOENTL1046 # ::warning file=packages/core/src/value.ts,line=1,title=Mutation test advisory::packages/core/src/value.ts:1: Survived BooleanLiteral mutant (replacement: false). See the job summary for the complete list ...L1048 # ::warning title=Mutation test advisory::Could not write the job summary: EISDIR: illegal operation on a directory, open '/tmp/stryker-summary-J1Taa7'L1049 # ::warning title=Mutation test advisory::manifest advisory
All four sit inside the earlier step Run pnpm test:mutation-ci (its log group opens at L1028, its output ends at L1841), interleaved with its own fixture output - e.g. L1040 # Switched to a new branch 'feature'. Each of those strings occurs exactly once in the whole 1,894-line log.
The step that actually failed is the next one, L1842 Run BASE_SHA="$(git rev-parse "$HEAD_SHA^1")" followed by node scripts/stryker-diff.mjs ci --base "$BASE_SHA" --head "$HEAD_SHA". Its entire output is a single line:
L1852 Mutation gate failed: extension has 675 changed executable lines (limit 500). Split the PR or obtain a maintainer-reviewed narrow exclusion.
L1853 ##[error]Process completed with exit code 1.
So the ENOENT / EISDIR / Survived BooleanLiteral text is not the failure cause: it is the tool's own self-test talking in GitHub-workflow syntax, and it is describing its own fixtures. The only ##[error] in the whole log is the one above, after the sizing step; the self-test step produced none and the job proceeded past it, which is how we know those tests passed.
The synthetic survivor is another tell worth keeping in mind: packages/core/src/value.ts is not a file the pull request changes at all (the pull request in question touches 58 files and packages/core/* is not among them), yet the fixture prints a surviving mutant for it with line=1.
Why it matters
Two independent agent lanes read this same log and both mis-triaged it, in the same direction: one concluded "the red is a Stryker start defect (ENOENT + EISDIR), no cap was hit"; the other first mistook self-test titles such as fails rather than skipping a package over the changed-line cap for failure lines. Neither conclusion was reachable from annotations alone, and neither was reachable without re-reading the primary artifact and mapping ##[group] step boundaries. A reader who only looks at annotations is unaffected; a reader pointed at the job log - which is where a failing step sends everyone - is misled.
Measured limit of the damage: because those lines are printed with a # prefix, GitHub did not register them as annotations (the annotations endpoint for that check run returns exactly one item, the exit-code line). The cost is log legibility, not a wrong surface on the pull request.
Reproduction
Every run of the gate executes this self-test step first, so the fixture text is always in the log. Evidence pointers from one such run: job 139687440390 in run 45753763067 (log 148,723 B / 1,894 lines); the identical gate message and the identical count 675 appear on an earlier head of the same branch in job 133379246289 (2026-11-16).
What would fix it
Options in rough order of cost:
- Run the self-tests in their own job, or at least a step whose name makes their output obviously unrelated to findings.
- Stop the self-test harness from emitting workflow-command-shaped payloads (
::warning title=...::...) into the step's stdout. The escaping that prevents annotation registration is already in place; what is missing is anything that marks those lines as fixture output rather than findings. - Print self-test output only when it fails, so a green self-test step contributes nothing to the log a triager reads.
Source order, for whoever prices the gate
scripts/stryker-diff.mjs sizes the delta first (selectFromGit -> buildManifest, whose cap throw is at lines 265-269 with MAX_CHANGED_LINES = 500 at line 11) and only then launches Stryker (runManifest, invoked at line 858). The prefix Mutation gate failed: is printed only by the catch at line 865. That is why "Stryker never started" is a consequence of the size gate, not an independent defect - and it is the fact a log reader has to reconstruct from source today.
- Lingua principale
- TypeScript
- Stelle
- 2k
- Fork
- 301
- Merge medio
- 3g 14h
- PR unite (30g)
- 103
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Zoo-Code-Org/Zoo-Code
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
I maintainer di solito rispondono entro 3 giorni
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsForse già presa @easonLiangWorldedtech l’ha presa 15 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
I maintainer di solito rispondono entro 3 giorni
-
[BUG] search_files hides matching text on long linesForse già presa @DananjayaNadun l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Zoo-Code-Org/Zoo-Code#2493 ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di Zoo-Code-Org/Zoo-Code
Issue simili
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
EPPIcenter/sampledb3#162 ·
-
Particle-1 modelAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
tashfeenahmed/freellmapi#2169 ·
I maintainer di solito rispondono entro 1 giorno
-
via-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
🎙️ task - feat(mechanic): pave git.pull.close, a close of a superseded pull with its why on recordAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ehmpathy/rhachet-roles-ehmpathy#1576 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
vercel-labs/ui#1563 ·
I maintainer di solito rispondono entro 1 giorno