Skip to content

Remove special case for building PROD image in non-main branch#50115

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:remove-special-case-for-prod-image-builds
May 2, 2025
Merged

Remove special case for building PROD image in non-main branch#50115
potiuk merged 1 commit intoapache:mainfrom
potiuk:remove-special-case-for-prod-image-builds

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented May 2, 2025

When we removed "chicken-egg-providers" from the build in #49799 we should be able now to build PROD image in v3*test branch without special case of only using PyPI providers. This should work because in v3-*test branch we automatically detect (by presence of relesed tag) whether we should build provider from sources or use it from PyPI. In normal circumstances, we would need use providers fro PyPI, but sometimes (For example for 3.0.1) we need to use some providers from sources before they get released (for example common.messaging 1.0.1 that is the lowest possible common.messaging for Airflow 3.0.1.

This PR removes that special case and switches to the same method of building PROD image in main and in release branch.


^ 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 airflow-core/newsfragments.

@potiuk potiuk requested review from ashb and gopidesupavan as code owners May 2, 2025 07:19
@potiuk potiuk requested review from eladkal and jscheffl May 2, 2025 07:20
@potiuk potiuk force-pushed the remove-special-case-for-prod-image-builds branch from 8dd8633 to 8465d7b Compare May 2, 2025 07:49
When we removed "chicken-egg-providers" from the build in apache#49799 we
should be able now to build PROD image in v3*test branch without special
case of only using PyPI providers. This should work because in
v3-*test branch we automatically detect (by presence of relesed
tag) whether we should build provider from sources or use it from
PyPI. In normal circumstances, we would need use providers fro
PyPI, but sometimes (For example for 3.0.1) we need to use some
providers from sources before they get released (for example
common.messaging 1.0.1 that is the lowest possible common.messaging
for Airflow 3.0.1.

This PR removes that special case and switches to the same method
of building PROD image in main and in release branch.
@potiuk potiuk force-pushed the remove-special-case-for-prod-image-builds branch from 8465d7b to 08bd275 Compare May 2, 2025 07:57
@potiuk potiuk added this to the Airflow 3.0.1 milestone May 2, 2025
@potiuk potiuk added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label May 2, 2025
@potiuk potiuk requested a review from kaxil May 2, 2025 08:44
@potiuk
Copy link
Member Author

potiuk commented May 2, 2025

Need that one to backport common.messaging to v3-0-test

@potiuk potiuk merged commit 9deb2a7 into apache:main May 2, 2025
98 checks passed
@potiuk potiuk deleted the remove-special-case-for-prod-image-builds branch May 2, 2025 10:42
@github-actions
Copy link

github-actions bot commented May 2, 2025

Backport failed to create: v3-0-test. View the failure log Run details

Status Branch Result
v3-0-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 9deb2a7 v3-0-test

This should apply the commit to the v3-0-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

potiuk added a commit to potiuk/airflow that referenced this pull request May 2, 2025
…ranch (apache#50115)

When we removed "chicken-egg-providers" from the build in apache#49799 we
should be able now to build PROD image in v3*test branch without special
case of only using PyPI providers. This should work because in
v3-*test branch we automatically detect (by presence of relesed
tag) whether we should build provider from sources or use it from
PyPI. In normal circumstances, we would need use providers fro
PyPI, but sometimes (For example for 3.0.1) we need to use some
providers from sources before they get released (for example
common.messaging 1.0.1 that is the lowest possible common.messaging
for Airflow 3.0.1.

This PR removes that special case and switches to the same method
of building PROD image in main and in release branch.
(cherry picked from commit 9deb2a7)

Co-authored-by: Jarek Potiuk <[email protected]>
potiuk added a commit that referenced this pull request May 2, 2025
…ranch (#50115) (#50118)

When we removed "chicken-egg-providers" from the build in #49799 we
should be able now to build PROD image in v3*test branch without special
case of only using PyPI providers. This should work because in
v3-*test branch we automatically detect (by presence of relesed
tag) whether we should build provider from sources or use it from
PyPI. In normal circumstances, we would need use providers fro
PyPI, but sometimes (For example for 3.0.1) we need to use some
providers from sources before they get released (for example
common.messaging 1.0.1 that is the lowest possible common.messaging
for Airflow 3.0.1.

This PR removes that special case and switches to the same method
of building PROD image in main and in release branch.
(cherry picked from commit 9deb2a7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants