Skip to content

Retain non-fatal PHPUnit bootstrap exits#1932

Merged
chubes4 merged 1 commit into
mainfrom
fix/1916-bootstrap-termination-diagnostics
Jul 21, 2026
Merged

Retain non-fatal PHPUnit bootstrap exits#1932
chubes4 merged 1 commit into
mainfrom
fix/1916-bootstrap-termination-diagnostics

Conversation

@chubes4

@chubes4 chubes4 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • treat wp-load.php as an explicit completion boundary for PHPUnit commands
  • buffer and persist bounded output when bootstrap terminates via die() or exit() without a PHP fatal
  • preserve existing output after successful bootstrap
  • extend the real Playground integration with an exit(1) MU-plugin fixture

Root cause

#1918 recorded only fatal error_get_last() types. Intelligence CI terminates before wp-load.php returns without a fatal payload, so the recorder returned without writing and downstream diagnostics remained empty even on current WP Codebox main.

Verification

  • npm run build
  • npm run test:phpunit-runtime-failure-diagnostics
  • npm run test:playground-phpunit-bootstrap-failure-integration
  • git diff --check

Fixes #1916

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.

Preserve diagnostics when wordpress.phpunit crashes in Playground

1 participant