Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Jul 14, 2022

When running the builds from non-main, we do not want to use
provider packages built locally, but we want to install those from
PyPI. This is achieved by skipping the step of building providers
in case default branch is not main.

During this change it was also discovered that we do not need
AIRFLOW_FROM_CONTEXT flag to indicate whether airflow is
among those being installed from docker-context files. This is
now detected automatically and airflow is installed from Pypi
if not installed from docker context files. Providers
and airflow are automatically detected and installed if they are
present.

Installing pre-cached dependencies from GitHub is skipped in
case docker-context-files are used.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
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.

When running the builds from non-main, we do not want to use
provider packages built locally, but we want to install those from
PyPI. This is achieved by skipping the step of building providers
in case default branch is not main.

During this change it was also discovered that we do not need
AIRFLOW_FROM_CONTEXT flag to indicate whether airflow is
among those being installed from docker-context files. This is
now detected automatically and airflow is installed from Pypi
if not installed from docker context files. Providers
and airflow are automatically detected and installed if they are
present.

Installing pre-cached dependencies from GitHub is skipped in
case docker-context-files are used.
@potiuk
Copy link
Member Author

potiuk commented Jul 14, 2022

Another change needed to make PRs to v2-3-stable succeed on top of #25053

@potiuk
Copy link
Member Author

potiuk commented Jul 18, 2022

Anyone here? I need that one to get the v2-3* back in order (for PR case)

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
@potiuk potiuk merged commit 67a24ae into apache:main Jul 19, 2022
@potiuk potiuk deleted the skip-provider-package-building-in-non-main branch July 19, 2022 12:37
potiuk added a commit that referenced this pull request Jul 21, 2022
* Disable provider packages building for non-main branch builds

When running the builds from non-main, we do not want to use
provider packages built locally, but we want to install those from
PyPI. This is achieved by skipping the step of building providers
in case default branch is not main.

During this change it was also discovered that we do not need
AIRFLOW_FROM_CONTEXT flag to indicate whether airflow is
among those being installed from docker-context files. This is
now detected automatically and airflow is installed from Pypi
if not installed from docker context files. Providers
and airflow are automatically detected and installed if they are
present.

Installing pre-cached dependencies from GitHub is skipped in
case docker-context-files are used.

(cherry picked from commit 67a24ae)
@ephraimbuddy ephraimbuddy added this to the Airflow 2.3.4 milestone Aug 15, 2022
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:production-image Production image improvements and fixes changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants