Repository navigation
fix(supported-version): run MariaDB 11+ versions on ubuntu-24.04 - #400
Merged
Merged
Conversation
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
gregor-RW
approved these changes
Nov 19, 2026
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.
Summary
Fixes #399
ostoubuntu-24.04for all versions with MariaDB 11.4 inindividual.jsonandcomposite.jsonof both projects (22 entries: Magento 2.4.9, Mage-OS 3.x and 4.x, the range entries, the default andnextentries).ubuntu-24.04, so new versions don't fall back toubuntu-latest.supported-version/dist/index.js.Why
Since
ubuntu-latestis 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=0for mysqldump 8.0 (isMysqlDumpVersion8()matches/8\.0\./; unchanged in magento/magento2 and mage-os/mageos-magento2).client/mysqldump.cc).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 queriesinformation_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
osoverride 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.04image is retired. A longer-term fix could be to install a MariaDB client >= 11.4 inintegration.yamlfor MariaDB entries, so the framework usesmariadb-dump, and/or to fix the version check in mage-os/mageos-magento2. Happy to look into that separately.Test plan
npm run buildinsupported-version/: the bundle only differs in the 22osvaluesnpm testinsupported-version/: all 158 tests passubuntu-24.04(needs a run in this repo)