doc: document how to reference killed mutant #36900

Open
brunoerg wants to merge 1 commit from 2026-11-doc-devnotes-mutation into master AGit
brunoerg commented 2026-11-17 13:17:10 +00:00 (Migrated from github.com)

Seeking Concept ACK

This adds a note on doc/developer-notes.md clarifying how should be the description when a test is added or extended to kill mutants. The main motivation is to facilitate review, avoid duplicated work (different PRs addressing the same mutants), and go towards an automated setup to check it.

Seeking Concept ACK This adds a note on `doc/developer-notes.md` clarifying how should be the description when a test is added or extended to kill mutants. The main motivation is to facilitate review, avoid duplicated work (different PRs addressing the same mutants), and go towards an automated setup to check it.
DrahtBot commented 2026-11-17 13:17:20 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK mercie-ux, danielabrozzoni, nebula-21
Concept ACK Conradgabe
Stale ACK w0xlt

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36952 (doc: AssertUnreachable and NONFATAL_UNREACHABLE by maflcko)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36900 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36900.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36900#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [mercie-ux](https://github.com/bitcoin/bitcoin/pull/36900#issuecomment-6959627995), [danielabrozzoni](https://github.com/bitcoin/bitcoin/pull/36900#pullrequestreview-5947072089), [nebula-21](https://github.com/bitcoin/bitcoin/pull/36900#pullrequestreview-5992760865) | | Concept ACK | [Conradgabe](https://github.com/bitcoin/bitcoin/pull/36900#issuecomment-6952139768) | | Stale ACK | [w0xlt](https://github.com/bitcoin/bitcoin/pull/36900#pullrequestreview-5945178298) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36952](https://github.com/bitcoin/bitcoin/pull/36952) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36952.svg"></sub> (doc: AssertUnreachable and NONFATAL_UNREACHABLE by maflcko) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

🟠 Minor · Example mutant diff has inconsistent hunk counts

The example declares seven lines per side but contains five, making it malformed for normal patch application; this follows from inspection, not an executed git apply check.

Location: doc/developer-notes.md:707 (head).

🔵 Suggestion · MutantHub submission becomes a prerequisite without a documented fallback

The workflow requires submitting unlisted mutants to MutantHub before writing tests, but documents neither a submission procedure nor an unavailable-service fallback; no actual contributor blockage was established.

Location: doc/developer-notes.md:726 (head).

🔵 Suggestion · The mutant diff requirement is ambiguous

The opening makes a diff preferable, but the closing instructions assume one is present, leaving contributors and reviewers unsure whether a prose description satisfies the guidance.

Location: doc/developer-notes.md:702 (head).

🔵 Suggestion · The verification guidance omits base-commit survival

The documented failure check cannot distinguish newly killed mutants from ones already caught by existing tests; whether MutantHub supplies current survival evidence was not verified.

Location: doc/developer-notes.md:725 (head).

Review coverage was incomplete.


