Limit mutation checks to per commit diffs - #21
Open
Mshehu5 wants to merge 2 commits into
Open
Conversation
bc1cindy
approved these changes
Jul 31, 2026
yuval-block
requested changes
Jul 31, 2026
yuval-block
left a comment
Collaborator
There was a problem hiding this comment.
this says it limits mutants to --in-diff but actually does a bunch of things, please split into separate commits or ideally separate PRs
Author
|
PR now focuses on mutant diff and also nextest baseline those are what were dicussed in #17 other changes have been removed Also PR has been updated to suggested changes |
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.
Closes #17
This PR makes mutation testing faster by passing each commit’s first-parent diff to cargo-mutants, limiting mutations to code changed by that commit. Compatible checks remain batched while mutation checks run separately with their commit-specific Nix input.
CI now runs a quick validation stage before the complete suite avoiding expensive checks when basic tests or linting already fail. It also reuses the successful Nextest result instead of repeating the mutation baseline run.