Files
ruvnet__ruflo/scripts/smoke-github-safe-injection.mjs
ruv 4327ec9ffa fix(smoke): #2089 — accept E2BIG as valid rejection in github-safe injection smoke
The >256KB rejection case fails on Linux CI because Linux's
MAX_ARG_STRLEN (128 KiB per argv element on most kernels) trips
before the helper's own size cap fires. spawnSync returns
status=null with error.code='E2BIG' instead of status=1.

Local macOS development passes because Mach's per-arg limit is
~1 MiB so the helper's cap is what fires. The smoke now accepts
either path — the assertion is "rejected before gh is invoked,"
and E2BIG satisfies that even more strongly (the body cannot
reach exec at all).

Co-Authored-By: RuFlo <ruflo-bot@users.noreply.github.com>
2026-05-21 14:23:31 -04:00

7.8 KiB