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 compilation of assets when starting 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 exclusive with </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 api-server in dev mode (assets are always 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 exclusive with </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 exclusive with </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)"> Build CI image (before entering shell) </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 image build no matter if it is determined 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"