You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2023/08/08 22:37:28 UTC

[GitHub] [airflow] hussein-awala opened a new pull request, #33237: Add missing re2 dependency to cncf.kubernetes and celery providers

hussein-awala opened a new pull request, #33237:
URL: https://github.com/apache/airflow/pull/33237

   <!--
    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/
   -->
   re lib was replaced by re2 in Airflow core and Kubernetes (#32303), and the dependency was added only to Airflow setup (#32060). However, when we install the Kubernetes provider with an old version of Airflow, the provider will be broken because the re2 is not installed automatically, and we need to add it explicitly:
   ```bash
   python -m venv airflow_2_4_3
   
   airflow_2_4_3/bin/pip install apache_airflow==2.4.3
   
   airflow_2_4_3/bin/pip install apache-airflow-providers-cncf-kubernetes==7.4.1
   
   airflow_2_4_3/bin/python
   
   Python 3.9.13 (main, Oct 13 2022, 21:15:33) 
   [GCC 11.2.0] :: Anaconda, Inc. on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> from airflow.providers.cncf.kubernetes.pod import KubernetesPodOperator
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "<PATH TO VENV>/airflow/__init__.py", line 52, in <module>
       from airflow import configuration, settings
     File "<PATH TO VENV>/airflow/configuration.py", line 41, in <module>
       import re2
   ModuleNotFoundError: No module named 're2'
   ```
   I think we'll have the same problem with celery provider when we want to use the new executor with the old Airflow versions (>=2.4.0, <2.7.0).
   
   This PR add `google-re2` dependency to cncf.kubernetes and celery providers.
   
   <!-- 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] jedcunningham commented on pull request #33237: Add missing re2 dependency to cncf.kubernetes and celery providers

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

   Should we update the precommit check to cover providers now as well?


-- 
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 #33237: Add missing re2 dependency to cncf.kubernetes and celery providers

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

   cc: @eladkal - for me sounds like a good reason to release celery and kubernetes provider soon(ish).


-- 
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 #33237: Add missing re2 dependency to cncf.kubernetes and celery providers

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

   > Thanks for the fix, I missed that
   
   We all did :) 


-- 
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 #33237: Add missing re2 dependency to cncf.kubernetes and celery providers

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

   Waits for this one to be merged in https://github.com/apache/airflow/pull/33240


-- 
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 #33237: Add missing re2 dependency to cncf.kubernetes and celery providers

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


-- 
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] pierrejeambrun commented on pull request #33237: Add missing re2 dependency to cncf.kubernetes and celery providers

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

   Thanks for the fix, I missed that


-- 
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] hussein-awala commented on pull request #33237: Add missing re2 dependency to cncf.kubernetes and celery providers

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

   > Should we update the precommit check to cover providers now as well?
   
   +1, but should be implemented in a separate PR as @potiuk suggested.


-- 
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 #33237: Add missing re2 dependency to cncf.kubernetes and celery providers

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

   > Should we update the precommit check to cover providers now as well?
   
   Good point . I will add it as a separate PR. 


-- 
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