Fix PHPUnit WASM runtime rejection handling#2011
Merged
Merged
Conversation
This was referenced Jul 24, 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
wordpress.phpunitcommands when PHP WASM emits an unhandled runtime rejectionFixes #2010.
Unblocks Extra-Chill/data-machine#2991.
Evidence
The consumer failed twice with the same PHP 8.3 WASM
mysqli_pollrejection and 1,500,000 ms recipe timeout:Verification
Passed:
npm run buildnpm run test:phpunit-runtime-rejectionnpm run test:playground-phpunit-readonly-cache-integrationnpm run test:php-wasm-extension-manifestsPre-existing failures observed outside the changed path:
npm run test:phpunit-runtime-failure-diagnosticsexpects a bootstrap wrapper source shape that currentorigin/mainno longer emits forbootstrap=runtime-only; this test and relevant source are unchanged by this PR.npm run test:playground-phpunit-bootstrap-failure-integrationfails before its intended assertion because its fixture directory is not mounted:cwd is not a readable sandbox directory: /wordpress/wp-content/plugins/bootstrap-failure-fixture.AI assistance
OpenCode using
openai/gpt-5.6-solinvestigated the linked CI evidence, drafted the runtime rejection handler and regression test, identified and corrected the abort-order race, and ran the verification commands. Chris Huber reviewed and remains responsible for the submitted changes.