Skip to content

fix(ci): give the deny-rules test's ls-files call a 64 MiB buffer - #11161

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/deny-rules-test-enobufs
Oct 30, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/deny-rules-test-enobufs

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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 maxBuffer for execFileSync. deny-rules.test.mjs:78 reads that list with git ls-files, so it throws spawnSync git ENOBUFS on every run. It fails on main and on every pull request's test-node job.

Fix

Give that call maxBuffer: 64 * 1024 * 1024, the value select-plugins.mjs:431 already uses for its repository-scaled git call. A git grep of every execFileSync, spawnSync and execSync git call whose output scales with the repository found no other call without a buffer.

Verification

  • node --test .github/scripts/apply-patch/deny-rules.test.mjs before the fix: 1 of 5 fail, Error: spawnSync git ENOBUFS.
  • After the fix: 5 of 5 pass.

Related

  • Main-red fix: it goes to the merge queue first (R70).

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 30, 2026 00:42
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]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 30, 2026 05:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T05:26:29.716347Z b7b2806 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed b7b2806f4cfa6a5b7230573d4354364b2f0fc330: 0 finding(s), 0 as inline comments.

No security issues found.

The only change is one line in .github/scripts/apply-patch/deny-rules.test.mjs. It adds maxBuffer: 64 * 1024 * 1024 to the test's git ls-files call, so the call stops failing with ENOBUFS.

  • The file is a test. It isn't in the TRUSTED PATHS list: the apply-patch entries there are apply-patch.mjs, predicates.mjs, protected-paths.mjs and retry-fetch.mjs.
  • The diff touches no production code, no deny rule, no token scope, no trust control and no merge hold. The test only reads the tracked-file list to check denyRules() output.
  • The command and its arguments are fixed. No untrusted input reaches the call.
  • The buffer is a size limit on local output, so it can't bill anything.
  • The PR description is plain data. It holds no embedded instructions.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed b7b2806f4cfa6a5b7230573d4354364b2f0fc330: 0 finding(s), 0 as inline comments.

No findings. The pull request changes one line in .github/scripts/apply-patch/deny-rules.test.mjs (line 78). It adds maxBuffer: 64 * 1024 * 1024 to the git ls-files call, so the call no longer hits Node's 1 MiB default execFileSync limit and fails with ENOBUFS.

  • Correctness: The change is test-only. It fixes the stated ENOBUFS failure and leaves what the test asserts unchanged. The buffer is far above the roughly 1 MiB listing, so there is room for the repository to grow.
  • Trusted paths: The changed file is not on the trusted-path list. The lane's apply-patch entries are apply-patch.mjs, predicates.mjs, protected-paths.mjs and retry-fetch.mjs, not this test.
  • Closing issue: There is none, and the PR states no acceptance criteria to check.
  • Verification: The before and after test results in the PR description are author-claimed. I did not run them. I also did not check the claim that select-plugins.mjs:431 uses the same buffer value, or the claim that no other git call lacks a buffer.
  • Cost and security: Nothing in the change can start a real charge, and I found no security concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant