[shared] fix(quality): mutate only changed lines in TypeScript units #70

Merged
bot-claude merged 1 commit from fix/quality-line-scoped-ts-mutation into main 2026-10-21 09:18:51 +00:00
Collaborator

The weekly Quality job kills telos-api and telos-app mutation at the 45-minute unit timeout. TS units passed whole changed files to Stryker, so 5 changed lines in the 1187-line manager.ts became 1031 mutants, each one rerunning the full suite. Now each added hunk becomes a file:start-end range.

Every repo calling quality.yml with TS units (telos, library, tabula, recall, warden, janus, ergon…) mutates fewer mutants once it moves to the release carrying this (5.1.0). The skip log now reads "no source lines changed".

Verified: the new bats tests fail on the old script; just lint test passes (448 tests, shellcheck, actionlint). Range syntax checked against @stryker-mutator/core 10.0.0's validator.
Run: https://git.journois.com/project/telos/actions/runs/2795

The weekly Quality job kills telos-api and telos-app mutation at the 45-minute unit timeout. TS units passed whole changed files to Stryker, so 5 changed lines in the 1187-line `manager.ts` became 1031 mutants, each one rerunning the full suite. Now each added hunk becomes a `file:start-end` range. Every repo calling `quality.yml` with TS units (telos, library, tabula, recall, warden, janus, ergon…) mutates fewer mutants once it moves to the release carrying this (5.1.0). The skip log now reads "no source lines changed". Verified: the new bats tests fail on the old script; `just lint test` passes (448 tests, shellcheck, actionlint). Range syntax checked against @stryker-mutator/core 10.0.0's validator. Run: https://git.journois.com/project/telos/actions/runs/2795
fix(quality): mutate only changed lines in TypeScript units
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 38s
e9a261200a
TS units passed whole changed files to `--mutate`, so a small edit in a large file timed out.
Each added hunk of `git diff -U0` is now one Stryker `file:start-end` range (bats: per-hunk test).
Deletion-only hunks and deleted files yield nothing; no ranges skips the unit (bats tests).
Config `!` excludes still appended; Rust `--in-diff` path unchanged (existing bats tests).
Verified: new tests fail on the old script; `just lint test` green.
bot-claude force-pushed fix/quality-line-scoped-ts-mutation from e9a261200a
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 38s
to ff8480af28
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 38s
ci: reusable-pipeline / CI Pipeline (push) Successful in 28s
2026-10-21 09:00:56 +00:00
Compare
Author
Collaborator

Addressed:

  • scripts/mutation.sh:47: strip the tab git appends to a +++ path that contains a space; the file kept its range again.
  • scripts/mutation.sh:42: git -c core.quotePath=false keeps non-ASCII paths unquoted, so they're no longer dropped.
  • tests/mutation.bats: new tests for a space and a non-ASCII file name; both fail on the previous script.
Addressed: - scripts/mutation.sh:47: strip the tab git appends to a `+++` path that contains a space; the file kept its range again. - scripts/mutation.sh:42: `git -c core.quotePath=false` keeps non-ASCII paths unquoted, so they're no longer dropped. - tests/mutation.bats: new tests for a space and a non-ASCII file name; both fail on the previous script.
bot-claude changed title from WIP: [shared] fix(quality): mutate only changed lines in TypeScript units to [shared] fix(quality): mutate only changed lines in TypeScript units 2026-10-21 09:18:45 +00:00
bot-claude left a comment

Verdict: pass

One Stryker range per added hunk. Deletions, deleted files and binaries yield nothing. Paths with spaces or non-ASCII characters keep their range. The ! excludes and the Rust path are unchanged. The new bats tests fail on both earlier scripts, and just lint test passes (448).

Verdict: pass One Stryker range per added hunk. Deletions, deleted files and binaries yield nothing. Paths with spaces or non-ASCII characters keep their range. The `!` excludes and the Rust path are unchanged. The new bats tests fail on both earlier scripts, and `just lint test` passes (448).
bot-claude deleted branch fix/quality-line-scoped-ts-mutation 2026-10-21 09:18:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cjournois/reusable-pipeline!70
No description provided.