Skip to content

feat(supported-version)!: model MariaDB as a separate service from MySQL - #349

Open
damienwebdev wants to merge 1 commit into
mainfrom
fix/mariadb-service
Open

damienwebdev wants to merge 1 commit into
mainfrom
fix/mariadb-service

Conversation

@damienwebdev

@damienwebdev damienwebdev commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What is the current behavior?

MariaDB images are stored under the mysql key and get the MySQL service template, which health checks with mysqladmin ping. Newer MariaDB images (11.4+) don't ship mysqladmin, 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-version models MariaDB as its own mariadb service with a healthcheck.sh health check. When an entry has both, mariadb is picked over mysql unless service_preferences says otherwise. mariadb is a new accepted service_preferences value.
  • Version entries that stored a MariaDB image under mysql now use the mariadb key.
  • Magento 2.4.7-p10 moves to mariadb:10.11 and 2.4.8-p5 to mariadb:11.8. 2.4.9, the rolling entry and :next add mariadb:12.3 next to mysql:8.4.
  • setup-install accepts services.mariadb the same as services.mysql, and uses the mariadb host alias in container mode.
  • resolve-check-config includes mariadb in the db tier so the service isn't filtered out of check jobs.
  • integration.yaml reads the database port from either service.

Does this PR introduce a breaking change?

  • Yes
  • No
  • Matrix entries that run MariaDB emit services.mariadb instead of services.mysql. Steps that read job.services.mysql (e.g. for the port) need to fall back to job.services.mariadb.
  • The default database changes for some versions:
    • 2.4.7-p10: mysql:8.0 -> mariadb:10.11
    • 2.4.8-p5: mysql:8.4 -> mariadb:11.8
    • 2.4.9, rolling, :next: mysql:8.4 -> mariadb:12.3
  • To keep MySQL on versions that list both, set service_preferences: mysql.

Other information

@damienwebdev damienwebdev changed the title feat(supported-version): model MariaDB as a separate service from MySQL feat(supported-version)!: model MariaDB as a separate service from MySQL Nov 24, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants