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 MySQL 5.7 tests #811

Conversation

Nothing4You
Copy link
Collaborator

What do these changes do?

The latest MySQL 5.7 images changed the default distro from debian to oracle linux.
With this change our tests are failing, as the path for the custom config to enable a unix socket no longer exists.
With this change we also no longer need to work around the config shipped in the container messing with out drop-in config in /etc/mysql/conf.d/, so we can remove the workaround for mysql:5.7 and use the same logic for all database containers.

Are there changes in behavior for the user?

no

… remove our workaround for setting the socket path

with docker-library/mysql#867 images without distro tag are now built on oracle linux by default.
this change removed /etc/mysql/mysql.conf.d from the image, see also docker-library/mysql#876.
this also means we no longer need to work around the socket path being overridden in another config file and we can use the same logic as on all other images.
@codecov
Copy link

codecov bot commented Jul 7, 2022

Codecov Report

Merging #811 (d62de0e) into master (fb85893) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #811      +/-   ##
==========================================
- Coverage   92.76%   92.72%   -0.04%     
==========================================
  Files          38       38              
  Lines        5569     5569              
  Branches      943      943              
==========================================
- Hits         5166     5164       -2     
- Misses        315      317       +2     
  Partials       88       88              
Flag Coverage Δ
ubuntu-latest_3.10_mariadb-10.3 89.27% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.4 89.27% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.5 89.26% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.6 89.26% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.7 89.26% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.8 89.26% <ø> (ø)
ubuntu-latest_3.10_mysql-5.7 89.96% <ø> (ø)
ubuntu-latest_3.10_mysql-8.0 91.34% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.3 89.24% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.4 89.24% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.5 89.22% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.6 89.22% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.7 89.22% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.8 89.22% <ø> (ø)
ubuntu-latest_3.11-dev_mysql-5.7 89.92% <ø> (ø)
ubuntu-latest_3.11-dev_mysql-8.0 91.30% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.3 88.67% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.4 88.67% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.5 88.66% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.6 88.66% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.7 88.66% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.8 88.66% <ø> (ø)
ubuntu-latest_3.7_mysql-5.7 89.40% <ø> (ø)
ubuntu-latest_3.7_mysql-8.0 90.87% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.3 89.32% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.4 89.32% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.5 89.30% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.6 89.30% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.7 89.30% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.8 89.30% <ø> (ø)
ubuntu-latest_3.8_mysql-5.7 90.00% <ø> (ø)
ubuntu-latest_3.8_mysql-8.0 91.37% <ø> (-0.04%) ⬇️
ubuntu-latest_3.9_mariadb-10.3 89.17% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.4 89.17% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.5 89.15% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.6 89.15% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.7 89.15% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.8 89.15% <ø> (ø)
ubuntu-latest_3.9_mysql-5.7 89.85% <ø> (ø)
ubuntu-latest_3.9_mysql-8.0 91.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tests/test_issues.py 85.66% <0.00%> (-0.64%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb85893...d62de0e. Read the comment docs.

@Nothing4You Nothing4You merged commit 572b5a3 into aio-libs:master Jul 7, 2022
@Nothing4You Nothing4You deleted the remove-mysql57-test-socket-workaround branch July 7, 2022 10:17
@Nothing4You Nothing4You added this to the 0.2 milestone Jul 9, 2022
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.

None yet

1 participant