Retain PHPUnit bootstrap failure diagnostics#1918
Merged
Merged
Conversation
This was referenced Jul 21, 2026
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.
Summary
Complete #1916 by registering persisted PHPUnit fatal diagnostics before
wp-load.php, then attaching those redacted, bounded diagnostics when Playground returns a nonzero or worker failure with empty stdout, stderr, and body.This follows #1917 after post-merge verification showed that the worker envelope was preserved but the underlying PHP bootstrap failure remained unavailable.
Closes #1916.
What changed
wp-load.phpand verifies caller JSON plus persisted artifacts.How to test
npm cifrom a fresh checkout.npm run build.npm run test:playground-phpunit-bootstrap-failure-integrationand confirm the actual Playground bootstrap-fatal recipe passes its diagnostic assertions.npm run test:phpunit-runtime-failure-diagnostics.npm run test:redaction.npx tsx tests/phpunit-project-autoload.test.ts.Backwards compatibility
This is additive failure-diagnostic behavior. Successful command results, public command inputs, recipe schemas, and artifact locations are unchanged. Failed PHPUnit commands now include redacted persisted bootstrap diagnostics when native Playground response fields are empty.
AI assistance