Problem/Motivation

Drupal\FunctionalTests\Bootstrap\UncaughtExceptionTest::testLostDatabaseConnection
Behat\Mink\Exception\ResponseTextException: The text "DatabaseAccessDeniedException" was not found anywhere in the text of the current page.

This random failure is popping up now, 12 times recently according to the dashboard

https://project.pages.drupalcode.org/flaky_tests_dashboard/

Issue fork drupal-3521851

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

acbramley created an issue. See original summary.

acbramley’s picture

Issue summary: View changes

acbramley’s picture

acbramley’s picture

Actually, the message in the failure is

PDOException: SQLSTATE[HY000] [1524] Plugin 'mysql_native_password' is not loaded in Drupal\Component\DependencyInjection\PhpArrayContainer->createService() (line 77 of core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php).

I forgot the test case after the failed one still spits out HTML output.

acbramley’s picture

This is so inconsistent.

The latest commit passed 100/100 times on a Repeat run but failed in the normal test run.
Then I reran the Repeat run and it failed every single time.

andypost’s picture

looks it caused by Mysql upgrade to 8.4 where the plugin is deprecated, now reverted #3515706: [CI] Switch the default test environment to PHP 8.4 and MySQL 8.4

just curious why it does not fire in daily tests

andypost’s picture

Status: Active » Needs work

updated dev images https://git.drupalcode.org/project/drupalci_environments/-/commit/88e0e7...

triggered jobs to test new image

andypost’s picture

andypost’s picture

@acbramley after fixes it looks no longer reproducible

andypost’s picture

Status: Needs work » Needs review
acbramley’s picture

Status: Needs review » Closed (cannot reproduce)

Looks good, thanks for that!