Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Update dependency apache-airflow to v2.9.0, Python to 3.12 (#4159)
Openverse (Bot)092ad1aae77a
diff --git a/catalog/Dockerfile b/catalog/Dockerfileindex 930eb501f..64ad1837d 100644--- a/catalog/Dockerfile+++ b/catalog/Dockerfile@@ -66,7 +66,7 @@ ARG CATALOG_AIRFLOW_VERSION# https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html#constraints-filesARG CONSTRAINTS_FILE="https://raw.githubusercontent.com/apache/airflow/constraints-${CATALOG_AIRFLOW_VERSION}/constraints-${CATALOG_PY_VERSION}.txt"-RUN pip install --user -r ${REQUIREMENTS_FILE} -c ${CONSTRAINTS_FILE}+RUN pip install -r ${REQUIREMENTS_FILE} -c ${CONSTRAINTS_FILE}COPY entrypoint.sh /opt/airflow/entrypoint.shdiff --git a/catalog/requirements-prod.txt b/catalog/requirements-prod.txtindex 7b2a2de2b..2ff702aa7 100644--- a/catalog/requirements-prod.txt+++ b/catalog/requirements-prod.txt@@ -1,8 +1,8 @@-# PYTHON=3.10+# PYTHON=3.12# Note: Unpinned packages have their versions determined by the Airflow constraints file-apache-airflow[amazon,postgres,http,elasticsearch]==2.8.4+apache-airflow[amazon,postgres,http,elasticsearch]==2.9.0lxmlpsycopg2-binaryrequests-file==2.0.*diff --git a/catalog/tests/dags/maintenance/test_check_silenced_dags.py b/catalog/tests/dags/maintenance/test_check_silenced_dags.pyindex 1bdb846b9..61921843c 100644--- a/catalog/tests/dags/maintenance/test_check_silenced_dags.py+++ b/catalog/tests/dags/maintenance/test_check_silenced_dags.py@@ -110,7 +110,7 @@ p = pytest.paramdef test_check_configuration(silenced_dags, dags_to_reenable, should_send_alert):with (mock.patch(- "maintenance.check_silenced_dags.Variable",+ "maintenance.check_silenced_dags.Variable.get",return_value=silenced_dags,),mock.patch(@@ -122,7 +122,12 @@ def test_check_configuration(silenced_dags, dags_to_reenable, should_send_alert)):message = check_configuration("not_set", "my_variable")assert send_alert_mock.called == should_send_alert- assert get_dags_with_closed_issues_mock.called_with("not_set", silenced_dags)+ (+ get_dags_with_closed_issues_mock.assert_called_with(+ "not_set", silenced_dags+ ),+ get_dags_with_closed_issues_mock.call_args_list,+ )# Called with correct dag_idsfor dag_id, issue_url, predicate in dags_to_reenable:diff --git a/catalog/tests/dags/providers/provider_api_scripts/test_time_delineated_provider_data_ingester.py b/catalog/tests/dags/providers/provider_api_scripts/test_time_delineated_provider_data_ingester.pyindex 414b7c4ca..f40c3771a 100644--- a/catalog/tests/dags/providers/provider_api_scripts/test_time_delineated_provider_data_ingester.py+++ b/catalog/tests/dags/providers/provider_api_scripts/test_time_delineated_provider_data_ingester.py@@ -198,8 +198,8 @@ def test_ts_pairs_and_kwargs_are_available_in_get_next_query_params():# When get_next_query_params is called, the start and end timestamps# are passed in as kwargs *in addition to any other kwargs passed to# ingest_records*- assert ingester.get_next_query_params.called_with(- start_ts=mock_start, end_ts=mock_end, foo="foo", bar="bar"+ ingester.get_next_query_params.assert_called_with(+ None, start_ts=mock_start, end_ts=mock_end, foo="foo", bar="bar")