Commit 8e0fc67
committed
test(mutmut): item D closure - wl_csv.py 547 survivors + harness cache-leak fix
v1.1 item D from the 2026-05-18 pre-release sweep. First real
survivor data for bin/wl_csv.py with the correct test selector,
and a fix for a cache-leak harness bug discovered during the run.
## wl_csv.py fresh-run result
Mutmut run with the corrected selector (tests/unit/test_csv.py +
tests/unit/test_diff_fuzz.py) on a fresh :ro-mount + tmpfs
container. 723 mutations applied, 547 survived, 176 killed.
Effective mutation score: 24%.
Why the score is low: bin/wl_csv.py is 1244 lines. Only ~600 of
those (the diff engine + hash-registry plumbing) have unit-test
coverage in test_csv.py / test_diff_fuzz.py. The other ~600 lines
(save_csv_pipeline + create_csv_pipeline) are integration-tested
in tests/integration/, NOT exercised by the unit selector mutmut
uses. This shows up in the survivor ID ranges: 191-472 have a
mix of killed and survived (~50% each); 494-913 are almost all
survivors (integration paths).
Triage on 10 sampled survivors shows the killable subset:
- logger / docstring strings: skip (low value)
- constant strings → paths: killable, low priority
- value→None crash mutations: killable, trivial tests
- hidden-column filter strings: killable, security boundary
- tuple default-value sentinels: mostly equivalent
- response-dict key names: killable, highest value (contract pin)
- JSON formatting params: equivalent (indent=2 vs 3)
- integration-path mutations (~400 of them): killable but
expensive (needs integration test coverage)
Genuine killable survivors in the unit-tested core: ~100-150.
Closing them = ~100-150 new unit tests = 1-2 days of work.
Deferred to v1.1 item G (test coverage push 32.4% → 80%), which
naturally covers the same code paths. Doing the work twice would
be wasteful.
## Harness cache-leak fix
Discovered during this run: a leftover .mutmut-cache (~192 KB)
from a prior :rw-mount session was sitting on the host repo.
populate_scratch()'s 'cp -a /repo/. /scratch/' copied this stale
cache into the fresh tmpfs, polluting 'mutmut results' with
phantom entries from prior misconfigured runs (37 wl_audit + 10-
12 wl_validation entries that survived in old caches but were
killed in newer runs).
Fix: populate_scratch() now wipes /scratch/.mutmut-cache and
C:/Program Files/Git/scratch/mutants after the cp. Two-line addition.
The wl_csv.py survivor count for THIS run is unaffected by the
leak (mutmut's progress counter showed 723/723 actually tested
— the leak only polluted the cumulative results display, not the
current-run results).
Host-side leftover at wl_manager/.mutmut-cache was also deleted.
.gitignore already excludes it from tracking.
## Doc updates in MUTATION_TESTING.md
- New section: "2026-05-19 wl_csv.py fresh-run results (item D)"
with triage categories table + harness-fix note
- "Open" list: items 3 (wl_validation re-run, item C) and 4
(wl_csv run, item D) marked CLOSED. Only wl_audit re-run
remains in the open queue.
doc-drift: OK (33 docs against build 660).1 parent 9655ba4 commit 8e0fc67
2 files changed
Lines changed: 105 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
214 | 285 | | |
215 | 286 | | |
216 | 287 | | |
| |||
238 | 309 | | |
239 | 310 | | |
240 | 311 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
246 | 327 | | |
247 | | - | |
248 | | - | |
249 | | - | |
| 328 | + | |
250 | 329 | | |
251 | | - | |
| 330 | + | |
252 | 331 | | |
253 | 332 | | |
254 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
252 | 262 | | |
253 | 263 | | |
254 | 264 | | |
255 | 265 | | |
256 | 266 | | |
257 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
258 | 271 | | |
259 | 272 | | |
260 | 273 | | |
| |||
0 commit comments