Rewire import e2e test to a hosted Jetpack backup#4186
Open
gcsecsey wants to merge 3 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.
Related issues
How AI was used in this PR
Claude Code seeded the source site's content, pre-flighted the artifact through real CLI imports (which surfaced a platform drop-in bug — Linear issue incoming), and implemented the rewire under my direction; I reviewed the result.
Proposed Changes
import.test.ts— the release-time test that imports a genuine WordPress.com Jetpack backup — has silently skipped in CI since it was written: its archive had to be fetched by hand from an internal P2, and the files there went stale. The minimal fixture inimport-formats.test.tscovers the format's shape; this test's distinct job is catching drift in what customer backups actually contain, so it needs a real, current artifact.test-fixtures/downloads/coolbeans-jetpack-backup-2026-07.tar.gz, fetched by the Add manifest-driven prep script for hosted data-heavy e2e fixtures #4152 pipeline from the fixtures site. Locally it still skips with an actionable message when the file is absent; in CI the prep step hard-fails first, so the silent-skip era ends.__wp__core dir) of Cool Beans (gcsecseywoa11.wpcomstaging.com), a purpose-built public test site whose content is self-describing: a hero post stating the site's purpose, encoding-test posts (ASCII and UTF-8/emoji), a long-form truncation canary, media/taxonomy/comment-thread tests, and nested pages.wp-content/object-cache.php(WP.com platform Memcached drop-in) is removed — importing it fatals the local site. That importer gap is being filed separately; once fixed, an unsanitized copy should become the regression fixture. Everything else, including wpcomsh and the core tree, is kept for realism.apps/studio/e2e/imports/directory, its P2-pointing readme, and its.gitignoreentries are removed.Verified end to end
npm run e2e:fixturesdownloads the wrapper from the live fixtures site, verifies both SHA-256 hashes, unwraps; a second run verified-skips both fixtures.wp option get blogname→Cool Beans, started site serves HTTP 200 with the full title, theme landing renders, hero permalink returns 200 with the checklist text — i.e., every assertion in this PR's test, validated against the shipped artifact.Testing Instructions
npm run e2e:fixtures— downloads + verifies both hosted fixtures (~150 MB).import.test.tsfor real for the first time — the E2E jobs are the authoritative proof (note: they now download the artifact; mac/windows cache it keyed on the manifest, Linux fetches per run).Pre-merge Checklist