Skip to content

Lift PHP's memory limit for the test suite as CI's setup-php does, so php artisan test finishes on a stock php.ini - #234

Open
sulimanbenhalim wants to merge 1 commit into
NativePHP:mainfrom
sulimanbenhalim:fix/test-memory-limit
Open

sulimanbenhalim wants to merge 1 commit into
NativePHP:mainfrom
sulimanbenhalim:fix/test-memory-limit

Conversation

@sulimanbenhalim

Copy link
Copy Markdown
Contributor

php artisan test the way CONTRIBUTING says to run it dies partway through with Allowed memory size of 268435456 bytes exhausted on a 256M memory_limit and stock PHP ships 128M
a serial run peaks around 400MB here (/usr/bin/time -l says 403MB max resident for the 2409 tests) and php artisan test --parallel dies the same way

CI never sees it since shivammathur/setup-php puts memory_limit=-1 in its own php.ini

this sets the same in phpunit.xml so both pass with no flags on a stock php.ini (2409 passed each way)

Screenshots

  • No visible change

… php artisan test finishes on a stock php.ini
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