From 85375fae0a6d5dca9c18c93d93e1cbcb04aa2362 Mon Sep 17 00:00:00 2001 From: LIU ZHE YOU Date: Wed, 24 Dec 2025 13:26:42 +0800 Subject: [PATCH 1/5] Add --mount-ui-dist flag for Breeze start-airflow --- dev/breeze/doc/images/output-commands.svg | 4 +- dev/breeze/doc/images/output_shell.svg | 28 ++--- dev/breeze/doc/images/output_shell.txt | 2 +- .../doc/images/output_start-airflow.svg | 28 ++--- .../doc/images/output_start-airflow.txt | 2 +- .../airflow_breeze/commands/common_options.py | 8 ++ .../commands/developer_commands.py | 7 ++ .../commands/developer_commands_config.py | 2 + .../src/airflow_breeze/params/shell_params.py | 5 + .../src/airflow_breeze/utils/path_utils.py | 1 + scripts/ci/docker-compose/mount-ui-dist.yml | 26 +++++ .../install_airflow_and_providers.py | 102 ++++++++++++++++-- 12 files changed, 177 insertions(+), 38 deletions(-) create mode 100644 scripts/ci/docker-compose/mount-ui-dist.yml diff --git a/dev/breeze/doc/images/output-commands.svg b/dev/breeze/doc/images/output-commands.svg index 69d451a3037c5..3d7c5d10d730d 100644 --- a/dev/breeze/doc/images/output-commands.svg +++ b/dev/breeze/doc/images/output-commands.svg @@ -357,8 +357,8 @@ localstack | mongo | mssql | openlineage | otel | pinot | qdrant | redis | redis | statsd | tinkerpop | trino | ydb)                                                    ---standalone-dag-processor/--no-standalone-dag-processoRun standalone dag processor for start-airflow          -r(required for Airflow 3).                               +--standalone-dag-processor/--no-standalone-dag-process…Run standalone dag processor for start-airflow          +(required for Airflow 3).                               [default: standalone-dag-processor]                     --auth-managerSpecify the auth manager to set        (>SimpleAuthManager< | FabAuthManager) diff --git a/dev/breeze/doc/images/output_shell.svg b/dev/breeze/doc/images/output_shell.svg index 6b02fe874448c..0d7376c3a4f17 100644 --- a/dev/breeze/doc/images/output_shell.svg +++ b/dev/breeze/doc/images/output_shell.svg @@ -1,4 +1,4 @@ - + Airflow.                                                --load-default-connections-cEnable configuration to load default connections when   starting Airflow.                                       ---standalone-dag-processor/--no-standalone-dag-processoRun standalone dag processor for start-airflow          -r(required for Airflow 3).                               +--standalone-dag-processor/--no-standalone-dag-process…Run standalone dag processor for start-airflow          +(required for Airflow 3).                               [default: standalone-dag-processor]                     --start-api-server-with-examplesStart minimal airflow api-server with examples (for     testing purposes) when entering breeze.                 @@ -713,8 +716,8 @@ --excluded-providersJSON-string of dictionary containing excluded providers  per python version ({'3.12': ['provider']})              (TEXT)                                                   ---install-airflow-with-constraints/--no-install-airflow-Install airflow in a separate step, with constraints     -with-constraintsdetermined from package or airflow version.              +--install-airflow-with-constraints/--no-install-airflow…Install airflow in a separate step, with constraints     +determined from package or airflow version.              [default: install-airflow-with-constraints]              --install-selected-providersComma-separated list of providers selected to be         installed (implies --use-distributions-from-dist).       @@ -773,11 +776,12 @@ --no-db-cleanupDo not clear the database before each test module ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Common options ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ ---answer-aForce answer to questions.(y | n | q | yes | no | quit) ---dry-run-DIf dry-run is set, commands are only printed, not executed. ---verbose-vPrint verbose information about performed steps. ---help-hShow this message and exit. -╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +--answer-aForce answer to questions.(y | n | q | yes | no | quit) +--dry-run-DIf dry-run is set, commands are only printed, not executed. +--mount-ui-distMount pre-built UI dist directories from host to container to skip UI assets compilation. +--verbose-vPrint verbose information about performed steps. +--help-hShow this message and exit. +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/dev/breeze/doc/images/output_shell.txt b/dev/breeze/doc/images/output_shell.txt index 6fcf20683f026..13de81f0dbeb1 100644 --- a/dev/breeze/doc/images/output_shell.txt +++ b/dev/breeze/doc/images/output_shell.txt @@ -1 +1 @@ -66d34d1a3ea29406de713f39fad0f931 +6e858ab0e0a030a0e7043b4095e75528 diff --git a/dev/breeze/doc/images/output_start-airflow.svg b/dev/breeze/doc/images/output_start-airflow.svg index a1ee0a3da907a..a64b1206df28b 100644 --- a/dev/breeze/doc/images/output_start-airflow.svg +++ b/dev/breeze/doc/images/output_start-airflow.svg @@ -1,4 +1,4 @@ - +