Repository navigation
Conversation
desrosj
added this pull request to stack #571
September 29, 2026 13:24
🤖 PR meta 🤖🏷️ LabelsThis pull request needs exactly one label indicating its type, and has 0.
Read more about Type labels in Gutenberg. If you cannot add labels yourself, a reviewer can do it for you. |
desrosj
force-pushed
the
fix-actions-5.8/add-mariadb-version-option
branch
2 times, most recently
from
October 5, 2026 20:47
569e3b4 to
dd653be
Compare
desrosj
removed this pull request from stack #571
October 5, 2026 20:48
desrosj
added this pull request to stack #615
October 5, 2026 20:48
desrosj
force-pushed
the
fix-actions-5.8/add-mariadb-version-option
branch
from
October 5, 2026 21:13
dd653be to
7d935da
Compare
desrosj
force-pushed
the
fix-actions-5.8/add-mariadb-version-option
branch
from
October 6, 2026 17:56
7d935da to
4a74db0
Compare
desrosj
removed this pull request from stack #615
October 7, 2026 01:12
desrosj
added this pull request to stack #647
October 7, 2026 01:12
desrosj
removed this pull request from stack #647
October 7, 2026 18:05
desrosj
changed the base branch from
fix-actions-5.8/fix-test-widget-php8-compat
to
wp/5.8
October 7, 2026 18:06
desrosj
force-pushed
the
fix-actions-5.8/add-mariadb-version-option
branch
from
October 7, 2026 18:07
4a74db0 to
24e9ada
Compare
desrosj
changed the base branch from
wp/5.8
to
fix-actions-5.8/fix-test-widget-php8-compat
October 7, 2026 18:09
desrosj
added this pull request to stack #671
October 7, 2026 18:09
desrosj
removed this pull request from stack #671
October 8, 2026 19:34
desrosj
force-pushed
the
fix-actions-5.8/add-mariadb-version-option
branch
from
October 8, 2026 19:34
24e9ada to
3a21e0f
Compare
desrosj
added this pull request to stack #694
October 8, 2026 19:35
desrosj
removed this pull request from stack #694
October 9, 2026 13:13
desrosj
added this pull request to stack #702
October 9, 2026 13:14
desrosj
removed this pull request from stack #702
October 9, 2026 13:34
desrosj
added this pull request to stack #705
October 9, 2026 13:34
desrosj
removed this pull request from stack #705
October 9, 2026 14:01
desrosj
added this pull request to stack #708
October 9, 2026 14:02
desrosj
removed this pull request from stack #708
October 9, 2026 14:13
desrosj
added this pull request to stack #712
October 9, 2026 14:13
desrosj
marked this pull request as ready for review
October 9, 2026 17:36
|
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. |
Owner
Author
|
Moved to WordPress#84448. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Adds a
mariadbVersionoption to.wp-env.jsonand aWP_ENV_MARIADB_VERSIONenvironment variable, so the MariaDB versionwp-envuses can be chosen.env.development,env.tests), likephpVersion.WP_ENV_MARIADB_VERSIONoverrides both environments."lts","latest", or a numeric version such as"10.11"or"11.4.2". Anything else fails with a validation error, including an invalidWP_ENV_MARIADB_VERSIONvalue.mariadb, exactly as before. A set version becomesmariadb:<version>on themysqlandtests-mysqlservices.The README gets a table row and a "Specific MariaDB Version" section, and
packages/env/CHANGELOG.mdgets an entry under Unreleased.The README section also says:
wp-env destroy. It removes the environment's Docker containers, volumes, networks, and local files, not only the databases.mariadbVersionolder than 11.4,wp dbcommands in theclicontainers fail andwp-env cleanleaves the database as it is. The MariaDB client in the CLI image requires TLS whenphpVersionis unset or 8.1 or newer, and MariaDB servers before 11.4 do not offer it. WordPress itself is not affected.DOCKER_DEFAULT_PLATFORM=linux/amd64, which emulates every container in the environment, not only the database.Why?
This branch's
wp-env(4.0.5) always runs the floatingmariadbimage, which today is a MariaDB release many years newer than anything this branch was tested against. There is currently no way to pin an older, era-appropriate version for testing.How?
This follows #83751, which adds the same option and environment variable to
trunk. This branch'swp-envkeeps its configuration inpackages/env/lib/config/config.js, so the change follows howphpVersionworks there:validateConfig()checks the value (the newcheckMariaDBVersion()).parse-config.jspasses it through.config.jsadds the default and appliesWP_ENV_MARIADB_VERSION. UnlikeWP_ENV_PHP_VERSION, the new variable is validated.build-docker-compose-config.jssets each environment's image.New tests in
packages/env/lib/config/test/config.jscover the default, root and per-environment values, the environment-variable override, and both validation errors. New tests inpackages/env/test/build-docker-compose-config.jscover the image with and without a version. The config snapshot gains"mariadbVersion": null.npm run test-unit -- packages/envpasses all 90 tests locally.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.