This is an automated email from the ASF dual-hosted git repository.

jasonliu 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 d51e0a4fc97 Fix `--skip-assets-compilation` option in Breeze (#61226)
d51e0a4fc97 is described below

commit d51e0a4fc978e741162f8a0785d601b6827dae17
Author: Vincent <[email protected]>
AuthorDate: Thu Jan 29 21:33:56 2026 -0500

    Fix `--skip-assets-compilation` option in Breeze (#61226)
---
 Dockerfile.ci                                                | 4 +++-
 dev/breeze/doc/images/output_start-airflow.txt               | 2 +-
 dev/breeze/src/airflow_breeze/commands/developer_commands.py | 2 ++
 dev/breeze/src/airflow_breeze/params/shell_params.py         | 2 ++
 scripts/docker/entrypoint_ci.sh                              | 4 +++-
 5 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/Dockerfile.ci b/Dockerfile.ci
index 9ceea24a12e..8a7cbad1daa 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -1243,7 +1243,9 @@ function environment_initialization() {
             export AIRFLOW__CELERY__POOL=${AIRFLOW__CELERY__POOL:-solo}
         fi
         export AIRFLOW__CORE__LOAD_EXAMPLES=${LOAD_EXAMPLES}
-        wait_for_asset_compilation
+        if [[ ${SKIP_ASSETS_COMPILATION:="false"} == "false" ]]; then
+            wait_for_asset_compilation
+        fi
         if [[ ${TERMINAL_MULTIPLEXER:="mprocs"} == "mprocs" ]]; then
             # shellcheck source=scripts/in_container/bin/run_mprocs
             exec run_mprocs
diff --git a/dev/breeze/doc/images/output_start-airflow.txt 
b/dev/breeze/doc/images/output_start-airflow.txt
index 7fe59e444f1..de29816f1dc 100644
--- a/dev/breeze/doc/images/output_start-airflow.txt
+++ b/dev/breeze/doc/images/output_start-airflow.txt
@@ -1 +1 @@
-b40aa6672a59264cc7cc7effa7fec31e
+440cc24ddcbba94765894b2ec13fba5f
diff --git a/dev/breeze/src/airflow_breeze/commands/developer_commands.py 
b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
index c6da3fd755f..31a2eafc4d6 100644
--- a/dev/breeze/src/airflow_breeze/commands/developer_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
@@ -515,6 +515,7 @@ option_executor_start_airflow = click.option(
     help="Skips compilation of assets when starting airflow even if the 
content of www changed "
     "(mutually exclusive with --dev-mode).",
     is_flag=True,
+    envvar="SKIP_ASSETS_COMPILATION",
 )
 @click.option(
     "--dev-mode",
@@ -710,6 +711,7 @@ def start_airflow(
         providers_skip_constraints=providers_skip_constraints,
         python=python,
         restart=restart,
+        skip_assets_compilation=skip_assets_compilation,
         standalone_dag_processor=standalone_dag_processor,
         start_airflow=True,
         terminal_multiplexer=terminal_multiplexer,
diff --git a/dev/breeze/src/airflow_breeze/params/shell_params.py 
b/dev/breeze/src/airflow_breeze/params/shell_params.py
index ba0c4b85123..c7b86fab946 100644
--- a/dev/breeze/src/airflow_breeze/params/shell_params.py
+++ b/dev/breeze/src/airflow_breeze/params/shell_params.py
@@ -227,6 +227,7 @@ class ShellParams:
     restart: bool = False
     run_db_tests_only: bool = False
     run_tests: bool = False
+    skip_assets_compilation: bool = False
     skip_db_tests: bool = False
     skip_environment_initialization: bool = False
     skip_image_upgrade_check: bool = False
@@ -671,6 +672,7 @@ class ShellParams:
         _set_var(_env, "SKIP_SSH_SETUP", self.skip_ssh_setup)
         _set_var(_env, "SQLITE_URL", self.sqlite_url)
         _set_var(_env, "SSH_PORT", None, SSH_PORT)
+        _set_var(_env, "SKIP_ASSETS_COMPILATION", self.skip_assets_compilation)
         _set_var(_env, "STANDALONE_DAG_PROCESSOR", 
self.standalone_dag_processor)
         _set_var(_env, "START_AIRFLOW", self.start_airflow)
         _set_var(_env, "TERMINAL_MULTIPLEXER", self.terminal_multiplexer)
diff --git a/scripts/docker/entrypoint_ci.sh b/scripts/docker/entrypoint_ci.sh
index 7e291f40adb..a6605680040 100755
--- a/scripts/docker/entrypoint_ci.sh
+++ b/scripts/docker/entrypoint_ci.sh
@@ -218,7 +218,9 @@ function environment_initialization() {
             export AIRFLOW__CELERY__POOL=${AIRFLOW__CELERY__POOL:-solo}
         fi
         export AIRFLOW__CORE__LOAD_EXAMPLES=${LOAD_EXAMPLES}
-        wait_for_asset_compilation
+        if [[ ${SKIP_ASSETS_COMPILATION:="false"} == "false" ]]; then
+            wait_for_asset_compilation
+        fi
         if [[ ${TERMINAL_MULTIPLEXER:="mprocs"} == "mprocs" ]]; then
             # shellcheck source=scripts/in_container/bin/run_mprocs
             exec run_mprocs

Reply via email to