Repository navigation
Update cribro to 1.4.0 - #2232
Merged
Merged
Conversation
cribro 1.3.0 added the `// mutant: equivalent <id> -- <reason>` marker, which acknowledges a mutant no caller can observe so that `pitestDiff` no longer lists it as live. AGENTS.md and CONTRIBUTING.md now say how to write it, and AGENTS.md asks agents to read `./gradlew -q cribro` before their first measurement in a task. 1.4.0 also lists live mutants on a `// diff-coverage: ignore` line separately, lists covered changed lines that still carry that marker, and skips diff coverage in a build outside a Git working tree, such as one built from a source archive. Assisted-by: Claude Code (claude-opus-5-5)
cribro 1.4.0 lists the live mutants of a line marked diff-coverage: ignore apart from the live ones, so such a line needs no mutant: equivalent marker. The note on where to put both markers on one line answered a case that rarely comes up and that the cribro guide covers. Assisted-by: Claude Code (claude-opus-5-5)
msridhar
reviewed
Dec 4, 2026
| name test classes under `nullaway/src/test`. | ||
|
|
||
| If no caller can observe a live mutant, mark it on its line with `// mutant: equivalent <id> -- <reason>`, where `<id>` | ||
| is the text in brackets after the mutant in the `pitestDiff` report, such as `MathMutator#2`, and say so in the PR. |
Contributor
There was a problem hiding this comment.
Is pitest deterministic across machines / runs, so ids like MathMutator#2 always refer to the same mutant?
Contributor
Author
There was a problem hiding this comment.
It is. It is like "mutator name", and "sequential index of the mutator in the specific line".
msridhar
approved these changes
Dec 4, 2026
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.
cribro 1.3.0 added the
// mutant: equivalent <id> -- <reason>marker, which acknowledges a mutant no caller can observe so thatpitestDiffno longer lists it as live. AGENTS.md and CONTRIBUTING.md now say how to write it, and that a line marked// diff-coverage: ignoreneeds none, since 1.4.0 lists its live mutants apart; and AGENTS.md asks agents to read./gradlew -q cribrobefore their first measurement in a task.1.4.0 also lists live mutants on a
// diff-coverage: ignoreline separately, lists covered changed lines that still carry that marker, and skips diff coverage in a build outside a Git working tree, such as one built from a source archive.🤖 Generated with Claude Code