Skip to content

Repair wp/7.1 branch Actions: Fix flaky Openverse image drag-and-drop e2e test - #84037

Merged
desrosj merged 1 commit into
fix-actions-7.1/detect-db-client-in-debug-stepfrom
fix-actions-7.1/fix-flaky-openverse-image-drag-and-drop-test
Oct 26, 2026
Merged

desrosj merged 1 commit into
fix-actions-7.1/detect-db-client-in-debug-stepfrom
fix-actions-7.1/fix-flaky-openverse-image-drag-and-drop-test

Conversation

@desrosj

@desrosj desrosj commented Oct 2, 2026

Copy link
Copy Markdown
Member

Part of #82781.

What?

Mocks Openverse in test/e2e/specs/editor/blocks/image.spec.js's "can be replaced by dragging-and-dropping images from the inserter" test. page.route() answers the search request to api.openverse.org with two results on a fake openverse.test host, and serves those two images from test/e2e/assets.

Why?

The test dragged real Openverse search results onto an image block. When a result is dropped, the editor downloads the full-size image with fetch() and uploads it to the media library. The first result is currently a NASA image hosted on live.staticflickr.com, and on GitHub-hosted runners that download can fail with net::ERR_FAILED (the same URL loads outside CI). Nothing is uploaded, and the image block stays empty.

On this branch it failed Playwright - 1 on #83810, #83819 and #83831 on 2026-09-30, on every retry. The same failure broke the test on trunk, which #83842 fixed. Mocking the search and the images removes the test's dependency on both services.

How?

Ports #83842 from trunk. The test code is identical.

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 2, 2026
@desrosj desrosj self-assigned this Oct 2, 2026
@coderabbitai

coderabbitai Bot commented Oct 2, 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: 4fb0b7df-6c16-4855-9e44-f64d1fabbdd5

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 2, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

📦 Bundle size

Size Change: 0 B

Total Size: 7.75 MB

1719a4d Run

@desrosj
desrosj marked this pull request as ready for review October 5, 2026 18:42
@github-actions

github-actions Bot commented Oct 5, 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: tellthemachines <isabel_brison@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-7.1/fix-flaky-openverse-image-drag-and-drop-test branch 2 times, most recently from 77f3bd4 to fbc6667 Compare October 7, 2026 13:42
@desrosj
desrosj force-pushed the fix-actions-7.1/fix-flaky-openverse-image-drag-and-drop-test branch from fbc6667 to a44033a Compare October 7, 2026 15:55
@desrosj
desrosj removed this pull request from stack #83629 October 8, 2026 21:07
@desrosj
desrosj changed the base branch from fix-actions-7.1/detect-db-client-in-debug-step to wp/7.1 October 8, 2026 21:08
@desrosj
desrosj force-pushed the fix-actions-7.1/fix-flaky-openverse-image-drag-and-drop-test branch from a44033a to 05af062 Compare October 8, 2026 21:08
@github-actions github-actions Bot added the [Tool] Env /packages/env label Oct 8, 2026
@desrosj
desrosj changed the base branch from wp/7.1 to fix-actions-7.1/detect-db-client-in-debug-step October 8, 2026 21:09
@desrosj
desrosj added this pull request to stack #84346 October 8, 2026 21:10
@desrosj
desrosj removed this pull request from stack #84346 October 9, 2026 23:21
@desrosj
desrosj changed the base branch from fix-actions-7.1/detect-db-client-in-debug-step to wp/7.1 October 9, 2026 23:21
@desrosj
desrosj force-pushed the fix-actions-7.1/fix-flaky-openverse-image-drag-and-drop-test branch from 05af062 to 08eee2b Compare October 9, 2026 23:22
@desrosj
desrosj changed the base branch from wp/7.1 to fix-actions-7.1/detect-db-client-in-debug-step October 9, 2026 23:23
@desrosj
desrosj added this pull request to stack #84466 October 9, 2026 23:23
@desrosj desrosj removed the [Tool] Env /packages/env label Oct 16, 2026
@desrosj
desrosj force-pushed the fix-actions-7.1/fix-flaky-openverse-image-drag-and-drop-test branch from 08eee2b to 596795e Compare October 19, 2026 17:02
@desrosj
desrosj removed this pull request from stack #84466 October 21, 2026 18:35
@desrosj
desrosj added this pull request to stack #85326 October 21, 2026 18:36

@tellthemachines tellthemachines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Changes match #83842 exactly.

The test was introduced in #49673 which went into WP 6.3, so porting this fix all the way to 6.3 branch makes sense too.

@desrosj
desrosj force-pushed the fix-actions-7.1/fix-flaky-openverse-image-drag-and-drop-test branch from 596795e to 828f242 Compare October 24, 2026 18:02
@desrosj
desrosj removed this pull request from stack #85326 October 24, 2026 18:04
@desrosj
desrosj added this pull request to stack #85508 October 24, 2026 18:04
@desrosj
desrosj force-pushed the fix-actions-7.1/fix-flaky-openverse-image-drag-and-drop-test branch from 828f242 to 1719a4d Compare October 26, 2026 17:57
@desrosj desrosj added the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label Oct 26, 2026
@github-actions github-actions Bot removed the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label Oct 26, 2026
@desrosj
desrosj merged commit c085c29 into wp/7.1 Oct 26, 2026
57 of 96 checks passed
@desrosj
desrosj deleted the fix-actions-7.1/fix-flaky-openverse-image-drag-and-drop-test branch October 26, 2026 23:53
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