From 4cbc294d9d91d57423f2d3fbae19c76d9d8d21c7 Mon Sep 17 00:00:00 2001 From: Mark Shust Date: Wed, 3 Jun 2026 10:19:16 -0400 Subject: [PATCH] fix: raise memory_limit in composer test scripts The default PHP CLI memory_limit (128M) is insufficient for Pest's parallel test discovery across all 90+ Marko packages, causing `composer test` to die with "Allowed memory size of 134217728 bytes exhausted" before any test runs. Wrap the test/test:all scripts with `php -d memory_limit=2G` so they work out of the box on default PHP installs. Co-Authored-By: Claude Opus 4.7 (1M context) --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a7fa3aa7..7f22c1c5 100644 --- a/composer.json +++ b/composer.json @@ -490,8 +490,8 @@ "squizlabs/php_codesniffer": "^4.0" }, "scripts": { - "test": "pest -c phpunit.xml --parallel --exclude-group=integration-destructive", - "test:all": "pest -c phpunit.xml --parallel", + "test": "php -d memory_limit=2G vendor/bin/pest -c phpunit.xml --parallel --exclude-group=integration-destructive", + "test:all": "php -d memory_limit=2G vendor/bin/pest -c phpunit.xml --parallel", "cs:check": "phpcs --standard=phpcs.xml", "cs:fix": [ "php-cs-fixer fix --config=.php-cs-fixer.php",