Repository navigation
fix(ci): give the deny-rules test's ls-files call a 64 MiB buffer - #11161
Conversation
The tracked-file list passed Node's 1 MiB execFileSync default (1,049,497 bytes after #11133), so the test threw spawnSync git ENOBUFS on every run and turned main and every PR's test-node red. 64 MiB matches select-plugins.mjs's repo-scaled git call. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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 No security issues found. The only change is one line in
critical-findings: 0 |
|
claude-review reviewed No findings. The pull request changes one line in
|
No related issue: main went red at 04:40Z (pr-require-checks run 41002620831, test-node failed on both attempts), and this restores it.
Summary
After #11133 the repository's tracked-file list is 1,049,497 bytes, just past Node's 1 MiB default
maxBufferforexecFileSync.deny-rules.test.mjs:78reads that list withgit ls-files, so it throwsspawnSync git ENOBUFSon every run. It fails on main and on every pull request's test-node job.Fix
Give that call
maxBuffer: 64 * 1024 * 1024, the valueselect-plugins.mjs:431already uses for its repository-scaled git call. Agit grepof everyexecFileSync,spawnSyncandexecSyncgit call whose output scales with the repository found no other call without a buffer.Verification
node --test .github/scripts/apply-patch/deny-rules.test.mjsbefore the fix: 1 of 5 fail,Error: spawnSync git ENOBUFS.Related
🤖 Generated with Claude Code