farmOS icon indicating copy to clipboard operation
farmOS copied to clipboard

Run tests against mariadb:10 instead of mariadb:latest

Open mstenta opened this issue 5 months ago • 0 comments

MariaDB tests started failing recently with the following error:

SQLSTATE[HY000] [2054] Server sent charset (0) unknown to the client.

I traced this to the fact that we are running tests against the mariadb:latest Docker image, which is version 11.

Changing our docker-compose.testing.mariadb.yml configuration to use mariadb:10 fixes the issue.

I didn't dig into the root cause of this issue in MariaDB 11, but this PR will get our tests running again as a first step. Worth noting: we also pin our PostgreSQL tests (postgres:13), so this is consistent with that.

We may want to open a separate follow-up issue to explore why MariaDB 11 doesn't work, and see if we need to document this in https://farmos.org/hosting/install/#database-server...

mstenta avatar Feb 21 '24 14:02 mstenta