Repository navigation
fix(source-control): count a no-patch text file the review lanes read from the git diff as reviewed - #18174
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
|
Unattended merge: native auto-merge leaves this pull request unarmed at head |
|
claude-review reviewed Code review: PR #18174 (head 59b3f14)The change adds
The pr-merge gate job checks out with
Closing issue #18166
Loosened checks. The Other notes
Verifier dropped 0 of 2 candidates. No verifier subagent ran; I checked both candidates inline against the head source. |
|
claude-security-review reviewed Security review: no security issues foundThis PR narrows the merge gate's What I checked
No tokens, secrets, trusted actors, workflow permissions or billable resources are touched. The critical-findings: 0 |
Lane run report
Run 45043144650, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
pr-unblock / address-feedback finished round 1 of max 4 on 59b3f14. |
Lane run report
Run 45043144650, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
The unattended merge path is about to arm native auto-merge at head |
|
Merge-Risk: max=HIGH demote=true head=59b3f14c55296be1c1f2cdaeb5586a66e4a4313b rubric=10.7.0 rater=claude-opus-5-5 checker=claude-opus-5-5 |
|
The post-merge check verified merge commit |
Closes #18166
Summary
Opened by the work-resolve-issue lane. The run's own summary:
Not verified
--attr-source. On a git without it, the read fails closed:diff_readstays False, the hold is kept as before, and the new merge-policy test's True case would fail on CI.git diff --text. I did not observe it on a live PR here.Fix
ChangedFile.diff_read: bool = False._size_reasonstreats a no-patch file whosediff_read is Trueasno-patch:<path>MED, notunreviewed-patch:<path>HIGH; any other value keeps the hold. Added a…_diff_read(base_sha, head, path), which runs `git --attr-source=<empty tree> -c core.attributesFile=/dev/null diff --numstat --no-renames --no-ext-diff --no-textconv <base>...<head> --…no-patch:MED), the no-read case (hold kept for False, None, "true" and 1), and a path listed twice (holds unless both entries were read).diff_readTrue, a NUL-byte file False, a file with a patch False, and a base missing from the clone False. The…no-patch:, and what still holds asunreviewed-patch:.Verification
The runner ran each check from the base copy against 59b3f14:
The run reports:
#is a# fmt: skipdirective. It raised four points. Three are fixed: the attribute source is neutralized, media paths skip the git…git diff --no-color --no-ext-diff --no-textconv --text --find-renames, with no cap on its size and no per-line length limit. Only declared generated-data files…--attr-source=<tree-ish>reads gitattributes from <tree-ish> instead of the worktree.diffunspecified, git inspects the content and treats the file as text if it looks like text and is under core.bigFileThreshold;core.attributesFileis the per-user attributes file; a setdiffattribute makes even NUL-byte content text.--numstatprints two-for a binary file instead of0 0; without -z, unusual pathnames are quoted.Left out: the items under Not verified.
Related
#18166
Follow-ups
**Advisory: the attribute-neutralizing guard has no test that could fail.**(thread)**Advisory: one clone discovery and one 'git diff' per no-patch file, including files that need neither.**(thread)