Browse Source

Maintenance: Improve MySQL connection settings in CI.

Martin Gruner 1 year ago
parent
commit
eda4543c25
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .gitlab/configure_environment.rb

+ 6 - 0
.gitlab/configure_environment.rb

@@ -36,6 +36,12 @@ class ConfigureEnvironment
       'username' => 'root',
       'password' => 'zammad',
       'host'     => 'mysql', # db alias from gitlab-ci.yml
+      'flags'    => [
+        # See https://github.com/brianmario/mysql2#flags-option-parsing
+        # This should hopefully reduce mysql crashes in CI.
+        '-COMPRESS',
+        '-MULTI_STATEMENTS',
+      ]
     }
   }.freeze