Add AI E2E test site preflight#25615
Merged
Merged
Conversation
Collaborator
Generated by 🚫 Danger |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a “preflight” check for the configured AI E2E WordPress test site so the pipeline fails early (before artifact download / simulator work) when the site is unreachable, redirects unexpectedly (e.g., WordPress.com typo handling), or the provided credentials can’t access the REST API current-user endpoint.
Changes:
- Add REST API preflight helpers that validate
/wp-json/looks like a WP REST root response. - Add an authenticated preflight call to
/wp-json/wp/v2/users/meto verify credentials work before running tests. - Run the preflight step immediately after required env var validation and before the rest of the test lifecycle.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
| App Name | WordPress | |
| Configuration | Release-Alpha | |
| Build Number | 32418 | |
| Version | PR #25615 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | cc37226 | |
| Installation URL | 2pjl608k9tiho |
Contributor
|
| App Name | Jetpack | |
| Configuration | Release-Alpha | |
| Build Number | 32418 | |
| Version | PR #25615 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | cc37226 | |
| Installation URL | 600vmbtblpak8 |
crazytonyli
approved these changes
Jun 4, 2026
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.


Note: this PR is an improvement to fail the tests early, but they're now ultimately failing due to an expired Jurassic Ninja website, it seems. We need to fix that for the long run. Ideas @mokagio @crazytonyli ?
Summary
This PR helps addressing the issue seen in the nightly AI E2E tests (example), where the tests run for a site that is down and eventually time out.
Changes:
/wp-json/wp/v2/users/mebefore runningsimulator-llm-pilotTesting
bash -n .buildkite/commands/run-ai-e2e-tests.shBUILDKITE_PULL_REQUEST_LABELS=Other .buildkite/commands/run-ai-e2e-tests.shANTHROPIC_API_KEY=dummy SIMULATOR_LLM_PILOT_SITE_URL=sawfish-of-tropics.jurassic.ninja SIMULATOR_LLM_PILOT_USERNAME=dummy SIMULATOR_LLM_PILOT_APP_PASSWORD=dummy .buildkite/commands/run-ai-e2e-tests.sh