This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new a6be96d928 Temporarily limit botocore upgrades (#31098)
a6be96d928 is described below
commit a6be96d92828a86e982b53646a9e2eeca00a5463
Author: Jarek Potiuk <[email protected]>
AuthorDate: Fri May 5 18:40:01 2023 +0200
Temporarily limit botocore upgrades (#31098)
The latest botocore (1.29.127) breaks the way moto creates SQS
queues and we need to limit it temporarily so that it will not
fail our tests.
Related: https://github.com/getmoto/moto/issues/6286
Related: i#31087
---
Dockerfile.ci | 5 ++++-
scripts/docker/entrypoint_ci.sh | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Dockerfile.ci b/Dockerfile.ci
index 6169b6066f..bf2b44bac1 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -1132,7 +1132,10 @@ if [[ ${UPGRADE_BOTO=} == "true" ]]; then
echo "${COLOR_BLUE}Upgrading boto3, botocore to latest version to run
Amazon tests with them${COLOR_RESET}"
echo
pip uninstall aiobotocore -y || true
- pip install --upgrade boto3 botocore
+ # Temporarily limit upgrade of botocore to be less than 1.29.127
+ # in order to avoid failing on SQS tests
+ # See https://github.com/getmoto/moto/issues/6286 and
https://github.com/apache/airflow/issues/31087
+ pip install --upgrade boto3 "botocore<1.29.127"
fi
readonly SELECTED_TESTS CLI_TESTS API_TESTS PROVIDERS_TESTS CORE_TESTS
WWW_TESTS \
ALL_TESTS ALL_PRESELECTED_TESTS
diff --git a/scripts/docker/entrypoint_ci.sh b/scripts/docker/entrypoint_ci.sh
index ca853e74c9..bdfd90f4b8 100755
--- a/scripts/docker/entrypoint_ci.sh
+++ b/scripts/docker/entrypoint_ci.sh
@@ -562,7 +562,10 @@ if [[ ${UPGRADE_BOTO=} == "true" ]]; then
echo "${COLOR_BLUE}Upgrading boto3, botocore to latest version to run
Amazon tests with them${COLOR_RESET}"
echo
pip uninstall aiobotocore -y || true
- pip install --upgrade boto3 botocore
+ # Temporarily limit upgrade of botocore to be less than 1.29.127
+ # in order to avoid failing on SQS tests
+ # See https://github.com/getmoto/moto/issues/6286 and
https://github.com/apache/airflow/issues/31087
+ pip install --upgrade boto3 "botocore<1.29.127"
fi
readonly SELECTED_TESTS CLI_TESTS API_TESTS PROVIDERS_TESTS CORE_TESTS
WWW_TESTS \
ALL_TESTS ALL_PRESELECTED_TESTS