From a45100418d25e6c088494a08dc0c1b955ceb2824 Mon Sep 17 00:00:00 2001 From: Yasyf Mohamedali Date: Wed, 2 Sep 2026 14:42:18 -0700 Subject: [PATCH] Fix ARG_MAX overflow in stderr blob test on Linux CI A 200,000-byte literal in argv exceeds ARG_MAX on a Linux runner whose inherited environment is already large, so execve fails E2BIG before the stderr drain under test ever runs. The child generates the blob instead; the assertions are unchanged. Claude-Session: https://claude.ai/code/session_014gKfZvjihGgFrEVCr3NJJb Claude-Session-Id: 2eb2d69e-c564-4401-84fb-d22d217b5ff7 --- tests/test_proc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_proc.py b/tests/test_proc.py index b32e866..728882c 100644 --- a/tests/test_proc.py +++ b/tests/test_proc.py @@ -127,7 +127,7 @@ async def test_stderr_newline_free_blob_past_64k(self) -> None: # not dropped to a LimitOverrunError mid-drain. blob = "e" * 200_000 seen: list[bytes] = [] - argv = [sys.executable, "-c", f"import sys; sys.stderr.write({blob!r}); sys.exit(4)"] + argv = [sys.executable, "-c", "import sys; sys.stderr.write('e' * 200_000); sys.exit(4)"] with pytest.raises(subprocess.CalledProcessError) as exc: await arun_cli(argv, stderr_tee=seen.append) assert exc.value.returncode == 4