Fix managed multisite PHPUnit composition#2106
Open
chubes4 wants to merge 4 commits into
Open
Conversation
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
Root Cause
The managed runner defined
MULTISITEbefore wp-phpunit's installer could create and seed network tables. WordPress therefore queriedblogsandsitemetaduring bootstrap before those tables existed. Separately, prepared extra plugins were mounted but omitted from explicit staged-input materialization, so sibling dependencies were not guaranteed to exist inside Playground.Implementation
install.phpwithrun_ms_testsin a separate preinstall invocation that excludes current-network constants.materializeStagedInputs()without consumer-specific knowledge.Verification
npm run buildnpx tsx tests/phpunit-project-autoload.test.tsnpm run test:recipe-runtime-setup-staged-materializationnpm run test:playground-phpunit-readonly-cache-integrationnpm run checkpassed production-boundary enforcement, build, and generic primitives before stopping at the existing main-branchcommand-registry-smokefailure:wordpress.collect-workload-result outputShape should mention outputSchema idnpm run test:disposable-mysql-mysqli-e2eskipped because Docker is unavailable locally; CI provides the decisive MySQL coveragegit diff --checkFixes #2056