A worker that fails before any mutation was recording every mutant as
killed. Run the tests once on the unmutated overlay and stop the way a
failed baseline does. The tests also kill the mutants in the functions
this change touches.
Proved by a stand-in xcodebuild that fails only inside a worker, and by
mutator on engine.py and workers.py: 140 killed, 0 survived, 0
uncovered. pytest: 139 passed, 1 skipped.
Co-authored-by: Robert C. Martin <[email protected]>
Why: delete_tree walked the worker tree and called rmdir once. Gradle
can still be flushing a test report then, so a directory that looked empty
raises OSError [Errno 39] Directory not empty (or a file vanishes before
unlink) and the whole mutation run aborts.
What: delete_tree retries the walk, with injectable sleep and attempt
count so tests do not wait. A vanished file is unlinked with
missing_ok. Symlinks are still unlinked, never followed into the real
project.
Proof: six new tests (late file, vanished file, missing path, regular
file, symlink left alone, exhausted retries re-raise). 78 tests were
green before; 84 pass now. crapper: delete_tree 5.0, _delete_once 5.0,
every function in workers.py under 10. dryer: no candidates. mutator on
the nine changed sites: 9 killed, 0 survived, 0 uncovered.