Repository navigation
feat(supported-version)!: model MariaDB as a separate service from MySQL - #349
Open
damienwebdev wants to merge 1 commit into
Open
damienwebdev wants to merge 1 commit into
damienwebdev wants to merge 1 commit into
Conversation
damienwebdev
force-pushed
the
fix/mariadb-service
branch
from
November 24, 2026 21:07
38578a2 to
b4ab5ab
Compare
damienwebdev
force-pushed
the
fix/mariadb-service
branch
from
November 24, 2026 21:07
b4ab5ab to
0e5896b
Compare
The `mariadb:11.4` image no longer ships `mysqladmin`, so the single MySQL service template (`--health-cmd="mysqladmin ping"`) cannot cover MariaDB. Model MariaDB as its own service, mirroring the opensearch/elasticsearch and valkey/redis patterns. - supported-version: add `mariadb` to the matrix type, a `mariadbConfig` template using `healthcheck.sh`, and a db-tier pick that prefers mariadb over mysql and honors `service_preferences` - supported-version: accept `mariadb` as a `service_preferences` name - version JSON: entries that stored a MariaDB image under `mysql` now use a `mariadb` key - magento-open-source: 2.4.7-p10 uses `mariadb:10.11`, 2.4.8-p5 uses `mariadb:11.8`, and 2.4.9 (plus the rolling and `:next` entries) adds `mariadb:12.3` alongside `mysql:8.4` - setup-install: treat `services.mariadb` like `services.mysql`, using the `mariadb` network alias in container mode - resolve-check-config: the `db` tier includes `mariadb` - integration.yaml: port lookup falls back to the mariadb service BREAKING CHANGE: matrix entries that run MariaDB now emit the service as `services.mariadb` instead of `services.mysql`, so steps that read `job.services.mysql` (e.g. for the port) must also check `job.services.mariadb`. Magento 2.4.7-p10 now runs `mariadb:10.11` instead of `mysql:8.0`, 2.4.8-p5 runs `mariadb:11.8` instead of `mysql:8.4`, and 2.4.9, the rolling entry and `:next` default to `mariadb:12.3` instead of `mysql:8.4`. Set `service_preferences: mysql` to keep MySQL on versions that list both. (cherry picked from commit d5764995df2ec33f980286e472155ebe02d2c668) Co-authored-by: Marcel Martinez <martinezlopezmarcel@gmail.com> Co-authored-by: Damien Retzinger <damienwebdev@gmail.com>
damienwebdev
force-pushed
the
fix/mariadb-service
branch
from
November 24, 2026 21:14
0e5896b to
f26a086
Compare
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 is the current behavior?
MariaDB images are stored under the
mysqlkey and get the MySQL service template, which health checks withmysqladmin ping. Newer MariaDB images (11.4+) don't shipmysqladmin, so the container never becomes healthy and the job fails at "Initialize containers".Fixes: N/A
What is the new behavior?
Cherry-pick of mage-os/github-actions#370, adapted to this repo.
supported-versionmodels MariaDB as its ownmariadbservice with ahealthcheck.shhealth check. When an entry has both,mariadbis picked overmysqlunlessservice_preferencessays otherwise.mariadbis a new acceptedservice_preferencesvalue.mysqlnow use themariadbkey.mariadb:10.11and 2.4.8-p5 tomariadb:11.8. 2.4.9, the rolling entry and:nextaddmariadb:12.3next tomysql:8.4.setup-installacceptsservices.mariadbthe same asservices.mysql, and uses themariadbhost alias in container mode.resolve-check-configincludesmariadbin thedbtier so the service isn't filtered out of check jobs.integration.yamlreads the database port from either service.Does this PR introduce a breaking change?
services.mariadbinstead ofservices.mysql. Steps that readjob.services.mysql(e.g. for the port) need to fall back tojob.services.mariadb.mysql:8.0->mariadb:10.11mysql:8.4->mariadb:11.8:next:mysql:8.4->mariadb:12.3service_preferences: mysql.Other information