Skip to content

Limit mutation checks to per commit diffs - #21

Open
Mshehu5 wants to merge 2 commits into
fungi-protocol:mainfrom
Mshehu5:mut
Open

Limit mutation checks to per commit diffs#21
Mshehu5 wants to merge 2 commits into
fungi-protocol:mainfrom
Mshehu5:mut

Conversation

@Mshehu5

@Mshehu5 Mshehu5 commented Jul 30, 2026

Copy link
Copy Markdown

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.

@bc1cindy bc1cindy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

ACK e78d932

@yuval-block yuval-block left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this says it limits mutants to --in-diff but actually does a bunch of things, please split into separate commits or ideally separate PRs

Comment thread flake.nix Outdated
Comment thread nix/validate-commits.sh Outdated
@Mshehu5

Mshehu5 commented Aug 4, 2026

Copy link
Copy Markdown
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make mutants job diff aware

3 participants