You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2023/08/23 07:32:14 UTC

[GitHub] [airflow] potiuk opened a new pull request, #33649: Upgrade botocore/aiobotocore minimum requirements

potiuk opened a new pull request, #33649:
URL: https://github.com/apache/airflow/pull/33649

   Botocore has a very peculiar process of releasing new version every day, which means that it gives `pip` hard time to figure what will be the non-conflicting set of packages when we have too low of a minium version set as requirement.
   
   Since we had > 1.24 that means that `pip` had to consider more than 340 versions for botocore, but also for related mypy packages and also a number of aiobotocore packages when resolving eager-upgrade.
   
   We limit all the relevant packages to 1.28 as minimum version now, and we should continue doing that regularly in the future.
   
   <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
   
      http://www.apache.org/licenses/LICENSE-2.0
   
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
    -->
   
   <!--
   Thank you for contributing! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   In case of an existing issue, reference it using one of the following:
   
   closes: #ISSUE
   related: #ISSUE
   
   How to write a good git commit message:
   http://chris.beams.io/posts/git-commit/
   -->
   
   
   
   <!-- Please keep an empty line above the dashes. -->
   ---
   **^ Add meaningful description above**
   Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)** for more information.
   In case of fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in a newsfragment file, named `{pr_number}.significant.rst` or `{issue_number}.significant.rst`, in [newsfragments](https://github.com/apache/airflow/tree/main/newsfragments).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #33649:
URL: https://github.com/apache/airflow/pull/33649#issuecomment-1689438614

   Applied full tests needed to build for all Python versions. Let's see if the help given to `pip` by specifying higher versions of boto3-related packages will help. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk closed pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed pull request #33649: Upgrade botocore/aiobotocore minimum requirements
URL: https://github.com/apache/airflow/pull/33649


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #33649:
URL: https://github.com/apache/airflow/pull/33649#issuecomment-1689839734

   All right - so fix for constraints was easy - the root cause was yandex we just resumed. I have to temporary disable it until we release it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk merged pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #33649:
URL: https://github.com/apache/airflow/pull/33649


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on a diff in pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #33649:
URL: https://github.com/apache/airflow/pull/33649#discussion_r1302653028


##########
generated/provider_dependencies.json:
##########
@@ -26,12 +26,13 @@
       "apache-airflow>=2.4.0",
       "asgiref",
       "asgiref",
-      "boto3>=1.24.0",
+      "boto3>=1.28.0",
+      "botocore>=1.28.0",

Review Comment:
   Yeah. I have not been sure about it (noticed the difference). If that's the rule then it's cool



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on a diff in pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #33649:
URL: https://github.com/apache/airflow/pull/33649#discussion_r1302605345


##########
Dockerfile.ci:
##########
@@ -1393,11 +1393,10 @@ ENV AIRFLOW_REPO=${AIRFLOW_REPO}\
 RUN echo "Airflow version: ${AIRFLOW_VERSION}"
 
 # Those are additional constraints that are needed for some extras but we do not want to
-# force them on the main Airflow package.
-# Recent aiobotocore (2.6.0+) requires this specific botocore version, while
-# boto3 1.28.17 is the last version supporting that, so we pin them to help pip
-# avoid extra work. Revisit this when a new aiobotocore version is released.
-ARG EAGER_UPGRADE_ADDITIONAL_REQUIREMENTS="botocore==1.31.17 boto3<=1.28.17"
+# force them on the main Airflow package. Currently we need no extra limits as PIP 23.1+ has much better
+# dependency resolution and we do not need to limit the versions of the dependencies
+# aiobotocore is limited temporarily until it stops backtracking pip
+ARG EAGER_UPGRADE_ADDITIONAL_REQUIREMENTS=""

Review Comment:
   I believe this will also remove the need of aiobotocore limiting in EAGER UPGRADE . .. let see.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #33649:
URL: https://github.com/apache/airflow/pull/33649#issuecomment-1689798959

   ok. I think i will need to add a little "trick" for "pypi" providers to also help `pip` to resolve that (at least until we release newer version of the amazon provider with those limits included
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk closed pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed pull request #33649: Upgrade botocore/aiobotocore minimum requirements
URL: https://github.com/apache/airflow/pull/33649


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] Taragolis commented on a diff in pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "Taragolis (via GitHub)" <gi...@apache.org>.
Taragolis commented on code in PR #33649:
URL: https://github.com/apache/airflow/pull/33649#discussion_r1302679871


##########
generated/provider_dependencies.json:
##########
@@ -26,12 +26,13 @@
       "apache-airflow>=2.4.0",
       "asgiref",
       "asgiref",
-      "boto3>=1.24.0",
+      "boto3>=1.28.0",
+      "botocore>=1.28.0",

Review Comment:
   I can't say it is official rule, but this what I observed last 3-4 years, since boto-team resolved dependency hell between their packages, the things was much worse than in `aiobotocore` (to be honest [there is a reason](https://aiobotocore.readthedocs.io/en/latest/contributing.html#background-and-implementation) why aiobotocore has this strict dependency)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] Taragolis commented on a diff in pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "Taragolis (via GitHub)" <gi...@apache.org>.
Taragolis commented on code in PR #33649:
URL: https://github.com/apache/airflow/pull/33649#discussion_r1302619746


##########
generated/provider_dependencies.json:
##########
@@ -26,12 +26,13 @@
       "apache-airflow>=2.4.0",
       "asgiref",
       "asgiref",
-      "boto3>=1.24.0",
+      "boto3>=1.28.0",
+      "botocore>=1.28.0",

Review Comment:
   We could also change lower-bound for `botocore`
   
   ```suggestion
         "botocore>=1.31.0",
   ```
   
   Releases between `boto3` and `botocore` are shifted by 3 minor version, e.g. for boto3==1.28.0 required botocore>=1.31.0,<1.32.0



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] Taragolis commented on a diff in pull request #33649: Upgrade botocore/aiobotocore minimum requirements

Posted by "Taragolis (via GitHub)" <gi...@apache.org>.
Taragolis commented on code in PR #33649:
URL: https://github.com/apache/airflow/pull/33649#discussion_r1302679871


##########
generated/provider_dependencies.json:
##########
@@ -26,12 +26,13 @@
       "apache-airflow>=2.4.0",
       "asgiref",
       "asgiref",
-      "boto3>=1.24.0",
+      "boto3>=1.28.0",
+      "botocore>=1.28.0",

Review Comment:
   I can't say it is official rule, but this what I observed last 3-4 years, since boto-team resolved dependency hell between their packages, the things was much worse then in `aiobotocore` (to be honest [there is a reason](https://aiobotocore.readthedocs.io/en/latest/contributing.html#background-and-implementation) why aiobotocore has this strict dependency)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org