Do not use the system database for tests

Created on 24 July 2024, 3 months ago

Problem/Motivation

All tests are using the system "mysql" database when using MySQL or MariaDB database types. We should use a different one as "mysql" is a system database.

Steps to reproduce

https://git.drupalcode.org/project/drupal/-/blob/11.x/.gitlab-ci/pipelin...
Run any pipeline.

Proposed resolution

Change the name to another one. Not sure if we will need to create it or if the base test classes will create it automatically.

Remaining tasks

MR and tests.

📌 Task
Status

Needs work

Version

11.0 🔥

Component
PHPUnit 

Last updated 1 day ago

Created by

🇪🇸Spain fjgarlin

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

Merge Requests

Comments & Activities

  • Issue created by @fjgarlin
  • Merge request !8910Do not use "mysql" system database. → (Open) created by fjgarlin
  • Status changed to Needs work 3 months ago
  • 🇪🇸Spain fjgarlin

    Fails saying it can't create a database. Not sure how/when the DB is trying to be created or if the CI should create it before.

  • Pipeline finished with Failed
    3 months ago
    Total: 598s
    #233158
  • Pipeline finished with Running
    3 months ago
    #233890
  • Pipeline finished with Failed
    2 months ago
    Total: 679s
    #245698
Production build 0.71.5 2024