This is an automated email from the ASF dual-hosted git repository.
ash pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new da670180673 Build images with constraints when building pre-release
images (#49092)
da670180673 is described below
commit da670180673667dc41f602d05aa92408ec83dcff
Author: Ash Berlin-Taylor <[email protected]>
AuthorDate: Thu Apr 10 21:36:58 2025 +0100
Build images with constraints when building pre-release images (#49092)
We noticed this problem when trying to build docker iamges for 3.0.0rc2, and
on viewing the build output the issue was identified as building without
constraints which caused pip hit the "backtracked too much" error.
If we set this option then it will build with constraints even when the
chicken-egg providers are used. This might not work everytime (as the
constraints might end up confilcting with the requirements of the specific
chicken-egg'd provider), but at least for this build it works fine.
---
dev/breeze/src/airflow_breeze/commands/release_management_commands.py | 1 +
1 file changed, 1 insertion(+)
diff --git
a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
index dd9a020bffd..91b8a57e01e 100644
--- a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
@@ -2046,6 +2046,7 @@ def _add_chicken_egg_providers_to_build_args(
f"pre release and we have chicken-egg packages
'{chicken_egg_providers}' defined[/]"
)
python_build_args["INSTALL_DISTRIBUTIONS_FROM_CONTEXT"] = "true"
+ python_build_args["USE_CONSTRAINTS_FOR_CONTEXT_DISTRIBUTIONS"] = "true"
python_build_args["DOCKER_CONTEXT_FILES"] = "./docker-context-files"