Skip to content

Commit bb859bd

Browse files
Add opensearch to default PROD image extras (#68659)
#65374 added opensearch to prod_image_installed_providers.txt (so the PROD image verify asserts it is installed) but did not add it to the default image extras. opensearch is therefore the only required provider that is neither a default extra nor a bundled core dependency, so its only path into the image was being built from source. On a release branch the source build skips already-released providers (the final tag providers-opensearch/<v> exists), so opensearch is the single required provider with no fallback and the PROD image verify (test_required_providers_are_installed) fails. main passes only because its dev-mode build compiles every provider from source in-place. Add opensearch to the default extras so it is backfilled from PyPI the same way every other required provider is, making the PROD image consistent across dev and release builds.
1 parent 48d0ad5 commit bb859bd

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# much smaller.
3939
#
4040
# Use the same builder frontend version for everyone
41-
ARG AIRFLOW_EXTRAS="aiobotocore,amazon,async,celery,cncf-kubernetes,common-io,common-messaging,docker,elasticsearch,fab,ftp,git,google,google-auth,graphviz,grpc,hashicorp,http,ldap,microsoft-azure,mysql,odbc,openlineage,pandas,postgres,redis,sendgrid,sftp,slack,snowflake,ssh,statsd,uv"
41+
ARG AIRFLOW_EXTRAS="aiobotocore,amazon,async,celery,cncf-kubernetes,common-io,common-messaging,docker,elasticsearch,fab,ftp,git,google,google-auth,graphviz,grpc,hashicorp,http,ldap,microsoft-azure,mysql,odbc,openlineage,opensearch,pandas,postgres,redis,sendgrid,sftp,slack,snowflake,ssh,statsd,uv"
4242
ARG ADDITIONAL_AIRFLOW_EXTRAS=""
4343
ARG ADDITIONAL_PYTHON_DEPS=""
4444

dev/breeze/doc/images/output_prod-image_build.svg

Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7def92d438b944e1f957b30ba27fc28d
1+
1760d6aa232389338d997ce33e5032a2

dev/breeze/src/airflow_breeze/global_constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ def get_airflow_extras():
794794
"mysql",
795795
"odbc",
796796
"openlineage",
797+
"opensearch",
797798
"pandas",
798799
"postgres",
799800
"redis",

docker-stack-docs/build-arg-ref.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ List of default extras in the production Dockerfile:
108108
* mysql
109109
* odbc
110110
* openlineage
111+
* opensearch
111112
* pandas
112113
* postgres
113114
* redis

0 commit comments

Comments
 (0)