Repository navigation
Use coverage-driven mutation tests and shared CI baselines - #216
Merged
Merged
Conversation
5 tasks
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mutation campaigns exceeded the six-hour runner limit because the adapter disabled coverage filtering and repeatedly ran broad test suites. The gate also accepted inconclusive results outside its 12-file reviewed scope. This restores coverage-driven selection, uses one shared instrumented coverage baseline followed by 32 mutation jobs, and rejects inconclusive results throughout a campaign.
git -C ROOT rev-parse HEADquery; other Git commands and Python/script wrappers remain opaque.One job prepares the shared coverage baseline; 32 mutation jobs each run four workers. Harness and dependency changes run the complete 213-file, 12,092-mutant campaign before merging. The adapter remains pinned to pytest-gremlins 1.14.3 and rejects reports from older adapter versions.
Measured wall time: a controlled local comparison used the same frozen production/test inputs, all 786 mutants in the 12 reviewed files, all 5,779 selected tests, Python 3.15, four workers, and disabled result caching. Both measurements were unsharded and included preparation, mutation execution, and confirmation.
This is a 34.7% elapsed reduction (1.53× speedup) on that frozen workload. Every native kill was retained, the exact same six reviewed equivalents survived, and the two Rust timeouts became ordinary test failures. An independent audit checked all mutant IDs, source hashes, selections, execution records, progress rows, and equivalent-mutant fingerprints. These measurements establish savings for the reviewed workload; current full-repository timing remains pending.
Validation: all 5,955 local tests pass with native binary tools required (142 seconds). Ruff, formatting, ty, and whitespace checks pass. A real pytest subprocess mutation run reproduced the exact 17 previously inconclusive mutations and killed all 17, with actual failed-report evidence and passing neutral controls. Independent collection confirms 5,797 application tests and 158 mutation-infrastructure tests. Full-source CI and its final artifact audit are pending on the current revision.
Follow-up #217 tracks a smaller dedicated mutation-test group. This PR retains the complete application test pool.