This is an automated email from the ASF dual-hosted git repository.
taragolis pushed a commit to branch fix-default-mysql-client-for-prod
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to
refs/heads/fix-default-mysql-client-for-prod by this push:
new d59dfa31bb Validate import MySQLdb (mysqlclient) in prod image test
d59dfa31bb is described below
commit d59dfa31bb6498f4a5c1eade624167d027b253d2
Author: Andrey Anshin <[email protected]>
AuthorDate: Wed Jan 10 22:48:39 2024 +0400
Validate import MySQLdb (mysqlclient) in prod image test
---
docker_tests/test_prod_image.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/docker_tests/test_prod_image.py b/docker_tests/test_prod_image.py
index c3da0f4dff..e54de129d8 100644
--- a/docker_tests/test_prod_image.py
+++ b/docker_tests/test_prod_image.py
@@ -158,6 +158,7 @@ class TestPythonPackages:
"grpc": ["grpc", "google.auth", "google_auth_httplib2"],
"hashicorp": ["hvac"],
"ldap": ["ldap"],
+ "mysql": ["MySQLdb", *(["mysql"] if bool(find_spec("mysql")) else [])],
"postgres": ["psycopg2"],
"pyodbc": ["pyodbc"],
"redis": ["redis"],
@@ -167,8 +168,6 @@ class TestPythonPackages:
"statsd": ["statsd"],
"virtualenv": ["virtualenv"],
}
- if bool(find_spec("mysql")):
- PACKAGE_IMPORTS["mysql"] = ["mysql"]
@pytest.mark.skipif(os.environ.get("TEST_SLIM_IMAGE") == "true",
reason="Skipped with slim image")
@pytest.mark.parametrize("package_name,import_names",
PACKAGE_IMPORTS.items())