Skip to content

fix: raise memory_limit in IntegrationVerificationTest pest subprocesses#109

Merged
markshust merged 1 commit into
developfrom
feature/integration-test-memory-limit
Jun 3, 2026
Merged

fix: raise memory_limit in IntegrationVerificationTest pest subprocesses#109
markshust merged 1 commit into
developfrom
feature/integration-test-memory-limit

Conversation

@markshust
Copy link
Copy Markdown
Collaborator

Summary

  • IntegrationVerificationTest spawns pest as a subprocess via exec() to verify the suite still runs after a destructive composer update and to assert the captured output contains no fatal PHP errors.
  • Those subprocesses inherited the default CLI memory_limit=128M, so paratest's parallel suite loader ran out of memory mid-run. The not->toContain('PHP Fatal error') assertion at tests/IntegrationVerificationTest.php:171 then failed the release.
  • Pass -d memory_limit=2G to both pest invocations (lines 109 and 162), completing the trio with fix: raise memory_limit in composer test scripts #107 (composer scripts) and fix: raise memory_limit in release.sh test invocation #108 (release.sh).

Test plan

  • Locally: php -d memory_limit=2G vendor/bin/pest --filter "runs the full test suite and all tests pass" → passes in ~6s.
  • ./bin/release.sh <version> clears the test gate.

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@markshust markshust merged commit 22900b7 into develop Jun 3, 2026
@markshust markshust deleted the feature/integration-test-memory-limit branch June 3, 2026 14:25
@github-actions github-actions Bot added the bug Something isn't working label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant