[10.5.x] test DB transaction isolation set to read-committed breaks tests

Created on 1 August 2025, 20 days ago

Problem/Motivation

Changing the configuration of DrupalCI mysql/mariadb images and setting tx_isolation = READ-COMMITTED breaks tests

Testing
Drupal\Tests\mysql\Functional\InstallerIsolationLevelExistingSettingsTest
F 1 / 1
(100%)

Time: 00:05.776, Memory: 8.00 MB

There was 1 failure:

1)
Drupal\Tests\mysql\Functional\InstallerIsolationLevelExistingSettingsTest::testInstaller
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'REPEATABLE-READ'
+'READ-COMMITTED'

/builds/issue/drupal-3539349/vendor/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqual.php:95
/builds/issue/drupal-3539349/core/modules/mysql/tests/src/Functional/InstallerIsolationLevelExistingSettingsTest.php:64
/builds/issue/drupal-3539349/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

FAILURES!
Tests: 1, Assertions: 9, Failures: 1.

HTML output was generated

Steps to reproduce

Switch testing to `dev` tag images

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Active

Version

10.5 โœจ

Component

mysql db driver

Created by

๐Ÿ‡ฌ๐Ÿ‡ทGreece dimitriskr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024