Skip to content

fix(supported-version): run MariaDB 11+ versions on ubuntu-24.04 - #400

Merged
rhoerr merged 1 commit into
mage-os:mainfrom
Vinai:fix/mariadb-11-ubuntu-24.04
Nov 23, 2026
Merged

rhoerr merged 1 commit into
mage-os:mainfrom
Vinai:fix/mariadb-11-ubuntu-24.04

Conversation

@Vinai

@Vinai Vinai commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #399

  • Set os to ubuntu-24.04 for all versions with MariaDB 11.4 in individual.json and composite.json of both projects (22 entries: Magento 2.4.9, Mage-OS 3.x and 4.x, the range entries, the default and next entries).
  • Add a test that all versions with MariaDB 11+ run on ubuntu-24.04, so new versions don't fall back to ubuntu-latest.
  • Rebuild supported-version/dist/index.js.

Why

Since ubuntu-latest is Ubuntu 26.04 (MySQL 8.4 client), the integration tests fail for versions with MariaDB 11+ when the test framework dumps the setup database (see #399):

  • Magento\TestFramework\Db\Mysql::storeDbDump() only adds --column-statistics=0 for mysqldump 8.0 (isMysqlDumpVersion8() matches /8\.0\./; unchanged in magento/magento2 and mage-os/mageos-magento2).
  • mysqldump 8.x disables column statistics by itself only if the server version is below 8.0.2 (client/mysqldump.cc).
  • MariaDB 10.x reports its version as 5.5.5-10.x.y-MariaDB (RPL_VERSION_HACK), so mysqldump skips the column statistics. MariaDB 11+ dropped that prefix, so mysqldump 8.4 queries information_schema.COLUMN_STATISTICS, which MariaDB doesn't have.

That's why the 2.4.7-p10 job (MariaDB 10.6) still passes on Ubuntu 26.04 and the 2.4.9 job (MariaDB 11.4) fails (run 44098029261). MySQL servers have the table, so the MySQL versions are not affected either.

Ubuntu 24.04 ships the MySQL 8.0 client, for which the framework adds the option. 2.4.9 passed on it before the image change (run 41109479562), and the same os override makes the integration tests of hyva-themes/magento2-hyva-admin pass on 2.4.9 with PHP 8.4 and 8.5.

This only works until the ubuntu-24.04 image is retired. A longer-term fix could be to install a MariaDB client >= 11.4 in integration.yaml for MariaDB entries, so the framework uses mariadb-dump, and/or to fix the version check in mage-os/mageos-magento2. Happy to look into that separately.

Test plan

  • npm run build in supported-version/: the bundle only differs in the 22 os values
  • npm test in supported-version/: all 158 tests pass
  • The new test fails for the 22 entries without the data change
  • Internal integration workflow passes for 2.4.9 on ubuntu-24.04 (needs a run in this repo)

ubuntu-latest is now Ubuntu 26.04, which ships the MySQL 8.4 client. The Magento integration
test framework dumps the database with mysqldump after the installation, and only passes
--column-statistics=0 for mysqldump 8.0. mysqldump 8.x skips the column statistics on its own
only for servers that report a version below 8.0.2. MariaDB 10.x reports "5.5.5-10.x", but
MariaDB 11+ no longer has that prefix, so mysqldump 8.4 queries
information_schema.COLUMN_STATISTICS, which MariaDB doesn't have, and the dump fails.

Ubuntu 24.04 ships the MySQL 8.0 client, for which the framework adds the option. Run the
versions with MariaDB 11+ (Magento 2.4.9, Mage-OS 3.x and 4.x) on ubuntu-24.04, and add a test
so new versions with MariaDB 11+ don't use ubuntu-latest.

Fixes mage-os#399
@Vinai
Vinai requested a review from a team as a code owner November 18, 2026 09:36

@rhoerr rhoerr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@rhoerr
rhoerr merged commit 7de5b1c into mage-os:main Nov 23, 2026
15 checks passed
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.

Integration workflow fails for MariaDB versions on ubuntu-latest (Ubuntu 26.04): setup DB dump with mysqldump 8.4

3 participants