Repository navigation
fix(phpunit): boot the WP test library in isolated children and keep the run alive on child failure - #2627
Merged
Conversation
…the run alive on child failure
chubes4
marked this pull request as ready for review
December 3, 2026 05:09
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 #2626. On main, the PHPUnit 12 fixture stalled when an isolated child opened the shared WordPress database. With this change, both isolated data sets pass against the already-installed site, and fatal or empty children are reported as test errors without stopping the suite.
What changed
Verification
All gates passed on
90bf20e. Basemain@aa8f67badvanced to37680a2(base_behind_by: 1; rebase onto the current base before merging).HOMEBOY_LINT_BASE=aa8f67b8e226f158a6594b9dcd460cc1cc9995f1 homeboy --placement local review lint wp-codebox --path . --…: passed, 99051 ms; retained gate metadata.npm run build: passed, 942 ms; retained gate metadata.npx tsx --test tests/phpunit-discovery-only.test.ts tests/phpunit-project-autoload.test.ts: passed, 1445 ms; retained gate metadata.Cook run
agent-task-31068eff-4da3-41cf-b713-b2933c2a2469agent-task-31068eff-4da3-41cf-b713-b2933c2a2469-attempt-1-55a96fb38a2c760793400730ada112775d722f61428eba948a2c760793400730ada112775d722f61428eba948a2c760793400730ada112775d722f61428eba94Evidence
AI disclosure
Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served gpt-6.2-sol. Cook time: 1h10m.
The AI traced the bootstrap and event failures, implemented the fixes, and verified them with real PHPUnit runs in Playground, 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 #2626