Page MenuHomePhabricator

Striker CI fails when run under Buster due to libmariadbclient
Closed, ResolvedPublic

Description

https://gerrit.wikimedia.org/r/c/integration/config/+/651297 switch the CI job from Stretch to Buster. Beside a few deprecation warning filed as T276594 it has an another breaking issue:

Installed mysqlclient==1.4.6
...
ERROR: Failure: ImproperlyConfigured (Error loading MySQLdb module.
Did you install mysqlclient?)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/src/.tox/py35/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 15, in <module>
    import MySQLdb as Database
  File "/src/.tox/py35/lib/python3.5/site-packages/MySQLdb/__init__.py", line 18, in <module>
    from . import _mysql
ImportError: libmariadbclient.so.18: cannot open shared object file: No such file or directory

Both Stretch and Buster images install default-libmysqlclient-dev which ends up installing:

DistroPackageFile
Stretchlibmariadbclient18/usr/lib/x86_64-linux-gnu/libmariadbclient.so.18
Busterlibmariadb3/usr/lib/x86_64-linux-gnu/libmariadb.so.3

Striker has in requirements.txt:

mysqlclient<2,>=1.4.2.post1  # GPLv2

I guess it would need a later version.

Event Timeline

Change 668752 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] jjb: revert labs/tools/striker job to Stretch

https://gerrit.wikimedia.org/r/668752

Change 668752 merged by jenkins-bot:
[integration/config@master] jjb: revert labs/tools/striker job to Stretch

https://gerrit.wikimedia.org/r/668752

That might be the cache that needs to be deleted. I imagine mysqlclient requirements requires some compilation and the resulting wheel build under Stretch would have been saved in the cache. When restoring the wheel to Buster, it fails due to a link error since the library is no more there.

Change 669732 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] jjb: labs/tools/striker jobs to Buster again

https://gerrit.wikimedia.org/r/669732

Mentioned in SAL (#wikimedia-releng) [2021-03-08T08:57:43Z] <hashar> Nuked castor cache for labs/striker # T276605

Change 669732 merged by jenkins-bot:
[integration/config@master] jjb: labs/tools/striker jobs to Buster again

https://gerrit.wikimedia.org/r/669732