fix(quality): let check-forgotten-sibling-tests read a 1,000-file diff

The gate shells out to `git diff` through execFileSync with Node's default 1 MB
maxBuffer; the 1,292-file codemod in this PR is the first diff large enough to
overflow it, and the gate died with `spawnSync git ENOBUFS` before comparing
anything. 64 MB is far above any real PR and costs nothing when unused.
This commit is contained in:
diegosouzapw
2026-08-29 00:31:09 -03:00
parent 37ecab3659
commit dbcbffc7bc

View File

@@ -173,7 +173,7 @@ function arg(name, fallback = "") {
}
function git(root, args) {
return execFileSync("git", args, { cwd: root, encoding: "utf8" });
return execFileSync("git", args, { cwd: root, encoding: "utf8", maxBuffer: 64 * 1024 * 1024 });
}
function changedEntries(root, base) {