Skip to content

Uses CI images built in previous step to prepare PROD image#20889

Merged
uranusjr merged 1 commit intoapache:mainfrom
potiuk:use-last-pushed-ci-images-for-prod-image-build
Jan 18, 2022
Merged

Uses CI images built in previous step to prepare PROD image#20889
uranusjr merged 1 commit intoapache:mainfrom
potiuk:use-last-pushed-ci-images-for-prod-image-build

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Jan 15, 2022

PROD image building needs CI images in order to prepare provider
packages needed to build PROD images. Those were taken from
the "latest" image but should be taken from the CI image built
in the previous step - the GITHUB_REGISTRY_PULL_IMAGE_TAG was
pointing to latest. This was not a problem in vast majority of
cases (it could only be problem if new dependencies were added
which would break validation of dependencies in the CI image)
or when you tried to push a change to the main branch in
forked image and you never pushed a latest CI image there).

This change sets GITHUB_REGISTRY_PULL_IMAGE_TAG to be the
same as just used GITHUB_REGISTRY_PUSH_IMAGE_TAG to push the
CI images - so it will always pull the CI images pushed in the
previous job.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

PROD image building needs CI images in order to prepare provider
packages needed to build PROD images. Those were taken from
the "latest" image but should be taken from the CI image built
in the previous step - the GITHUB_REGISTRY_PULL_IMAGE_TAG was
pointing to latest. This was not a problem in vast majority of
cases (it could only be problem if new dependencies were added
which would break validation of dependencies in the CI image)
or when you tried to push a change to the `main` branch in
forked image and you never pushed a latest CI image there).

This change sets GITHUB_REGISTRY_PULL_IMAGE_TAG to be the
same as just used GITHUB_REGISTRY_PUSH_IMAGE_TAG to push the
CI images - so it will always pull the CI images pushed in the
previous job.
@potiuk
Copy link
Member Author

potiuk commented Jan 15, 2022

cc: @edithturn - this was the bug you discovered why testing #20701 in your fork. Good catch !

@potiuk
Copy link
Member Author

potiuk commented Jan 17, 2022

@ashb @uranusjr @ephraimbuddy @mik-laj - this one needs to be merged to fix PROD build in #20910

@potiuk potiuk changed the title Uses CI images built in previouse step to prepare PROD image Uses CI images built in previous step to prepare PROD image Jan 17, 2022
@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Jan 18, 2022
@uranusjr uranusjr merged commit fce46e6 into apache:main Jan 18, 2022
@potiuk potiuk added this to the Airflow 2.2.4 milestone Jan 20, 2022
@potiuk potiuk added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Jan 22, 2022
potiuk added a commit that referenced this pull request Jan 22, 2022
jedcunningham pushed a commit that referenced this pull request Jan 27, 2022
@potiuk potiuk deleted the use-last-pushed-ci-images-for-prod-image-build branch July 29, 2022 20:14
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..) full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants