Skip to content

Update cribro to 1.4.0 - #2232

Merged
msridhar merged 2 commits into
apache:masterfrom
vlsi:cribro-1.4.0
Dec 4, 2026
Merged

msridhar merged 2 commits into
apache:masterfrom
vlsi:cribro-1.4.0

Conversation

@vlsi

@vlsi vlsi commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

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 that a line marked // diff-coverage: ignore needs none, since 1.4.0 lists its live mutants apart; 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.

🤖 Generated with Claude Code

vlsi added 2 commits December 4, 2026 22:22
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 msridhar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

one question

Comment thread AGENTS.md
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is pitest deterministic across machines / runs, so ids like MathMutator#2 always refer to the same mutant?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is. It is like "mutator name", and "sequential index of the mutator in the specific line".

@msridhar
msridhar added this pull request to the merge queue Dec 4, 2026
Merged via the queue into apache:master with commit fe0a7e3 Dec 4, 2026
18 checks passed
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.

2 participants