From 63b61e94973bb48022ea23c6d083727578e18727 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 1 Jul 2025 13:06:15 -0400 Subject: [PATCH 1/2] Remove delete match arm and match guard mutation exclusion As of the most recent cargo mutants version v25.2.0 delete match arm and replace match guard mutations can now be identified on function name patterns and as a result can be effectively excluded using the existing mutation exclusion patterns. --- .cargo/mutants.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/.cargo/mutants.toml b/.cargo/mutants.toml index 70a1b8fd3..d63ac7747 100644 --- a/.cargo/mutants.toml +++ b/.cargo/mutants.toml @@ -10,7 +10,6 @@ exclude_re = [ ".*Error", "deserialize", # Skip serde mutation tests "Iterator", # Mutating operations in an iterator can result in an infinite loop - "match arm", "match guard", # New addition in cargo-mutants 25.0.1 deletes match arms and replaces match guards even in excluded functions # ----------------------------------Crate-specific exclusions---------------------------------- # Units From 13c5df083d6761c5780fc998e33ba4d38d45edf6 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 1 Jul 2025 13:07:48 -0400 Subject: [PATCH 2/2] Enhance the weekly mutation workflow markdown This adds a code block to the cargo mutants issue creator for the missed mutations and prints the current version of cargo mutants being used so any new versions can easily be tracked where or why there are new mutations. --- .github/workflows/cron-weekly-cargo-mutants.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cron-weekly-cargo-mutants.yml b/.github/workflows/cron-weekly-cargo-mutants.yml index 74ec34629..3e7b01deb 100644 --- a/.github/workflows/cron-weekly-cargo-mutants.yml +++ b/.github/workflows/cron-weekly-cargo-mutants.yml @@ -22,13 +22,15 @@ jobs: run: | if [ -s mutants.out/missed.txt ]; then echo "New missed mutants found" + MUTANTS_VERSION=$(cargo mutants --version) gh issue create \ --title "New Mutants Found" \ --body "$(cat <