This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-8-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 75dc15795033fa23b5edd8d084d38c3bf1de7744
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Dec 18 21:18:56 2023 +0100

    Add steps to update constraints and adjust version for chicken-egg (#36288)
    
    When Chicken-egg providers are released, we also have to do some
    manual adjustments of constraints and version of airflow in
    the v2-8-test branch.
    
    (cherry picked from commit 35117aa9e931ec6b9e4c5669cd23014bd38c7514)
---
 dev/README_RELEASE_AIRFLOW.md | 35 +++++++++++++++++++++++++++++++----
 1 file changed, 31 insertions(+), 4 deletions(-)

diff --git a/dev/README_RELEASE_AIRFLOW.md b/dev/README_RELEASE_AIRFLOW.md
index 797f24ef9e..5b1ad59a40 100644
--- a/dev/README_RELEASE_AIRFLOW.md
+++ b/dev/README_RELEASE_AIRFLOW.md
@@ -767,11 +767,34 @@ breeze release-management start-release 
--release-candidate ${RC} --previous-rel
 
 ## Remove chicken-egg providers
 
-For the first MINOR (X.Y.0) release - remove all providers from 
``CHICKEN_EGG_PROVIDERS`` list
-in ``src/airflow_breeze/global_constants.py`` that have >= ``X.Y.0`` in the 
corresponding provider.yaml file.
+For the first MINOR (X.Y.0) release you need to do few more steps if there are 
new "chicken-egg" providers
+that have min-airflow version set to X.Y.0
 
-In case the provider should also be installed in the image (it is part of 
``airflow/providers/installed_providers.txt``)
-it should also be added at this moment to ``Dockerfile`` to the list of 
default extras in the lin with ``AIRFLOW_EXTRAS``:
+* NOTE! WE MIGHT WANT TO AUTOMATE THAT STEP IN THE FUTURE
+
+1. Checkout the constraints-2-* branch and update the ``constraints-3*.txt`` 
file with the new provider
+   version. Find the place where the provider should be added, add it with the 
latest provider version.
+
+```
+apache-airflow-providers-PROVIDER==VERSION
+```
+
+Commit, push and tag this change with ``constraints-X.Y.Z`` tag:
+
+```bash
+git add
+git commit -m "Add chicken-egg provider apache-airflow-providers-PROVIDER"
+git tag -s constraints-X.Y.Z --force
+git push -f apache constraints-X.Y.Z
+```
+
+
+2. remove providers from ``CHICKEN_EGG_PROVIDERS`` list  in 
``src/airflow_breeze/global_constants.py``
+   that have >= ``X.Y.0`` in the corresponding provider.yaml file.
+
+
+3. In case the provider should also be installed in the image (it is part of 
``airflow/providers/installed_providers.txt``)
+   it should also be added at this moment to ``Dockerfile`` to the list of 
default extras in the line with ``AIRFLOW_EXTRAS``:
 
 ```Dockerfile
 ARG AIRFLOW_EXTRAS=".....,<provider>,...."
@@ -779,6 +802,10 @@ ARG AIRFLOW_EXTRAS=".....,<provider>,...."
 
 This change needs to be merged to ``main`` and cherry-picked to ``v2-*-test`` 
branch before building the image.
 
+4. Make sure to update Airflow version in ``v2-*-test`` branch after 
cherry-picking to X.Y.1.dev0 in
+   ``airflow/__init__.py``
+
+
 ## Manually prepare production Docker Image
 
 Building the image is triggered by running the

Reply via email to