Page MenuHomePhabricator

Create MySQL container in CI for integration tests
Closed, ResolvedPublic

Description

Following up from T308789: Determine CI best practices for service which connects to MySQL and T337714: Migrate mediawiki/services/ipoid to GitLab, in this task we'll add support for starting a MySQL container using the services config in GitLab CI. We can then make use of that for integration tests for iPoid.

Event Timeline

kostajh changed the task status from Open to In Progress.Jun 16 2023, 12:27 PM

Change 932328 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[operations/puppet@production] gitlab runner: Allow mariadb:* images

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

Change 932328 merged by Jelto:

[operations/puppet@production] gitlab runner: Allow mariadb:* images

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

Change 933175 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[operations/puppet@production] gitlab runner: Allow mariadb:* images for allowed_docker_services

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

Change 933175 merged by RLazarus:

[operations/puppet@production] gitlab runner: Allow mariadb:* images for allowed_docker_services

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

Change 935703 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[operations/puppet@production] common/gitlab_runner: Allow mariadb:* images for allowed_docker_services

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

Change 935703 abandoned by Kosta Harlan:

[operations/puppet@production] common/gitlab_runner: Allow mariadb:* images for allowed_docker_services

Reason:

https://gitlab.wikimedia.org/repos/mediawiki/services/ipoid/-/merge_requests/26

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

stran merged https://gitlab.wikimedia.org/repos/mediawiki/services/ipoid/-/merge_requests/26

gitlab-ci: Add mariadb in services for test stage

I believe this is done with the merge request above. In CI, tests can access a MariaDB instance with the username root and no password.