From dbcbffc7bc068ef38ac1e1e7d4808d83294d2a93 Mon Sep 17 00:00:00 2001 From: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> Date: Sat, 29 Aug 2026 00:31:09 -0300 Subject: [PATCH] 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. --- scripts/check/check-forgotten-sibling-tests.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check/check-forgotten-sibling-tests.mjs b/scripts/check/check-forgotten-sibling-tests.mjs index bc9dd7ba4d..6707fc8aa8 100644 --- a/scripts/check/check-forgotten-sibling-tests.mjs +++ b/scripts/check/check-forgotten-sibling-tests.mjs @@ -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) {