Skip to content

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

Open
maflcko wants to merge 1 commit into
bitcoin:masterfrom
maflcko:2612-doc-scripted-diffs
Open

maflcko wants to merge 1 commit into
bitcoin:masterfrom
maflcko:2612-doc-scripted-diffs

Conversation

@maflcko

@maflcko maflcko commented Dec 2, 2026

Copy link
Copy Markdown
Member

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 #35275.

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

@DrahtBot DrahtBot added the Docs label Dec 2, 2026
@DrahtBot

DrahtBot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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.

@l0rinc

l0rinc commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

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

DrahtBot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

🚧 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.

@maflcko

maflcko commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

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.

@DrahtBot DrahtBot removed the CI failed label Dec 3, 2026
@m3dwards

m3dwards commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

LGTM

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

ACK fa5ea9e

@DrahtBot
DrahtBot requested a review from l0rinc December 3, 2026 17:19

@rkrux rkrux 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.

lgtm ACK fa5ea9e

@sedited sedited 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.

ACK fa5ea9e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scripted-diff: structural risk in the eval-based verifier

6 participants