Repository navigation
Build/Test Tools: Run the smoke check on multisite installations - #16355
adimoldovan wants to merge 3 commits into
Conversation
Requests keep the installed host name, `localhost`, so a network finds its main site. A new check loads the network admin. The workflows load the action from their own commit, so a pull request runs its own copy.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified for the multisite smoke-check changes.
No open issues 🎉
What changed in this PR
Extends installation and upgrade smoke checks to WordPress multisite networks while preserving the installed localhost URL.
Changes:
- Routes HTTP requests to the local PHP server without rewriting site URLs and adds a network-admin check.
- Enables smoke checks for multisite jobs and uses workflow-relative action references.
- Triggers upgrade workflows when the smoke-check action changes and updates its description.
| File | Description |
|---|---|
.github/workflows/upgrade-testing.yml |
Triggers upgrade tests for smoke-check action changes. |
.github/workflows/upgrade-develop-testing.yml |
Triggers develop upgrade tests for smoke-check action changes. |
.github/workflows/reusable-upgrade-testing.yml |
Enables multisite smoke checks using a workflow-relative action reference. |
.github/workflows/install-testing.yml |
Enables multisite smoke checks using a workflow-relative action reference. |
.github/actions/smoke-check/smoke-check.sh |
Preserves installed URLs, routes curl requests locally, and checks network admin. |
.github/actions/smoke-check/action.yml |
Updates the description to include network support. |
Review effort: Balanced
lancewillett
left a comment
There was a problem hiding this comment.
Tested the script on fresh single-site and multisite installations. Both kept their installed URL, and the logged-in network-admin check ran only on multisite. The 4.7 multisite upgrade job also loaded the action from the workflow revision and passed that check. The 7.3 workflow ticket is https://core.trac.wordpress.org/ticket/66754.
AI review · gpt-6.2-astra
…localhost. Without this, a site at another URL fails later at the REST check, and the error does not name the cause.
lancewillett
left a comment
There was a problem hiding this comment.
The new URL check accepts localhost with or without a trailing slash. I verified that a different URL exits with the diagnostic before changing any WordPress options. The multisite upgrade smoke check also passed on this commit. Thanks for picking up Mukesh’s suggestion.
AI review · gpt-6.2-astra
…ite. Keep the installed site URL and route HTTP requests to the local server. On multisite, also check that a logged-in user can load the network admin. Run the smoke check from the workflow revision so changes to the action are tested before landing. Follow-up to [63517], [63518]. Developed in: #16355 Props adrianmoldovanwp, mukesh27. See #66754, #66036. git-svn-id: https://develop.svn.wordpress.org/trunk@65854 602fd350-edb4-49c9-b593-d223f7449a82
…ite. Keep the installed site URL and route HTTP requests to the local server. On multisite, also check that a logged-in user can load the network admin. Run the smoke check from the workflow revision so changes to the action are tested before landing. Follow-up to [63517], [63518]. Developed in: WordPress/wordpress-develop#16355 Props adrianmoldovanwp, mukesh27. See #66754, #66036. Built from https://develop.svn.wordpress.org/trunk@65854 git-svn-id: http://core.svn.wordpress.org/trunk@64883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
PR #16355 landed in https://core.trac.wordpress.org/changeset/65854 |
Enable the smoke checks for multisite in Installation Tests and Upgrade Tests.
Trac ticket: https://core.trac.wordpress.org/ticket/66036
A network picks its site from the request's
Hostheader. The script used to move the site tohttp://127.0.0.1:8889, so a network found no site. Now the site keeps its installed URL,http://localhost, and curl sends every request to the local server with--connect-to localhost:80:127.0.0.1:8889. Single sites no longer need thehomeandsiteurlrewrite either. The site must be installed athttp://localhost/, as both workflows do.On a network, the script also loads
/wp-admin/network/after it logs in. It checks only the main site, becausephp -Sdoes no URL rewrites for subsite paths.The workflows now load the action with
$/.github/actions/smoke-checkinstead of@trunk. A pull request that changes the script then runs its own copy. Release branches still get trunk's copy, because they callreusable-upgrade-testing.yml@trunkand$/resolves to that workflow's commit. Their multisite upgrade jobs then run the check too.setup-wp-clialready uses the same reference. The upgrade workflows run again on pull requests that change the action.Testing instructions
The Installation Tests and Upgrade Tests checks on this pull request run the step. Multisite rows print
ok /wp-admin/network/. Single site rows printskip /wp-admin/network/ (not a network).To run the script by hand:
Every check prints
okand the script exits 0. To check a single site, usewp core installinstead. The network check then printsskip.Testing done
ok /wp-admin/network/.Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: The script and workflow changes, local testing, and iterative code review.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.