fix: preinstall native multisite PHPUnit state - #2494
Draft
chubes4 wants to merge 5 commits into
Draft
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
Managed wordpress.phpunit multisite preinstall now supports MySQL and mdi-native canonical state.
References Automattic/markdown-database-integration#377.
Root Cause
Native preinstall created canonical state, but the follow-up boot omitted the wp-phpunit installation context. The MDI drop-in then terminated with Error establishing a database connection. The follow-up boot now defines WP_INSTALLING and DISABLE_WP_CRON and loads wp-phpunit functions. Persisted PREINSTALL progress markers bound future installer failures.
Final Exact-Head Verification
CI Status
At final inspection: workflow-lint, fast contracts, and package check passed; browser and integration were pending.
AI assistance
OpenAI GPT-6 Astra (openai/gpt-6-astra) via OpenCode implemented the original backend-neutral preinstall gate. OpenAI GPT-5.6 Terra (openai/gpt-5.6-terra) via OpenCode reproduced and diagnosed the native Playground failure, implemented the boot-context repair, and ran fresh exact-head verification.
DME Pair Evidence (homeboy-lab)