Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MariaDB test container failing to start #1200

Merged

Conversation

ddabble
Copy link
Member

@ddabble ddabble commented Jul 2, 2023

Description

The issue seems to have been using the mysqladmin command for health checking in test.yml, probably due to the following change in MariaDB v11.0.1:

Docker Official Images

  • 11.0, unlike previous version, no longer includes mysql named compatible executable symlinks inside the container.

The docs on mysqladmin mention that mariadb-admin is now the new name of the script.

Also replaced the MYSQL_DATABASE and MYSQL_ROOT_PASSWORD environment variables with their new names (based on the docs on the Docker image's env vars).

Related Issue

Motivation and Context

How Has This Been Tested?

Through GitHub Actions.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have run the pre-commit run command to format and lint.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have added my name and/or github handle to AUTHORS.rst
  • I have added my change to CHANGES.rst
  • All new and existing tests passed.

This fixes the recently failing GitHub Actions test workflows, in which
the MariaDB Docker container failed to start.

The issue seems to have been using the `mysqladmin` command for health
checking in `test.yml`, probably due to the following change in
MariaDB v11.0.1:
(Copied from https://mariadb.com/kb/en/mariadb-11-0-1-release-notes/)
"""
## Docker Official Images
* 11.0, unlike previous version, no longer includes mysql named
  compatible executable symlinks inside the container.
"""
https://mariadb.com/kb/en/mysqladmin/ mentions that `mariadb-admin` is
now the new name of the script (previously `mysqladmin`).

Also replaced the `MYSQL_DATABASE` and `MYSQL_ROOT_PASSWORD` environment
variables with their new names (based on the docs:
https://mariadb.com/kb/en/mariadb-server-docker-official-image-environment-variables/).
@codecov
Copy link

codecov bot commented Jul 2, 2023

Codecov Report

Merging #1200 (359f68a) into master (705a2e1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1200   +/-   ##
=======================================
  Coverage   97.30%   97.30%           
=======================================
  Files          23       23           
  Lines        1262     1262           
  Branches      204      204           
=======================================
  Hits         1228     1228           
  Misses         16       16           
  Partials       18       18           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@valberg valberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ddabble ddabble merged commit a312dc6 into jazzband:master Jul 2, 2023
@ddabble ddabble deleted the fix/failing-mariadb-test-container branch July 2, 2023 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants