Repository navigation
fix(phpunit): support PHPUnit process isolation in the PHPUnit runtime - #2624
Merged
Merged
Conversation
chubes4
marked this pull request as ready for review
December 3, 2026 03:08
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
Fixes #2623.
wordpress.phpunitruns through Playground 3.1.46’s php-wasmPHP.run()request SAPI. It reportsPHP_SAPI=clibut leavesPHP_BINARYempty, so PHPUnit cannot launch a child the way it does under native PHP CLI. The fix routes isolation jobs to fresh sandbox PHP workers that share the parent’s filesystem. Compatibility: Additive.What changed
Verification
All gates passed on
3bde54c. Basemain@0d280abunchanged.HOMEBOY_LINT_BASE=0d280ab7315802ccdd72de3c6862cfe7d0dc5255 homeboy --placement local review lint wp-codebox --path . --…: passed, 68992 ms; retained gate metadata.npm run build: passed, 494 ms; retained gate metadata.npx tsx --test tests/phpunit-discovery-only.test.ts tests/phpunit-project-autoload.test.ts: passed, 1865 ms; retained gate evidence.Gate 3 output
Cook run
agent-task-1b31b37d-a47c-4cbd-b589-d8cb9588f73bagent-task-1b31b37d-a47c-4cbd-b589-d8cb9588f73b-attempt-1-c3408821ec2a6c3b0b5085724079348fd12f636db3bd6012ec2a6c3b0b5085724079348fd12f636db3bd6012ec2a6c3b0b5085724079348fd12f636db3bd6012Evidence
recipe build phpunit→recipe-run: main finished all three tests but failed the isolated test with “Test was run in child process and ended unexpectedly.” Candidate passed all three, with three assertions and no failures or errors.npm run buildandgit diff --checkpassed. All 16 focused checks ran and passed with no skips. Local Homeboy lint did not run because dependency setup could not load thenodejsextension. Changes remain uncommitted; Homeboy owns the deterministic gates and PR creation.AI disclosure
Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served gpt-6.2-sol. Cook time: 1h32m.
AI traced the Playground runtime and SAPI, implemented process isolation for WordPress plugin suites, and verified the fix with managed and project-installed PHPUnit, under the direction of the Cook requester. Homeboy reports controller verification separately from this account of the AI's work. A human reviews before merge.
Refs #2623