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

jscheffl 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 236dab6406e Breeze exit on incompatible arguments (#59148)
236dab6406e is described below

commit 236dab6406e55f88b879f69154e54f2763ce5d3b
Author: Kunal Bhattacharya <[email protected]>
AuthorDate: Sun Dec 7 18:19:56 2025 +0530

    Breeze exit on incompatible arguments (#59148)
    
    * Breeze exit on incompatible arguments
    
    * Apply suggestion from @choo121600
    
    Co-authored-by: Yeonguk Choo <[email protected]>
    
    * Nit fix
    
    ---------
    
    Co-authored-by: Jens Scheffler <[email protected]>
    Co-authored-by: Yeonguk Choo <[email protected]>
---
 dev/breeze/doc/images/output_start-airflow.svg               |  2 +-
 dev/breeze/doc/images/output_start-airflow.txt               |  2 +-
 dev/breeze/src/airflow_breeze/commands/developer_commands.py | 10 +++++++++-
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/dev/breeze/doc/images/output_start-airflow.svg 
b/dev/breeze/doc/images/output_start-airflow.svg
index ce6e35c4ad7..a1ee0a3da90 100644
--- a/dev/breeze/doc/images/output_start-airflow.svg
+++ b/dev/breeze/doc/images/output_start-airflow.svg
@@ -586,7 +586,7 @@
 </text><text class="breeze-start-airflow-r5" x="0" y="1581.6" 
textLength="12.2" clip-path="url(#breeze-start-airflow-line-64)">│</text><text 
class="breeze-start-airflow-r4" x="24.4" y="1581.6" textLength="305" 
clip-path="url(#breeze-start-airflow-line-64)">--skip-assets-compilation</text><text
 class="breeze-start-airflow-r1" x="378.2" y="1581.6" textLength="1061.4" 
clip-path="url(#breeze-start-airflow-line-64)">Skips&#160;compilation&#160;of&#160;assets&#160;when&#160;starting&#160;airfl
 [...]
 </text><text class="breeze-start-airflow-r5" x="0" y="1606" textLength="12.2" 
clip-path="url(#breeze-start-airflow-line-65)">│</text><text 
class="breeze-start-airflow-r1" x="378.2" y="1606" textLength="305" 
clip-path="url(#breeze-start-airflow-line-65)">(mutually&#160;exclusive&#160;with&#160;</text><text
 class="breeze-start-airflow-r4" x="683.2" y="1606" textLength="122" 
clip-path="url(#breeze-start-airflow-line-65)">--dev-mode</text><text 
class="breeze-start-airflow-r1" x="805.2" y="16 [...]
 </text><text class="breeze-start-airflow-r5" x="0" y="1630.4" 
textLength="12.2" clip-path="url(#breeze-start-airflow-line-66)">│</text><text 
class="breeze-start-airflow-r4" x="24.4" y="1630.4" textLength="122" 
clip-path="url(#breeze-start-airflow-line-66)">--dev-mode</text><text 
class="breeze-start-airflow-r1" x="378.2" y="1630.4" textLength="1061.4" 
clip-path="url(#breeze-start-airflow-line-66)">Starts&#160;api-server&#160;in&#160;dev&#160;mode&#160;(assets&#160;are&#160;always&#160;rec
 [...]
-</text><text class="breeze-start-airflow-r5" x="0" y="1654.8" 
textLength="12.2" clip-path="url(#breeze-start-airflow-line-67)">│</text><text 
class="breeze-start-airflow-r1" x="378.2" y="1654.8" textLength="305" 
clip-path="url(#breeze-start-airflow-line-67)">(mutually&#160;exclusive&#160;with&#160;</text><text
 class="breeze-start-airflow-r4" x="683.2" y="1654.8" textLength="305" 
clip-path="url(#breeze-start-airflow-line-67)">--skip-assets-compilation</text><text
 class="breeze-start-airflo [...]
+</text><text class="breeze-start-airflow-r5" x="0" y="1654.8" 
textLength="12.2" clip-path="url(#breeze-start-airflow-line-67)">│</text><text 
class="breeze-start-airflow-r1" x="378.2" y="1654.8" textLength="305" 
clip-path="url(#breeze-start-airflow-line-67)">(mutually&#160;exclusive&#160;with&#160;</text><text
 class="breeze-start-airflow-r4" x="683.2" y="1654.8" textLength="305" 
clip-path="url(#breeze-start-airflow-line-67)">--skip-assets-compilation</text><text
 class="breeze-start-airflo [...]
 </text><text class="breeze-start-airflow-r5" x="0" y="1679.2" 
textLength="1464" 
clip-path="url(#breeze-start-airflow-line-68)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text
 class="breeze-start-airflow-r1" x="1464" y="1679.2" textLength="12.2" 
clip-path="url(#breeze-start-airflow-line-68)">
 </text><text class="breeze-start-airflow-r5" x="0" y="1703.6" 
textLength="24.4" clip-path="url(#breeze-start-airflow-line-69)">╭─</text><text 
class="breeze-start-airflow-r5" x="24.4" y="1703.6" textLength="488" 
clip-path="url(#breeze-start-airflow-line-69)">&#160;Build&#160;CI&#160;image&#160;(before&#160;entering&#160;shell)&#160;</text><text
 class="breeze-start-airflow-r5" x="512.4" y="1703.6" textLength="927.2" 
clip-path="url(#breeze-start-airflow-line-69)">─────────────────────────── [...]
 </text><text class="breeze-start-airflow-r5" x="0" y="1728" textLength="12.2" 
clip-path="url(#breeze-start-airflow-line-70)">│</text><text 
class="breeze-start-airflow-r4" x="24.4" y="1728" textLength="158.6" 
clip-path="url(#breeze-start-airflow-line-70)">--force-build</text><text 
class="breeze-start-airflow-r1" x="341.6" y="1728" textLength="707.6" 
clip-path="url(#breeze-start-airflow-line-70)">Force&#160;image&#160;build&#160;no&#160;matter&#160;if&#160;it&#160;is&#160;determined&#160;a
 [...]
diff --git a/dev/breeze/doc/images/output_start-airflow.txt 
b/dev/breeze/doc/images/output_start-airflow.txt
index c9e59c6f98b..bad5b95880e 100644
--- a/dev/breeze/doc/images/output_start-airflow.txt
+++ b/dev/breeze/doc/images/output_start-airflow.txt
@@ -1 +1 @@
-5c6ac03e89ec4f0f0137ab4678fae14a
+57e1c5585523e7fcf7c3e80527cb34f9
diff --git a/dev/breeze/src/airflow_breeze/commands/developer_commands.py 
b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
index f63fae417d5..80f87792cc5 100644
--- a/dev/breeze/src/airflow_breeze/commands/developer_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
@@ -515,7 +515,7 @@ option_executor_start_airflow = click.option(
 @click.option(
     "--dev-mode",
     help="Starts api-server in dev mode (assets are always recompiled in this 
case when starting) "
-    "(mutually exclusive with --skip-assets-compilation).",
+    "(mutually exclusive with --skip-assets-compilation and 
--use-airflow-version).",
     is_flag=True,
 )
 @click.option(
@@ -628,6 +628,14 @@ def start_airflow(
         )
         skip_assets_compilation = True
 
+    if dev_mode and use_airflow_version:
+        get_console().print(
+            "[error]You cannot set Airflow version in dev mode! Consider 
switching to the respective "
+            "version branch if you need to use --dev-mode on a different 
Airflow version! \nExiting!!"
+        )
+
+        sys.exit(1)
+
     # Automatically enable file polling for hot reloading under WSL
     if dev_mode and is_wsl():
         os.environ["CHOKIDAR_USEPOLLING"] = "true"

Reply via email to