Stabilize legacy WordPress boot CI#3609
Draft
JanJakes wants to merge 5 commits into
Draft
Conversation
Cache legacy WordPress release ZIPs through Actions cache, serve them locally with CORS during the boot suite, and retry Playwright browser installation to absorb rare apt mirror failures.
Keep the activation wait at 60 seconds, then re-check the plugins page before failing and include the latest frame URL, body excerpt, and recent browser errors in timeout diagnostics.
Do not fail the legacy boot job if another workflow run saves the same WordPress ZIP cache key first.
60c688e to
69a94c5
Compare
Use the existing CORS proxy hook for cached WordPress ZIPs so the test still passes dotted WordPress versions through the normal Playground resolver. This avoids the custom-URL branch that made older versions crawl to the CI timeout.\n\nAlso trims the plugin activation recovery to a URL-bar retry instead of direct scoped-frame URL rewriting.
Move the legacy WordPress boot helper scripts under one test-specific directory, use shorter names inside that directory, and update the workflow/project references.\n\nAlso narrow the local ZIP server back to cached WordPress ZIPs only and make WP_ONLY apply to the downloader so local focused runs do not need the full ZIP cache.
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.
What changed
wp=4.9style query values so Playground still uses the normal dotted-version resolver.packages/playground/wordpress/tests/legacy-wp-version-boot/.Why
The legacy boot job was frequently failing on transient infrastructure issues: WordPress.org download throttling, occasional Playwright install/network failures, and rare plugin activation timing races. The cache removes most WordPress.org traffic without changing the runtime code path under test.
Validation
WP_ONLY=6.2,4.9 node packages/playground/wordpress/tests/legacy-wp-version-boot/test.mjsnode --check, Prettier, filtered ZIP download, and ZIP server smoke test.51 passed,2 skipped.test-legacy-wp-version-bootpassed on the full run and four subsequent targeted/full rerun observations, including two final targeted reruns.