Repository navigation
test: keep large payloads out of mutant test output - #51
Merged
Merged
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The log carries the output of escaped and timed-out mutants; keeping it after a failed or cancelled run lets the next memory or timeout problem be diagnosed without rerunning. Assisted-By: Claude Opus 5.5
Infection keeps every mutant's test output in memory for the Stryker report. The 65 MB echo tests put the payload there twice over: a ServiceException quotes the whole response body, and a mutant that makes Relay::create() pick the STDIN/STDOUT pipes writes the request to the process's own stdout. Five mutants produced 2.6 GB of the 2.65 GB captured output. Assisted-By: Claude Opus 5.5
roxblnfk
force-pushed
the
test/infection-memory
branch
3 times, most recently
from
October 12, 2026 12:20
1a032b7 to
c450e6e
Compare
roxblnfk
marked this pull request as ready for review
October 12, 2026 12:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔍 What was changed
testLongRawBody,testLongRawBodyAsync) no longer let the payload reach a test failure: aServiceExceptionraised during the call is rethrown with its message cut to 512 bytes, and the MultiRPC variants build their relay pool fromSocketRelays instead of a connection string.runtime/infection.logas an artifact, also for failed or cancelled runs.Why?
AbstractRPC.php:63(IfNegation),Frame.php:108(IncrementInteger) andFrame.php:156(DecrementInteger, BitwiseAnd) turn the echoed response into aServiceExceptionthat quotes the whole body;Relay.php:28(Identical) makesRelay::create()return the STDIN/STDOUT relay, so the request is written to the test process's own stdout.--log-verbosity=all, 0.11 GB with the default verbosity. Escaped mutants and Covered MSI are unchanged (41, 91%).Checklist
testLongRawBodyoutput 302 MB → 12 KB4.x, to be checked after merge