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 |
|
Size Change: 0 B Total Size: 1.14 MB ℹ️ View Unchanged
|
|
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. |
Part of #82938.
What?
Adds a
WP_ENV_MARIADB_VERSIONenvironment variable that picks the MariaDB imagewp-envuses:packages/env/lib/build-docker-compose-config.jschanges'mariadb'to'mariadb:${WP_ENV_MARIADB_VERSION:-latest}', so the default image doesn't change.wp-env destroy, since MariaDB can't start on a database written by a newer version. With a version older than 11.4,wp dbcommands in thecliandtests-clicontainers fail andwp-env cleanleaves the database alone, because thewordpress:cliimage's MariaDB client requires TLS; WordPress itself isn't affected.packages/env/test/build-docker-compose-config.jschecks the image string.Why?
This branch's
wp-env(1.6.0) always runs the floatingmariadbimage, many years newer than anything this branch was tested against, with no way to pin an older one.How?
Follows #83751, which adds a
mariadbVersionoption and this environment variable to trunk.wp-env1.6.0 has no version settings to extend, so only the variable is ported. Docker Compose substitutes it when it reads the generated file, as it already does forWP_ENV_PORTandLOCAL_PHP.npm run test-unit -- packages/envpasses all 31 tests locally (packages/env/test/cli.jscan't load without a builtnodegit, which is unrelated).The
mariadb-checkTLS errorwp-env starthits with older MariaDB versions is fixed by #85010, two PRs above.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