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 |
94bab3d to
f22f913
Compare
|
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. |
f22f913 to
3ec3564
Compare
3ec3564 to
8b0c1ee
Compare
8b0c1ee to
287e04b
Compare
|
Size Change: 0 B Total Size: 7.61 MB ℹ️ View Unchanged
|
287e04b to
cf07995
Compare
cf07995 to
39c2f22
Compare
39c2f22 to
e7cd7c3
Compare
e7cd7c3 to
8244fc1
Compare
Part of #82782.
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 in themysqlcontainer (the tests database ofwp-env-test). The--beforeshpasses the script to the container withoutwp-envparsing it.Tested against MariaDB 5.5, 10.0, 10.3, 10.4, 10.5, 10.6, 10.11, 11.4, 11.8, 12.3 and 13.0 and MySQL 5.5, 5.6, 5.7, 8.0 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.
🤖 Generated with Claude Code