Skip to content

Repair wp/5.3 branch Actions: Run the end-to-end tests with plain permalinks - #85636

Merged
desrosj merged 1 commit into
fix-actions-5.3/remove-unused-provider-codefrom
fix-actions-5.3/use-plain-permalinks-in-e2e
Oct 29, 2026
Merged

desrosj merged 1 commit into
fix-actions-5.3/remove-unused-provider-codefrom
fix-actions-5.3/use-plain-permalinks-in-e2e

Conversation

@desrosj

@desrosj desrosj commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Part of #83420.

What?

Adds a Use plain permalinks step to end2end-test.yml, after Install WordPress, that runs npm run env cli option delete permalink_structure.

Why?

Three end-to-end jobs fail, and most of their failures share one cause: the tests' REST API mocks never fire. The same fix is confirmed on wp/5.4 (#85612), where it made Admin - 1 and Admin - 2 pass.

  • Embedding content (3 tests): the page logs Failed to load resource: the server responded with a status of 429 (), and the embeds never render.
  • new editor state › should be immediately saveable: the demo post's Vimeo embed loads for real (the test mocks it), and its iframe logs Unrecognized feature: 'clipboard-write'. and Unrecognized feature: 'web-share'., which the console checks fail on.
  • Change detection › Should prompt if changes made while save is in-flight: it holds the save by intercepting URLs containing /wp/v2/posts. With plain permalinks the URL is ?rest_route=%2Fwp%2Fv2%2Fposts..., so the save isn't held, which is what the test was written against; with pretty permalinks it is held, and the test times out. It passes on wp/5.4 with this change.

The site has pretty permalinks: WordPress turns them on during the install when the server supports them, and the wordpress-develop local environment does. REST API requests then go to /wp-json/..., but the mocks match the ?rest_route= URLs plain permalinks produce: createEmbeddingMatcher() looks for oembed%2F1.0%2Fproxy, and so does the demo test's Vimeo mock. So those tests reach the real oEmbed providers.

How?

Deleting the permalink_structure option leaves WordPress on plain permalinks, which is what these tests were written against. npm run env cli (the same command setup-wordpress uses to activate Gutenberg) runs WP-CLI in this environment; deleting the option avoids passing an empty rewrite structure '' argument through its two layers of npm run. The PHP tests are unaffected, so only the end-to-end workflow changes.

Font Size Picker › should reset a named font size using input field fails for another reason and is investigated separately.

Testing Instructions

The end-to-end jobs run on this pull request. actionlint reports nothing for the workflow.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

🤖 Generated with Claude Code

@desrosj desrosj added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 26, 2026
@desrosj desrosj self-assigned this Oct 26, 2026
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0ec2f016-57ae-4a14-b3bd-3c520e75d430

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@desrosj
desrosj force-pushed the fix-actions-5.3/use-plain-permalinks-in-e2e branch from 4579c4d to 03b1c9c Compare October 27, 2026 21:03

@ramonjd ramonjd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The failing checks pass at the top of this stack (#85641).

@desrosj
desrosj force-pushed the fix-actions-5.3/use-plain-permalinks-in-e2e branch from 03b1c9c to 020f9a7 Compare October 29, 2026 12:48
@desrosj
desrosj merged commit 6062a0a into wp/5.3 Oct 29, 2026
20 of 35 checks passed
@desrosj
desrosj deleted the fix-actions-5.3/use-plain-permalinks-in-e2e branch October 29, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants