Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions dev/README_RELEASE_AIRFLOW.md
Original file line number Diff line number Diff line change
Expand Up @@ -767,18 +767,45 @@ 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>,...."
```

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