Skip to content

[v2-11-test] Fail prod image release when constraint build fails (#62… - #62837

Merged
potiuk merged 1 commit into
apache:v2-11-testfrom
potiuk:backport-62121a0-v2-11-test
Mar 4, 2026
Merged

[v2-11-test] Fail prod image release when constraint build fails (#62…#62837
potiuk merged 1 commit into
apache:v2-11-testfrom
potiuk:backport-62121a0-v2-11-test

Conversation

@potiuk

@potiuk potiuk commented Mar 4, 2026

Copy link
Copy Markdown
Member

…387)

When constraint build fails, building prod and ci image by default fall back to "no-constraints" build in order to account for newly added or modified dependencies that conflict with constraints, however in case of release build, such fallback should not happen - simply the build should fail if constraints are conflicting.

This avoids the case that we had with virtualenv being removed from PyPI pypa/virtualenv#3061 (cherry picked from commit 62121a0)

Closes: #62349


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

…che#62387)

When constraint build fails, building prod and ci image by default
fall back to "no-constraints" build in order to account for
newly added or modified dependencies that conflict with constraints,
however in case of release build, such fallback should not happen -
simply the build should fail if constraints are conflicting.

This avoids the case that we had with virtualenv being removed
from PyPI pypa/virtualenv#3061
(cherry picked from commit 62121a0)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Closes: apache#62349
@potiuk
potiuk merged commit e89f185 into apache:v2-11-test Mar 4, 2026
8 checks passed
@potiuk
potiuk deleted the backport-62121a0-v2-11-test branch March 4, 2026 00:27
@potiuk potiuk added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Mar 8, 2026
@potiuk potiuk added this to the Airflow 2.11.2 milestone Mar 8, 2026
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..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant