doc: Clarify that scripted-diffs should be reviewed #37074

Open
maflcko wants to merge 1 commit from 2612-doc-scripted-diffs into master AGit
maflcko commented 2026-12-02 20:31:18 +00:00 (Migrated from github.com)

Reviewers may close one (or both) eyes when they see a scripted-diff, but the intention is that such scripts increase confidence in the change, because the change can be reviewed from two angles: The script and the diff.

So clarify that, which should close https://github.com/bitcoin/bitcoin/issues/35275.

Also, compress the two paragraphs explaining that git grep -l should be used into a single one.

Reviewers may close one (or both) eyes when they see a scripted-diff, but the intention is that such scripts increase confidence in the change, because the change can be reviewed from two angles: The script and the diff. So clarify that, which should close https://github.com/bitcoin/bitcoin/issues/35275. Also, compress the two paragraphs explaining that `git grep -l` should be used into a single one.
DrahtBot commented 2026-12-02 20:31:28 +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 m3dwards, rkrux, sedited
Concept ACK l0rinc

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

<!--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/37074 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/37074.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/37074#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 | [m3dwards](https://github.com/bitcoin/bitcoin/pull/37074#issuecomment-7386324322), [rkrux](https://github.com/bitcoin/bitcoin/pull/37074#pullrequestreview-6190136122), [sedited](https://github.com/bitcoin/bitcoin/pull/37074#pullrequestreview-6192628751) | | Concept ACK | [l0rinc](https://github.com/bitcoin/bitcoin/pull/37074#issuecomment-7359483014) | 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. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

I found no actionable issues in this static review.


Reviewed: fa5ea9e4f2e8 · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:e1a29e5e677c47d383756f0fcf8f3760725c91d1104dd3ccb2f333b6217eba26:47880f5569fd2047d249266f337c4f2a509adf7d96c3ccb1c7644c2c2a650bff --> <!-- ralph-base:8e5a5a25dad4744219c579589231feff3f0b6d47 --> <!-- ralph-head:fa5ea9e4f2e8aa0f9a57d18904b47773600c2e77 --> <!-- ralph-case:d4c94f6874d37b55df41893fa0fd2ff60b2d2298776f811c216553620c7fd9f0 --> I found no actionable issues in this static review. <!-- Review tier: sensitive --> --- Reviewed: [`fa5ea9e4f2e8`](<https://git.fish.foo/bitcoin/bitcoin/commit/fa5ea9e4f2e8aa0f9a57d18904b47773600c2e77>) · [Review report](<https://review.fish.foo/report/37074-fa5ea9e4f2e8aa0f9a57d18904b47773600c2e77-3453-1.html>) · [Previous reports](<https://review.fish.foo/traces/37074/>) [permalink](<https://review.fish.foo/report/37074-fa5ea9e4f2e8aa0f9a57d18904b47773600c2e77-3453-1.html>)
l0rinc commented 2026-12-02 21:34:54 +00:00 (Migrated from github.com)

Concept ACK

I find the text a bit hard to read though: I don't see it as two angles, but as reviewing both the tool and the result manually.
I also often add a negative check at the beginning of the script for replaces, to make sure the target name doesn't exist yet. We could add it here as an option.

Concept ACK I find the text a bit hard to read though: I don't see it as two angles, but as reviewing both the tool and the result manually. I also often add a negative check at the beginning of the script for replaces, to make sure the target name doesn't exist yet. We could add it here as an option.
DrahtBot commented 2026-12-02 21:50:31 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task macOS native: https://github.com/bitcoin/bitcoin/actions/runs/46964270677/job/143760651550
LLM reason (✨ experimental): intermittent_network: Homebrew dependency downloads failed because the runner could not resolve ghcr.io.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • Intermittent network issues can occur; re-run CI for now, and report the issue if they keep happening.

  • A functional or integration test failure may be intermittent or unrelated to this pull request.
    If no dedicated issue thread exists, create a new one to track it.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `macOS native`: https://github.com/bitcoin/bitcoin/actions/runs/46964270677/job/143760651550</sub> <sub>LLM reason (✨ experimental): intermittent_network: Homebrew dependency downloads failed because the runner could not resolve ghcr.io.</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * Intermittent network issues can occur; re-run CI for now, and report the issue if they keep happening. * A functional or integration test failure may be intermittent or unrelated to this pull request. If no dedicated issue thread exists, create a new one to track it. Leave a comment here, if you need help tracking down a confusing failure. </details>
maflcko commented 2026-12-03 07:16:17 +00:00 (Migrated from github.com)

I find the text a bit hard to read though: I don't see it as two angles, but as reviewing both the tool and the result manually.

happy to push any other wording, if you have an inline suggestion. I just mean "two angles", or "two lenses" or "two differing points of view".

I also often add a negative check at the beginning of the script for replaces, to make sure the target name doesn't exist yet. We could add it here as an option.

They seem fine, but I am not sure if they should be generally recommended, when compile or runtime errors already cover them. The only application could be when there are possible shadowing concerns.

> I find the text a bit hard to read though: I don't see it as two angles, but as reviewing both the tool and the result manually. happy to push any other wording, if you have an inline suggestion. I just mean "two angles", or "two lenses" or "two differing points of view". > I also often add a negative check at the beginning of the script for replaces, to make sure the target name doesn't exist yet. We could add it here as an option. They seem fine, but I am not sure if they should be generally recommended, when compile or runtime errors already cover them. The only application could be when there are possible shadowing concerns.
m3dwards commented 2026-12-03 17:19:25 +00:00 (Migrated from github.com)

LGTM

For #35275 I think the key line that has been added is "Reviewers should reject a script which is too complicated".

ACK fa5ea9e4f2

LGTM For #35275 I think the key line that has been added is "Reviewers should reject a script which is too complicated". ACK fa5ea9e4f2e8aa0f9a57d18904b47773600c2e77
rkrux (Migrated from github.com) approved these changes 2026-12-04 13:50:50 +00:00
rkrux (Migrated from github.com) left a comment

lgtm ACK fa5ea9e4f2

lgtm ACK fa5ea9e4f2e8aa0f9a57d18904b47773600c2e77
sedited (Migrated from github.com) approved these changes 2026-12-04 16:26:08 +00:00
sedited (Migrated from github.com) left a comment
ACK fa5ea9e4f2e8aa0f9a57d18904b47773600c2e77
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!37074
No description provided.