Skip to content

Repair wp/5.7 branch Actions: Replace wp-env's database check with a MariaDB health check - #84784

Open
desrosj wants to merge 1 commit into
fix-actions-5.7/add-mariadb-version-optionfrom
fix-actions-5.7/replace-db-check-with-healthcheck
Open

desrosj wants to merge 1 commit into
fix-actions-5.7/add-mariadb-version-optionfrom
fix-actions-5.7/replace-db-check-with-healthcheck

Conversation

@desrosj

@desrosj desrosj commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Part of #82936.

What?

Ports #75046 to this branch's wp-env. The database services get a health check, WordPress waits for it with condition: service_healthy, and the wp db check retry loop is removed from wp-env start. The CHANGELOG and README are updated to match.

Why?

wp db check uses the MariaDB client in the wordpress:cli image. That client requires TLS, which MariaDB servers before 11.4 don't offer, so wp-env start fails with SSL is required, but the server does not support it. The next PR, #84785, pins MariaDB 10.5, so without this change every job that starts wp-env would fail. The health check doesn't use the MySQL client at all.

How?

The depends_on, start and clean changes follow #75046, adapted to this branch's file layout.

The health check command comes from #83751, because #75046's version doesn't work on every MariaDB version. It runs healthcheck.sh only when the image has the script and the data directory has its user config. Otherwise it pings the server over TCP with mariadb-admin or mysqladmin, whichever the image ships. Unlike wp/6.3 and newer, this branch's wp-env uses the stock wordpress:cli image without a generated Dockerfile, so #83751's client wrappers can't be added; wp db commands still fail below 11.4, as the README notes.

The tests from both PRs are ported, using .split().join() in place of replaceAll, which Node 14 doesn't have. Verified locally: both databases become healthy on mariadb:10.5 (through healthcheck.sh) and on mariadb:10.3 (through the ping fallback).

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 [Type] Build Tooling Issues or PRs related to build tooling [Tool] Env /packages/env labels Oct 15, 2026
@desrosj desrosj self-assigned this Oct 15, 2026
@coderabbitai

coderabbitai Bot commented Oct 15, 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: 96ccccc7-b9b6-45a8-8439-15cc9c43eabe

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

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. You can also manually ask me to refresh this list by adding the props-bot label.

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>

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

@desrosj
desrosj removed this pull request from stack #84797 October 16, 2026 00:33
@desrosj
desrosj added this pull request to stack #84872 October 16, 2026 00:34
@desrosj
desrosj removed this pull request from stack #84872 October 16, 2026 15:52
@desrosj
desrosj force-pushed the fix-actions-5.7/replace-db-check-with-healthcheck branch from ee1e281 to 85852fe Compare October 16, 2026 15:52
@desrosj
desrosj added this pull request to stack #84945 October 16, 2026 15:53
@desrosj
desrosj force-pushed the fix-actions-5.7/replace-db-check-with-healthcheck branch from 85852fe to 9841c38 Compare October 19, 2026 17:09
@desrosj
desrosj removed this pull request from stack #84945 October 21, 2026 19:48
@desrosj
desrosj added this pull request to stack #85354 October 21, 2026 19:48
@desrosj
desrosj force-pushed the fix-actions-5.7/replace-db-check-with-healthcheck branch from 9841c38 to 48c57e5 Compare October 23, 2026 13:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Tool] Env /packages/env [Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant