mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
mutmut's gather_coverage() looks each source file's covered lines up by absolute path, but [tool.coverage.run] sets relative_files = true, so every lookup misses. With mutate_only_covered_lines = true that leaves no line eligible for mutation, and the run ends on "Stopping early, because we could not find any test case for any mutant" after spending 26 minutes collecting coverage. The last four dispatches all died that way. Point COVERAGE_RCFILE at a small rc file for mutation runs only, so the coverage instance mutmut builds stores absolute paths. Scoped to one module locally this takes the run from 0 mutants to 8 generated and 8 killed. Also give the mutmut step a deadline inside the job's own. mutmut records each mutant's verdict to mutants/mutmut-stats.json as it finishes, so a run that outlasts its budget still scores what it got through, but a cancelled job skips the report and upload steps and publishes nothing. That is how the two runs before these four ended. Ignore mutants/ and .venv-mutmut, which a local run leaves behind untracked.
5 lines
251 B
Text
5 lines
251 B
Text
# mutmut's gather_coverage() looks covered lines up by absolute path, so the
|
|
# repo's `relative_files = true` makes every lookup miss and mutmut generates
|
|
# zero mutants. Point COVERAGE_RCFILE here for mutation runs only.
|
|
[run]
|
|
relative_files = false
|