Answer stability round 2: 0 🔴, 0 🟡 (0 misread); drop a report the tree held before the run, move a comment back to its function
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-11-26 12:35:53 +01:00
parent 794adafb91
commit 87f168c4c9
3 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -116,8 +116,6 @@ def outcome_lines(path: pathlib.Path) -> list[str]:
return path.read_text(encoding="utf-8", errors="replace").splitlines() if path.is_file() else []
# Stryker and Infection also exit nonzero on a mutation score below a threshold the project sets, which their exit code doesn't
# tell from a run that broke, so either fails the run.
def glob_escaped(path: str) -> str:
"""A path as a glob that matches it. Stryker 10.1.1 reads each entry of --mutate as a glob, in which `app/[slug]/page.tsx`
matches `app/s/page.tsx` and not the file of that name. It reads a backslash as a slash, so no character can be escaped: a `?`
@@ -125,6 +123,8 @@ def glob_escaped(path: str) -> str:
return re.sub(r"[][!()*+@{}]", "?", path)
# Stryker and Infection also exit nonzero on a mutation score below a threshold the project sets, which their exit code doesn't
# tell from a run that broke, so either fails the run.
def run_stryker(top: str, changed: dict[str, frozenset[int]], run: Run, jobs: int) -> list[str] | Failure:
"""For each folder Stryker runs in, a line naming it, then Stryker's own report of the mutants on the changed lines. Last, a line
naming the files with no package.json above them, if any.