Reviewed: 3b46919fd576 · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:2b20819f882b885f79f242c01722f54f2a55e27dcfa7d5e13701b4a0b5214248:c39fdacfa3b84799844a5e841c04997e3cd1142653dfad8e36dbb07c4b1e684b --> <!-- ralph-base:e211dd0186e9646167d063a16f0da88e5f72e05f --> <!-- ralph-head:3b46919fd57671094ae03e34d0b3d8350e819e5e --> <!-- ralph-case:2277c8200b76f58c640fa3f324f33ef3056867da9294d2dd6d67a1401271d85c --> **🟠 Minor · Example mutant diff has inconsistent hunk counts** The example declares seven lines per side but contains five, making it malformed for normal patch application; this follows from inspection, not an executed `git apply` check. Location: [`doc/developer-notes.md:707`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/3b46919fd57671094ae03e34d0b3d8350e819e5e/doc/developer-notes.md#L707>) (head). **🔵 Suggestion · MutantHub submission becomes a prerequisite without a documented fallback** The workflow requires submitting unlisted mutants to MutantHub before writing tests, but documents neither a submission procedure nor an unavailable-service fallback; no actual contributor blockage was established. Location: [`doc/developer-notes.md:726`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/3b46919fd57671094ae03e34d0b3d8350e819e5e/doc/developer-notes.md#L726>) (head). **🔵 Suggestion · The mutant diff requirement is ambiguous** The opening makes a diff preferable, but the closing instructions assume one is present, leaving contributors and reviewers unsure whether a prose description satisfies the guidance. Location: [`doc/developer-notes.md:702`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/3b46919fd57671094ae03e34d0b3d8350e819e5e/doc/developer-notes.md#L702>) (head). **🔵 Suggestion · The verification guidance omits base-commit survival** The documented failure check cannot distinguish newly killed mutants from ones already caught by existing tests; whether MutantHub supplies current survival evidence was not verified. Location: [`doc/developer-notes.md:725`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/3b46919fd57671094ae03e34d0b3d8350e819e5e/doc/developer-notes.md#L725>) (head). Review coverage was incomplete. <!-- Review tier: routine --> --- Reviewed: [`3b46919fd576`](<https://git.fish.foo/bitcoin/bitcoin/commit/3b46919fd57671094ae03e34d0b3d8350e819e5e>) · [Review report](<https://review.fish.foo/report/36900-3b46919fd57671094ae03e34d0b3d8350e819e5e-2766-2.html>) · [Previous reports](<https://review.fish.foo/traces/36900/>) [permalink](<https://review.fish.foo/report/36900-3b46919fd57671094ae03e34d0b3d8350e819e5e-2766-2.html>)
Conradgabe commented 2026-11-17 15:14:29 +00:00 (Migrated from github.com)

Concept ACK 6fda4bec3d

Concept ACK 6fda4bec3d87a31116eee6b08243cae0f0f1e3f7
danielabrozzoni (Migrated from github.com) approved these changes 2026-11-17 17:39:39 +00:00
danielabrozzoni (Migrated from github.com) left a comment
ACK 6fda4bec3d87a31116eee6b08243cae0f0f1e3f7
mercie-ux (Migrated from github.com) reviewed 2026-11-17 17:47:10 +00:00
mercie-ux (Migrated from github.com) left a comment

ACK 6fda4be

ACK [6fda4be](https://github.com/bitcoin/bitcoin/pull/36900/commits/6fda4bec3d87a31116eee6b08243cae0f0f1e3f7)
maflcko (Migrated from github.com) reviewed 2026-11-17 18:00:02 +00:00
maflcko (Migrated from github.com) commented 2026-11-17 18:00:02 +00:00

Should this say something about the scope/goal? There are probably 10k-100k mutants for code (e.g. nicer error messages for users), where it is fine to have the code, but the fallback still works and it is probably not worth to have a test for it? E.g. https://github.com/bitcoin/bitcoin/pull/36899/changes

Should this say something about the scope/goal? There are probably 10k-100k mutants for code (e.g. nicer error messages for users), where it is fine to have the code, but the fallback still works and it is probably not worth to have a test for it? E.g. https://github.com/bitcoin/bitcoin/pull/36899/changes
brunoerg (Migrated from github.com) reviewed 2026-11-17 18:09:48 +00:00
brunoerg (Migrated from github.com) commented 2026-11-17 18:09:48 +00:00

We could say that not every mutant is supposed to be killed, many of them are equivalent or unproductive (e.g. mutating log stuff), and people are encouraged to first submit to mutanthub before writing tests (then we can point as useful or not useful). What do you think?

We could say that not every mutant is supposed to be killed, many of them are equivalent or unproductive (e.g. mutating log stuff), and people are encouraged to first submit to mutanthub before writing tests (then we can point as useful or not useful). What do you think?
w0xlt (Migrated from github.com) reviewed 2026-11-17 19:29:17 +00:00
w0xlt (Migrated from github.com) left a comment
ACK 6fda4bec3d87a31116eee6b08243cae0f0f1e3f7
brunoerg (Migrated from github.com) reviewed 2026-11-17 19:32:59 +00:00
brunoerg (Migrated from github.com) commented 2026-11-17 19:32:59 +00:00

Done

Done
brunoerg commented 2026-11-17 19:33:19 +00:00 (Migrated from github.com)
Force-pushed addressing https://github.com/bitcoin/bitcoin/pull/36900#discussion_r4603772024
mercie-ux commented 2026-11-17 20:11:54 +00:00 (Migrated from github.com)

re-ACK 3b46919

re-ACK [3b46919](https://github.com/bitcoin/bitcoin/pull/36900/commits/3b46919fd57671094ae03e34d0b3d8350e819e5e)
danielabrozzoni (Migrated from github.com) approved these changes 2026-11-17 21:41:14 +00:00
danielabrozzoni (Migrated from github.com) left a comment

reACK 3b46919fd5

reACK 3b46919fd57671094ae03e34d0b3d8350e819e5e
nebula-21 (Migrated from github.com) reviewed 2026-11-20 12:40:45 +00:00
nebula-21 (Migrated from github.com) left a comment
ACK 3b46919fd57671094ae03e34d0b3d8350e819e5e
nebula-21 (Migrated from github.com) commented 2026-11-20 12:37:48 +00:00

feel free to ignore this:

the mutant in the commit message and/or in the PR description.
feel free to ignore this: ```suggestion the mutant in the commit message and/or in the PR description. ```
DrahtBot commented 2026-12-02 15:52:51 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36900
No description provided.