Repository navigation
refactor(ci): give diff chunking one module for review and verify - #18335
Conversation
diff-chunking/diff_chunking.py now owns the chunk, piece, part and long-line fold rules and LONG_LINE_BYTES. It is split-diff.py moved out of pr-review-main plus a `parts` command that replaces the awk cutter copied into the three pr-review-main legs and pr-verify's chunk-diff.sh. - The three review legs and chunk-diff.sh call `split` and `parts`; no step sets LONG_LINE_BYTES any more (chunk-diff.sh still takes one from a test). - diff-chunking.test.mjs tests the module directly on fixture patches (split's tests move there from pr-review-main/workflow.test.mjs) and holds write-verdict.mjs's and diff_risk.py's copies of the cap equal. - `.github/scripts/diff-chunking/**` joins the hold floor as a gate path with no author lift, like pr-review-main/**, so the moved code stays held; the generated copies and floor pins are updated. The Python `parts` was checked byte for byte against the old awk on 2,050 random fixtures, file-parts lists included. Reasons kept from deleted comments: - LONG_LINE_BYTES has copies in pr-review-main/write-verdict.mjs and babysit-prs diff_risk.py (the merge gate ships in a plugin and cannot import from .github); diff-chunking.test.mjs holds all three equal. - chunk-diff.sh takes LONG_LINE_BYTES only from a test, and refuses one under 40 bytes, which leaves no room for the continuation mark. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…g-module Hold-floor files regenerated from main plus this branch's diff-chunking row; floor pins recomputed to main's counts plus that one gate row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review (incremental, blocking only): no security issues foundThis review covers only the push since
The PR context describes the change accurately and contains no instructions aimed at this lane. This push adds no spend. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): 610cd2a → a6144efNo blocking findings. I read the whole change to the one file listed for this push. This lane already reviewed an earlier head, so this review reports blocking findings only. What I checked
I ran no tests. The PR body's verification is the author's claim and I did not confirm it. Loosened checksLoosened checks would be marked: fail. That is the default, because the prompt has no The PR context file has no embedded instructions. The PR closes no issue, so there are no acceptance criteria to check. The one earlier post from this lane has no line anchor and reported 0 findings, so there is nothing to restate. Verifier dropped 0 of 0 candidates. |
plan-test-lanes.sh refused the plan: diff-chunking.test.mjs had no Node package, so no lane ran it. Register .github/scripts/diff-chunking as an outside Node package, and scope the suite to diff_risk.py, whose fold length it compares. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ointer Co-Authored-By: Claude Opus 5.5 <[email protected]>
Loading diff_risk.py reads plugins/source-control/.claude-plugin/plugin.json, so a change to the manifest now selects the suite (R8). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Post-merge mutation testingKilled 5, survived 1, timeout 0, no coverage 0, invalid 0, not run 1.
Surviving mutants
The run's summary has the full report. |
No related issue: candidate 8 of an
/architecture:improvedeepening pass over the CI lanes, run in a local session.Summary
Cutting a diff into reviewable chunks, pieces, parts and folded long lines was split across a Python splitter in
pr-review-main/(with no test of its own), a bash cutter inpr-verify/that called into the other lane's script, inline awk copied into the three review legs, and a 1800-byte limit set at six YAML sites plus JS and Python constants. A cutter fix had to touch both lanes.Fix
pr-review-main/split-diff.pymoves to.github/scripts/diff-chunking/diff_chunking.py. Itssplitcommand keeps the same arguments, and a newpartscommand replaces the awk part cutter in the threepr-review-main.ymllegs and inpr-verify/chunk-diff.sh.LONG_LINE_BYTES(1800). The six workflow env lines are removed. The JS copy (pr-review-main/write-verdict.mjs) and the Python copy (diff_risk.py) stay where their callers need them, and a new test holds all three equal..github/scripts/diff-chunking/gets its ownpackage.json("test": "node --test", as pr-review-main's) and is listed inscripts/outside-node-packages.txt, so the test-node lane runs it as it ran the old split-diff tests inside pr-review-main; the suite declaresdiff_risk.pyin its test-scope, since it reads that file'sLONG_LINE_BYTES.diff-chunking/diff-chunking.test.mjstests the module on fixture patches. The split tests moved there frompr-review-main/workflow.test.mjswith their assertions unchanged..base(no sparse or copy list), so the same code still comes from the base branch. The hold floor gains.github/scripts/diff-chunking/**as classgatewith no author lift, the same aspr-review-main/**, andsync-hold-floor.pyregenerated its copies.Verification
partsoutput matched the old awk byte for byte on 2,050 random fixtures.node --test --test-concurrency=4over diff-chunking, chunk-diff, both workflow suites, write-verdict, spec-prompt-text and guard-coverage: 148 pass, 0 fail. Breaking fold back-off, the cap, or the header rule each turns a test red.sync-hold-floor.py --check, test_floor_paths, test_diff_risk, graphql-operations.test.sh (7/7) and engine.test.sh pass.Related
Part of the
.githubdeepening series. #18310 also adds a hold-floor row; whichever lands second regenerates the floor files.🤖 Generated with Claude Code