Skip to content

Retrieve airflow branch/constraints from env variables#25053

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:branches-can-be-overridden
Jul 19, 2022
Merged

Retrieve airflow branch/constraints from env variables#25053
potiuk merged 1 commit intoapache:mainfrom
potiuk:branches-can-be-overridden

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Jul 14, 2022

We are using the "main" breeze to build even v2-3 images and
it has to retrieve the branch and constraints not from the
Python constants but from environment variables that are
set by build-image.yaml. Otherwise "main" is used to push/pull
image and constraints.

This pr changes the retrieval in build image to retrieve
branch, constraints branch (and debian version) from env
variables if they are set.


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

@potiuk
Copy link
Member Author

potiuk commented Jul 14, 2022

We need than one merged in main in order to #25050 to succed in v2-3-stable branch

@potiuk
Copy link
Member Author

potiuk commented Jul 14, 2022

The branch env variables are set here:

- name: "Retrieve defaults from branch_defaults.py"

@potiuk
Copy link
Member Author

potiuk commented Jul 18, 2022

Also woudl love some revirews here. I need that one to get the "PR to v2-3-stable" flow working.

We are using the "main" breeze to build even v2-3 images and
it has to retrieve the branch and constraints not from the
Python constants but from environment variables that are
set by build-image.yaml. Otherwise "main" is used to push/pull
image and constraints.

This pr changes the retrieval in build image to retrieve
branch, constraints branch (and debian version) from env
variables if they are set.
@potiuk potiuk force-pushed the branches-can-be-overridden branch from bab0eaf to 32a7251 Compare July 19, 2022 10:43
@potiuk potiuk merged commit f36f81e into apache:main Jul 19, 2022
@potiuk potiuk deleted the branches-can-be-overridden branch July 19, 2022 12:38
potiuk added a commit that referenced this pull request Jul 21, 2022
We are using the "main" breeze to build even v2-3 images and
it has to retrieve the branch and constraints not from the
Python constants but from environment variables that are
set by build-image.yaml. Otherwise "main" is used to push/pull
image and constraints.

This pr changes the retrieval in build image to retrieve
branch, constraints branch (and debian version) from env
variables if they are set.

(cherry picked from commit f36f81e)
@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 changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants