From eab2ac53a76ee8d47a5c291e2205ec63f5d1ac4d Mon Sep 17 00:00:00 2001 From: Mark Shust Date: Wed, 3 Jun 2026 10:24:42 -0400 Subject: [PATCH] fix: raise memory_limit in IntegrationVerificationTest pest subprocesses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IntegrationVerificationTest spawns pest as a subprocess (via exec) to verify the suite still runs after a destructive composer reinstall and to assert no fatal PHP errors surface in the output. Those subprocesses inherit the default CLI memory_limit (128M), so paratest's parallel suite loader exhausts memory mid-run — which the assertion at tests/IntegrationVerificationTest.php:171 then catches as a "PHP Fatal error" in the captured output, failing the release. Pass `-d memory_limit=2G` to both pest invocations (lines 109 and 162), mirroring the fix in #107 / #108. Co-Authored-By: Claude Opus 4.7 (1M context) --- tests/IntegrationVerificationTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/IntegrationVerificationTest.php b/tests/IntegrationVerificationTest.php index 3fc41d95..d7e7416c 100644 --- a/tests/IntegrationVerificationTest.php +++ b/tests/IntegrationVerificationTest.php @@ -106,7 +106,7 @@ function copyTree(string $source, string $destination): void // Step 3: Run test suite (exclude destructive group to avoid recursion) exec( - 'cd ' . escapeshellarg($root) . ' && ' . $php . ' vendor/bin/pest --parallel --exclude-group=integration-destructive 2>&1', + 'cd ' . escapeshellarg($root) . ' && ' . $php . ' -d memory_limit=2G vendor/bin/pest --parallel --exclude-group=integration-destructive 2>&1', $testOutput, $testExit, ); @@ -159,7 +159,7 @@ function copyTree(string $source, string $destination): void exec( 'cd ' . escapeshellarg( $root - ) . ' && ' . $php . ' vendor/bin/pest --parallel --exclude-group=integration-destructive 2>&1', + ) . ' && ' . $php . ' -d memory_limit=2G vendor/bin/pest --parallel --exclude-group=integration-destructive 2>&1', $output, $exitCode, );