Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
119e3f4 to
4472f09
Compare
|
Size Change: 0 B Total Size: 1.33 MB ℹ️ View Unchanged
|
4472f09 to
90970e7
Compare
|
Size Change: 0 B Total Size: 1.33 MB ℹ️ View Unchanged
|
Part of #82931.
What?
Makes the database line of
unit-test.yml's "Docker container debug information" step work with any MySQL or MariaDB version. It now runsmariadb --versionwhen the database container has amariadbclient, andmysql --versionwhen it doesn't.Why?
The client's name depends on the database version, and this branch supports MySQL and MariaDB back to 5.5:
mysql.mariadb: themysqlalias was removed.A fixed name fails on part of that range, so the step checks which client exists before running it. WordPress Core's test environment makes the same distinction by version (WordPress/wordpress-develop@ea80ac8).
How?
The line runs a short
sh -cscript inside thetests-mysqlcontainer. This branch'swp-envpasses aruncommand to the host shell as a single line, so the script is wrapped in single quotes inside the command string to reach the container intact.Tested this branch's
wp-env runargument handling (Node.js 14, npm 6) against MariaDB 5.5, 10.3, 10.11 and 13.0 and MySQL 5.7 and 8.4: each prints its client version and exits successfully.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.