You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2025/06/29 12:54:59 UTC
(airflow) branch v3-0-test updated: [v3-0-test] Improve terminal handling for breeze commands (#52452) (#52456)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new c545913bd31 [v3-0-test] Improve terminal handling for breeze commands (#52452) (#52456)
c545913bd31 is described below
commit c545913bd315e7c62a2ca6b16c0212d81301b407
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun Jun 29 14:54:52 2025 +0200
[v3-0-test] Improve terminal handling for breeze commands (#52452) (#52456)
Console width has been hard-coded in CI commands, which often limited
what was written in CI (Github action's CI does not have a terminal,
nor terminal width so we allocate pseudo-terminal there)
However when running breeze locally we should be
able to use all terminal width.
This PR:
* increases length of CI terminal as we tend to have longer
paths now after we moved stuff to subdirectories
* only fixes terminal size on CI and leaves it None (auto) for
local runs
* adds --tty (default auto) to `breeze run` command to allow to
use it both locally and in CI.
(cherry picked from commit 3347e035795a1952efbe1d560048fbd8bbfcd159)
---
.github/workflows/basic-tests.yml | 2 +-
.github/workflows/ci-amd.yml | 1 -
.github/workflows/ci-image-checks.yml | 4 +-
Dockerfile.ci | 4 ++
dev/breeze/doc/images/output_run.svg | 80 +++++++++++++---------
dev/breeze/doc/images/output_run.txt | 2 +-
.../src/airflow_breeze/commands/common_options.py | 10 +++
.../airflow_breeze/commands/developer_commands.py | 16 ++---
.../commands/developer_commands_config.py | 1 +
dev/breeze/src/airflow_breeze/utils/console.py | 7 +-
scripts/docker/entrypoint_ci.sh | 4 ++
11 files changed, 81 insertions(+), 50 deletions(-)
diff --git a/.github/workflows/basic-tests.yml b/.github/workflows/basic-tests.yml
index 64c348501e0..f94626b3424 100644
--- a/.github/workflows/basic-tests.yml
+++ b/.github/workflows/basic-tests.yml
@@ -223,7 +223,7 @@ jobs:
VERBOSE: "false"
SKIP_BREEZE_PRE_COMMITS: "true"
SKIP: ${{ inputs.skip-pre-commits }}
- COLUMNS: "250"
+ COLUMNS: "202"
test-git-clone-on-windows:
timeout-minutes: 5
diff --git a/.github/workflows/ci-amd.yml b/.github/workflows/ci-amd.yml
index cb6f1cf706e..6cee54faee8 100644
--- a/.github/workflows/ci-amd.yml
+++ b/.github/workflows/ci-amd.yml
@@ -248,7 +248,6 @@ jobs:
contents: read
packages: write
id-token: write
- if: needs.build-info.outputs.canary-run == 'true'
with:
runners: ${{ needs.build-info.outputs.amd-runners }}
platform: "linux/amd64"
diff --git a/.github/workflows/ci-image-checks.yml b/.github/workflows/ci-image-checks.yml
index ec47528297e..a3baab28f29 100644
--- a/.github/workflows/ci-image-checks.yml
+++ b/.github/workflows/ci-image-checks.yml
@@ -193,7 +193,7 @@ jobs:
env:
VERBOSE: "false"
SKIP: ${{ inputs.skip-pre-commits }}
- COLUMNS: "250"
+ COLUMNS: "202"
SKIP_GROUP_OUTPUT: "true"
DEFAULT_BRANCH: ${{ inputs.branch }}
RUFF_FORMAT: "github"
@@ -235,7 +235,7 @@ jobs:
run: pre-commit run --color always --verbose --hook-stage manual "$MYPY_CHECK" --all-files
env:
VERBOSE: "false"
- COLUMNS: "250"
+ COLUMNS: "202"
SKIP_GROUP_OUTPUT: "true"
DEFAULT_BRANCH: ${{ inputs.branch }}
RUFF_FORMAT: "github"
diff --git a/Dockerfile.ci b/Dockerfile.ci
index 017ec20ed33..1ae7f97c03b 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -848,6 +848,10 @@ mkdir "${AIRFLOW_HOME}/sqlite" -p || true
ASSET_COMPILATION_WAIT_MULTIPLIER=${ASSET_COMPILATION_WAIT_MULTIPLIER:=1}
+if [[ "${CI=}" == "true" ]]; then
+ export COLUMNS="202"
+fi
+
. "${IN_CONTAINER_DIR}/check_connectivity.sh"
function wait_for_asset_compilation() {
diff --git a/dev/breeze/doc/images/output_run.svg b/dev/breeze/doc/images/output_run.svg
index 7670de51ef6..d543e72e5bc 100644
--- a/dev/breeze/doc/images/output_run.svg
+++ b/dev/breeze/doc/images/output_run.svg
@@ -1,4 +1,4 @@
-<svg class="rich-terminal" viewBox="0 0 1482 1148.0" xmlns="http://www.w3.org/2000/svg">
+<svg class="rich-terminal" viewBox="0 0 1482 1245.6" xmlns="http://www.w3.org/2000/svg">
<!-- Generated with Rich https://www.textualize.io -->
<style>
@@ -43,7 +43,7 @@
<defs>
<clipPath id="breeze-run-clip-terminal">
- <rect x="0" y="0" width="1463.0" height="1097.0" />
+ <rect x="0" y="0" width="1463.0" height="1194.6" />
</clipPath>
<clipPath id="breeze-run-line-0">
<rect x="0" y="1.5" width="1464" height="24.65"/>
@@ -177,9 +177,21 @@
<clipPath id="breeze-run-line-43">
<rect x="0" y="1050.7" width="1464" height="24.65"/>
</clipPath>
+<clipPath id="breeze-run-line-44">
+ <rect x="0" y="1075.1" width="1464" height="24.65"/>
+ </clipPath>
+<clipPath id="breeze-run-line-45">
+ <rect x="0" y="1099.5" width="1464" height="24.65"/>
+ </clipPath>
+<clipPath id="breeze-run-line-46">
+ <rect x="0" y="1123.9" width="1464" height="24.65"/>
+ </clipPath>
+<clipPath id="breeze-run-line-47">
+ <rect x="0" y="1148.3" width="1464" height="24.65"/>
+ </clipPath>
</defs>
- <rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="1480" height="1146" rx="8"/><text class="breeze-run-title" fill="#c5c8c6" text-anchor="middle" x="740" y="27">Command: run</text>
+ <rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="1480" height="1243.6" rx="8"/><text class="breeze-run-title" fill="#c5c8c6" text-anchor="middle" x="740" y="27">Command: run</text>
<g transform="translate(26,22)">
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
@@ -204,36 +216,40 @@
</text><text class="breeze-run-r5" x="0" y="312.8" textLength="12.2" clip-path="url(#breeze-run-line-12)">│</text><text class="breeze-run-r5" x="317.2" y="312.8" textLength="1122.4" clip-path="url(#breeze-run-line-12)">[default: sqlite]                                           [...]
</text><text class="breeze-run-r5" x="0" y="337.2" textLength="12.2" clip-path="url(#breeze-run-line-13)">│</text><text class="breeze-run-r4" x="24.4" y="337.2" textLength="219.6" clip-path="url(#breeze-run-line-13)">--postgres-version</text><text class="breeze-run-r6" x="268.4" y="337.2" textLength="24.4" clip-path="url(#breeze-run-line-13)">-P</text><text class="breeze-run-r1" x="317.2" y="337.2" textLength="305" clip-path="url(#breeze-run-line-13)">Version of Postgres u [...]
</text><text class="breeze-run-r5" x="0" y="361.6" textLength="12.2" clip-path="url(#breeze-run-line-14)">│</text><text class="breeze-run-r4" x="24.4" y="361.6" textLength="183" clip-path="url(#breeze-run-line-14)">--mysql-version</text><text class="breeze-run-r6" x="268.4" y="361.6" textLength="24.4" clip-path="url(#breeze-run-line-14)">-M</text><text class="breeze-run-r1" x="317.2" y="361.6" textLength="268.4" clip-path="url(#breeze-run-line-14)">Version of MySQL used.</ [...]
-</text><text class="breeze-run-r5" x="0" y="386" textLength="1464" clip-path="url(#breeze-run-line-15)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="breeze-run-r1" x="1464" y="386" textLength="12.2" clip-path="url(#breeze-run-line-15)">
-</text><text class="breeze-run-r5" x="0" y="410.4" textLength="24.4" clip-path="url(#breeze-run-line-16)">╭─</text><text class="breeze-run-r5" x="24.4" y="410.4" textLength="500.2" clip-path="url(#breeze-run-line-16)"> Build CI image (before running command) </text><text class="breeze-run-r5" x="524.6" y="410.4" textLength="915" clip-path="url(#breeze-run-line-16)">───────────────────────────────────────────────────────────────────────────</text><text c [...]
-</text><text class="breeze-run-r5" x="0" y="434.8" textLength="12.2" clip-path="url(#breeze-run-line-17)">│</text><text class="breeze-run-r4" x="24.4" y="434.8" textLength="158.6" clip-path="url(#breeze-run-line-17)">--force-build</text><text class="breeze-run-r1" x="341.6" y="434.8" textLength="707.6" clip-path="url(#breeze-run-line-17)">Force image build no matter if it is determined as needed.</text><text class="breeze-run-r5" x="1451. [...]
-</text><text class="breeze-run-r5" x="0" y="459.2" textLength="12.2" clip-path="url(#breeze-run-line-18)">│</text><text class="breeze-run-r4" x="24.4" y="459.2" textLength="122" clip-path="url(#breeze-run-line-18)">--platform</text><text class="breeze-run-r1" x="341.6" y="459.2" textLength="329.4" clip-path="url(#breeze-run-line-18)">Platform for Airflow image.</text><text class="breeze-run-r7" x="683.2" y="459.2" textLength="707.6" clip-path="url(#breeze-run-line-18)">(li [...]
-</text><text class="breeze-run-r5" x="0" y="483.6" textLength="12.2" clip-path="url(#breeze-run-line-19)">│</text><text class="breeze-run-r4" x="24.4" y="483.6" textLength="231.8" clip-path="url(#breeze-run-line-19)">--github-repository</text><text class="breeze-run-r6" x="292.8" y="483.6" textLength="24.4" clip-path="url(#breeze-run-line-19)">-g</text><text class="breeze-run-r1" x="341.6" y="483.6" textLength="585.6" clip-path="url(#breeze-run-line-19)">GitHub repository used& [...]
-</text><text class="breeze-run-r5" x="0" y="508" textLength="12.2" clip-path="url(#breeze-run-line-20)">│</text><text class="breeze-run-r4" x="24.4" y="508" textLength="109.8" clip-path="url(#breeze-run-line-20)">--builder</text><text class="breeze-run-r1" x="341.6" y="508" textLength="756.4" clip-path="url(#breeze-run-line-20)">Buildx builder used to perform `docker buildx build` commands.</text><text class="breeze-run-r7" x="1110.2" y="508" textL [...]
-</text><text class="breeze-run-r5" x="0" y="532.4" textLength="12.2" clip-path="url(#breeze-run-line-21)">│</text><text class="breeze-run-r5" x="341.6" y="532.4" textLength="756.4" clip-path="url(#breeze-run-line-21)">[default: autodetect]                                         </ [...]
-</text><text class="breeze-run-r5" x="0" y="556.8" textLength="12.2" clip-path="url(#breeze-run-line-22)">│</text><text class="breeze-run-r4" x="24.4" y="556.8" textLength="97.6" clip-path="url(#breeze-run-line-22)">--use-uv</text><text class="breeze-run-r1" x="122" y="556.8" textLength="12.2" clip-path="url(#breeze-run-line-22)">/</text><text class="breeze-run-r4" x="134.2" y="556.8" textLength="134.2" clip-path="url(#breeze-run-line-22)">--no-use-uv</text><text class="breeze-run-r1" x= [...]
-</text><text class="breeze-run-r5" x="0" y="581.2" textLength="12.2" clip-path="url(#breeze-run-line-23)">│</text><text class="breeze-run-r4" x="24.4" y="581.2" textLength="207.4" clip-path="url(#breeze-run-line-23)">--uv-http-timeout</text><text class="breeze-run-r1" x="341.6" y="581.2" textLength="829.6" clip-path="url(#breeze-run-line-23)">Timeout for requests that UV makes (only used in case of UV builds).</text><text class= [...]
-</text><text class="breeze-run-r5" x="0" y="605.6" textLength="12.2" clip-path="url(#breeze-run-line-24)">│</text><text class="breeze-run-r5" x="341.6" y="605.6" textLength="829.6" clip-path="url(#breeze-run-line-24)">[default: 300; x>=1]                                        & [...]
-</text><text class="breeze-run-r5" x="0" y="630" textLength="1464" clip-path="url(#breeze-run-line-25)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="breeze-run-r1" x="1464" y="630" textLength="12.2" clip-path="url(#breeze-run-line-25)">
-</text><text class="breeze-run-r5" x="0" y="654.4" textLength="24.4" clip-path="url(#breeze-run-line-26)">╭─</text><text class="breeze-run-r5" x="24.4" y="654.4" textLength="427" clip-path="url(#breeze-run-line-26)"> Docker Compose project management </text><text class="breeze-run-r5" x="451.4" y="654.4" textLength="988.2" clip-path="url(#breeze-run-line-26)">─────────────────────────────────────────────────────────────────────────────────</text><text class="bree [...]
-</text><text class="breeze-run-r5" x="0" y="678.8" textLength="12.2" clip-path="url(#breeze-run-line-27)">│</text><text class="breeze-run-r4" x="24.4" y="678.8" textLength="170.8" clip-path="url(#breeze-run-line-27)">--project-name</text><text class="breeze-run-r1" x="244" y="678.8" textLength="1195.6" clip-path="url(#breeze-run-line-27)">Name of the docker-compose project to bring down. The `docker-compose` is for legacy b [...]
-</text><text class="breeze-run-r5" x="0" y="703.2" textLength="12.2" clip-path="url(#breeze-run-line-28)">│</text><text class="breeze-run-r1" x="244" y="703.2" textLength="512.4" clip-path="url(#breeze-run-line-28)">project name and you can use `breeze down </text><text class="breeze-run-r4" x="756.4" y="703.2" textLength="170.8" clip-path="url(#breeze-run-line-28)">--project-name</text><text class="breeze-run-r1" x="927.2" y="703.2" textLength="51 [...]
-</text><text class="breeze-run-r5" x="0" y="727.6" textLength="12.2" clip-path="url(#breeze-run-line-29)">│</text><text class="breeze-run-r1" x="244" y="727.6" textLength="1195.6" clip-path="url(#breeze-run-line-29)">belonging to it.                                          [...]
-</text><text class="breeze-run-r5" x="0" y="752" textLength="12.2" clip-path="url(#breeze-run-line-30)">│</text><text class="breeze-run-r7" x="244" y="752" textLength="1195.6" clip-path="url(#breeze-run-line-30)">(breeze | pre-commit | docker-compose)                                      [...]
-</text><text class="breeze-run-r5" x="0" y="776.4" textLength="12.2" clip-path="url(#breeze-run-line-31)">│</text><text class="breeze-run-r5" x="244" y="776.4" textLength="1195.6" clip-path="url(#breeze-run-line-31)">[default: breeze]                                          & [...]
-</text><text class="breeze-run-r5" x="0" y="800.8" textLength="12.2" clip-path="url(#breeze-run-line-32)">│</text><text class="breeze-run-r4" x="24.4" y="800.8" textLength="158.6" clip-path="url(#breeze-run-line-32)">--docker-host</text><text class="breeze-run-r1" x="244" y="800.8" textLength="915" clip-path="url(#breeze-run-line-32)">Optional - docker host to use when running docker commands. When set, the `</text><text cl [...]
-</text><text class="breeze-run-r5" x="0" y="825.2" textLength="12.2" clip-path="url(#breeze-run-line-33)">│</text><text class="breeze-run-r1" x="244" y="825.2" textLength="1195.6" clip-path="url(#breeze-run-line-33)">ignored when building images.                                       [...]
-</text><text class="breeze-run-r5" x="0" y="849.6" textLength="12.2" clip-path="url(#breeze-run-line-34)">│</text><text class="breeze-run-r7" x="244" y="849.6" textLength="1195.6" clip-path="url(#breeze-run-line-34)">(TEXT)                                              [...]
-</text><text class="breeze-run-r5" x="0" y="874" textLength="1464" clip-path="url(#breeze-run-line-35)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="breeze-run-r1" x="1464" y="874" textLength="12.2" clip-path="url(#breeze-run-line-35)">
-</text><text class="breeze-run-r5" x="0" y="898.4" textLength="24.4" clip-path="url(#breeze-run-line-36)">╭─</text><text class="breeze-run-r5" x="24.4" y="898.4" textLength="183" clip-path="url(#breeze-run-line-36)"> Other options </text><text class="breeze-run-r5" x="207.4" y="898.4" textLength="1232.2" clip-path="url(#breeze-run-line-36)">─────────────────────────────────────────────────────────────────────────────────────────────────────</text><text class="breeze-run-r5 [...]
-</text><text class="breeze-run-r5" x="0" y="922.8" textLength="12.2" clip-path="url(#breeze-run-line-37)">│</text><text class="breeze-run-r4" x="24.4" y="922.8" textLength="256.2" clip-path="url(#breeze-run-line-37)">--forward-credentials</text><text class="breeze-run-r6" x="366" y="922.8" textLength="24.4" clip-path="url(#breeze-run-line-37)">-f</text><text class="breeze-run-r1" x="414.8" y="922.8" textLength="634.4" clip-path="url(#breeze-run-line-37)">Forward local credentia [...]
-</text><text class="breeze-run-r5" x="0" y="947.2" textLength="12.2" clip-path="url(#breeze-run-line-38)">│</text><text class="breeze-run-r4" x="24.4" y="947.2" textLength="317.2" clip-path="url(#breeze-run-line-38)">--skip-image-upgrade-check</text><text class="breeze-run-r1" x="414.8" y="947.2" textLength="536.8" clip-path="url(#breeze-run-line-38)">Skip checking if the CI image is up to date.</text><text class="breeze-run-r5" x="1451.8" y=" [...]
+</text><text class="breeze-run-r5" x="0" y="386" textLength="12.2" clip-path="url(#breeze-run-line-15)">│</text><text class="breeze-run-r4" x="24.4" y="386" textLength="61" clip-path="url(#breeze-run-line-15)">--tty</text><text class="breeze-run-r1" x="317.2" y="386" textLength="1122.4" clip-path="url(#breeze-run-line-15)">Whether to allocate pseudo-tty when running docker command (useful for pre-commit and CI to </tex [...]
+</text><text class="breeze-run-r5" x="0" y="410.4" textLength="12.2" clip-path="url(#breeze-run-line-16)">│</text><text class="breeze-run-r1" x="317.2" y="410.4" textLength="1122.4" clip-path="url(#breeze-run-line-16)">force-enable it).                                           [...]
+</text><text class="breeze-run-r5" x="0" y="434.8" textLength="12.2" clip-path="url(#breeze-run-line-17)">│</text><text class="breeze-run-r7" x="317.2" y="434.8" textLength="1122.4" clip-path="url(#breeze-run-line-17)">(auto | enabled | disabled)                                      [...]
+</text><text class="breeze-run-r5" x="0" y="459.2" textLength="12.2" clip-path="url(#breeze-run-line-18)">│</text><text class="breeze-run-r5" x="317.2" y="459.2" textLength="1122.4" clip-path="url(#breeze-run-line-18)">[default: auto]                                          & [...]
+</text><text class="breeze-run-r5" x="0" y="483.6" textLength="1464" clip-path="url(#breeze-run-line-19)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="breeze-run-r1" x="1464" y="483.6" textLength="12.2" clip-path="url(#breeze-run-line-19)">
+</text><text class="breeze-run-r5" x="0" y="508" textLength="24.4" clip-path="url(#breeze-run-line-20)">╭─</text><text class="breeze-run-r5" x="24.4" y="508" textLength="500.2" clip-path="url(#breeze-run-line-20)"> Build CI image (before running command) </text><text class="breeze-run-r5" x="524.6" y="508" textLength="915" clip-path="url(#breeze-run-line-20)">───────────────────────────────────────────────────────────────────────────</text><text class=" [...]
+</text><text class="breeze-run-r5" x="0" y="532.4" textLength="12.2" clip-path="url(#breeze-run-line-21)">│</text><text class="breeze-run-r4" x="24.4" y="532.4" textLength="158.6" clip-path="url(#breeze-run-line-21)">--force-build</text><text class="breeze-run-r1" x="341.6" y="532.4" textLength="707.6" clip-path="url(#breeze-run-line-21)">Force image build no matter if it is determined as needed.</text><text class="breeze-run-r5" x="1451. [...]
+</text><text class="breeze-run-r5" x="0" y="556.8" textLength="12.2" clip-path="url(#breeze-run-line-22)">│</text><text class="breeze-run-r4" x="24.4" y="556.8" textLength="122" clip-path="url(#breeze-run-line-22)">--platform</text><text class="breeze-run-r1" x="341.6" y="556.8" textLength="329.4" clip-path="url(#breeze-run-line-22)">Platform for Airflow image.</text><text class="breeze-run-r7" x="683.2" y="556.8" textLength="707.6" clip-path="url(#breeze-run-line-22)">(li [...]
+</text><text class="breeze-run-r5" x="0" y="581.2" textLength="12.2" clip-path="url(#breeze-run-line-23)">│</text><text class="breeze-run-r4" x="24.4" y="581.2" textLength="231.8" clip-path="url(#breeze-run-line-23)">--github-repository</text><text class="breeze-run-r6" x="292.8" y="581.2" textLength="24.4" clip-path="url(#breeze-run-line-23)">-g</text><text class="breeze-run-r1" x="341.6" y="581.2" textLength="585.6" clip-path="url(#breeze-run-line-23)">GitHub repository used& [...]
+</text><text class="breeze-run-r5" x="0" y="605.6" textLength="12.2" clip-path="url(#breeze-run-line-24)">│</text><text class="breeze-run-r4" x="24.4" y="605.6" textLength="109.8" clip-path="url(#breeze-run-line-24)">--builder</text><text class="breeze-run-r1" x="341.6" y="605.6" textLength="756.4" clip-path="url(#breeze-run-line-24)">Buildx builder used to perform `docker buildx build` commands.</text><text class="breeze-run-r7" x="1110.2" y="605. [...]
+</text><text class="breeze-run-r5" x="0" y="630" textLength="12.2" clip-path="url(#breeze-run-line-25)">│</text><text class="breeze-run-r5" x="341.6" y="630" textLength="756.4" clip-path="url(#breeze-run-line-25)">[default: autodetect]                                         </text [...]
+</text><text class="breeze-run-r5" x="0" y="654.4" textLength="12.2" clip-path="url(#breeze-run-line-26)">│</text><text class="breeze-run-r4" x="24.4" y="654.4" textLength="97.6" clip-path="url(#breeze-run-line-26)">--use-uv</text><text class="breeze-run-r1" x="122" y="654.4" textLength="12.2" clip-path="url(#breeze-run-line-26)">/</text><text class="breeze-run-r4" x="134.2" y="654.4" textLength="134.2" clip-path="url(#breeze-run-line-26)">--no-use-uv</text><text class="breeze-run-r1" x= [...]
+</text><text class="breeze-run-r5" x="0" y="678.8" textLength="12.2" clip-path="url(#breeze-run-line-27)">│</text><text class="breeze-run-r4" x="24.4" y="678.8" textLength="207.4" clip-path="url(#breeze-run-line-27)">--uv-http-timeout</text><text class="breeze-run-r1" x="341.6" y="678.8" textLength="829.6" clip-path="url(#breeze-run-line-27)">Timeout for requests that UV makes (only used in case of UV builds).</text><text class= [...]
+</text><text class="breeze-run-r5" x="0" y="703.2" textLength="12.2" clip-path="url(#breeze-run-line-28)">│</text><text class="breeze-run-r5" x="341.6" y="703.2" textLength="829.6" clip-path="url(#breeze-run-line-28)">[default: 300; x>=1]                                        & [...]
+</text><text class="breeze-run-r5" x="0" y="727.6" textLength="1464" clip-path="url(#breeze-run-line-29)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="breeze-run-r1" x="1464" y="727.6" textLength="12.2" clip-path="url(#breeze-run-line-29)">
+</text><text class="breeze-run-r5" x="0" y="752" textLength="24.4" clip-path="url(#breeze-run-line-30)">╭─</text><text class="breeze-run-r5" x="24.4" y="752" textLength="427" clip-path="url(#breeze-run-line-30)"> Docker Compose project management </text><text class="breeze-run-r5" x="451.4" y="752" textLength="988.2" clip-path="url(#breeze-run-line-30)">─────────────────────────────────────────────────────────────────────────────────</text><text class="breeze-run [...]
+</text><text class="breeze-run-r5" x="0" y="776.4" textLength="12.2" clip-path="url(#breeze-run-line-31)">│</text><text class="breeze-run-r4" x="24.4" y="776.4" textLength="170.8" clip-path="url(#breeze-run-line-31)">--project-name</text><text class="breeze-run-r1" x="244" y="776.4" textLength="1195.6" clip-path="url(#breeze-run-line-31)">Name of the docker-compose project to bring down. The `docker-compose` is for legacy b [...]
+</text><text class="breeze-run-r5" x="0" y="800.8" textLength="12.2" clip-path="url(#breeze-run-line-32)">│</text><text class="breeze-run-r1" x="244" y="800.8" textLength="512.4" clip-path="url(#breeze-run-line-32)">project name and you can use `breeze down </text><text class="breeze-run-r4" x="756.4" y="800.8" textLength="170.8" clip-path="url(#breeze-run-line-32)">--project-name</text><text class="breeze-run-r1" x="927.2" y="800.8" textLength="51 [...]
+</text><text class="breeze-run-r5" x="0" y="825.2" textLength="12.2" clip-path="url(#breeze-run-line-33)">│</text><text class="breeze-run-r1" x="244" y="825.2" textLength="1195.6" clip-path="url(#breeze-run-line-33)">belonging to it.                                          [...]
+</text><text class="breeze-run-r5" x="0" y="849.6" textLength="12.2" clip-path="url(#breeze-run-line-34)">│</text><text class="breeze-run-r7" x="244" y="849.6" textLength="1195.6" clip-path="url(#breeze-run-line-34)">(breeze | pre-commit | docker-compose)                                    & [...]
+</text><text class="breeze-run-r5" x="0" y="874" textLength="12.2" clip-path="url(#breeze-run-line-35)">│</text><text class="breeze-run-r5" x="244" y="874" textLength="1195.6" clip-path="url(#breeze-run-line-35)">[default: breeze]                                            [...]
+</text><text class="breeze-run-r5" x="0" y="898.4" textLength="12.2" clip-path="url(#breeze-run-line-36)">│</text><text class="breeze-run-r4" x="24.4" y="898.4" textLength="158.6" clip-path="url(#breeze-run-line-36)">--docker-host</text><text class="breeze-run-r1" x="244" y="898.4" textLength="915" clip-path="url(#breeze-run-line-36)">Optional - docker host to use when running docker commands. When set, the `</text><text cl [...]
+</text><text class="breeze-run-r5" x="0" y="922.8" textLength="12.2" clip-path="url(#breeze-run-line-37)">│</text><text class="breeze-run-r1" x="244" y="922.8" textLength="1195.6" clip-path="url(#breeze-run-line-37)">ignored when building images.                                       [...]
+</text><text class="breeze-run-r5" x="0" y="947.2" textLength="12.2" clip-path="url(#breeze-run-line-38)">│</text><text class="breeze-run-r7" x="244" y="947.2" textLength="1195.6" clip-path="url(#breeze-run-line-38)">(TEXT)                                              [...]
</text><text class="breeze-run-r5" x="0" y="971.6" textLength="1464" clip-path="url(#breeze-run-line-39)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="breeze-run-r1" x="1464" y="971.6" textLength="12.2" clip-path="url(#breeze-run-line-39)">
-</text><text class="breeze-run-r5" x="0" y="996" textLength="24.4" clip-path="url(#breeze-run-line-40)">╭─</text><text class="breeze-run-r5" x="24.4" y="996" textLength="195.2" clip-path="url(#breeze-run-line-40)"> Common options </text><text class="breeze-run-r5" x="219.6" y="996" textLength="1220" clip-path="url(#breeze-run-line-40)">────────────────────────────────────────────────────────────────────────────────────────────────────</text><text class="breeze-run-r5" x="1 [...]
-</text><text class="breeze-run-r5" x="0" y="1020.4" textLength="12.2" clip-path="url(#breeze-run-line-41)">│</text><text class="breeze-run-r4" x="24.4" y="1020.4" textLength="109.8" clip-path="url(#breeze-run-line-41)">--dry-run</text><text class="breeze-run-r6" x="158.6" y="1020.4" textLength="24.4" clip-path="url(#breeze-run-line-41)">-D</text><text class="breeze-run-r1" x="207.4" y="1020.4" textLength="719.8" clip-path="url(#breeze-run-line-41)">If dry-run is set,  [...]
-</text><text class="breeze-run-r5" x="0" y="1044.8" textLength="12.2" clip-path="url(#breeze-run-line-42)">│</text><text class="breeze-run-r4" x="24.4" y="1044.8" textLength="109.8" clip-path="url(#breeze-run-line-42)">--verbose</text><text class="breeze-run-r6" x="158.6" y="1044.8" textLength="24.4" clip-path="url(#breeze-run-line-42)">-v</text><text class="breeze-run-r1" x="207.4" y="1044.8" textLength="585.6" clip-path="url(#breeze-run-line-42)">Print verbose information [...]
-</text><text class="breeze-run-r5" x="0" y="1069.2" textLength="12.2" clip-path="url(#breeze-run-line-43)">│</text><text class="breeze-run-r4" x="24.4" y="1069.2" textLength="73.2" clip-path="url(#breeze-run-line-43)">--help</text><text class="breeze-run-r6" x="158.6" y="1069.2" textLength="24.4" clip-path="url(#breeze-run-line-43)">-h</text><text class="breeze-run-r1" x="207.4" y="1069.2" textLength="329.4" clip-path="url(#breeze-run-line-43)">Show this message and e [...]
-</text><text class="breeze-run-r5" x="0" y="1093.6" textLength="1464" clip-path="url(#breeze-run-line-44)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="breeze-run-r1" x="1464" y="1093.6" textLength="12.2" clip-path="url(#breeze-run-line-44)">
+</text><text class="breeze-run-r5" x="0" y="996" textLength="24.4" clip-path="url(#breeze-run-line-40)">╭─</text><text class="breeze-run-r5" x="24.4" y="996" textLength="183" clip-path="url(#breeze-run-line-40)"> Other options </text><text class="breeze-run-r5" x="207.4" y="996" textLength="1232.2" clip-path="url(#breeze-run-line-40)">─────────────────────────────────────────────────────────────────────────────────────────────────────</text><text class="breeze-run-r5" x="1 [...]
+</text><text class="breeze-run-r5" x="0" y="1020.4" textLength="12.2" clip-path="url(#breeze-run-line-41)">│</text><text class="breeze-run-r4" x="24.4" y="1020.4" textLength="256.2" clip-path="url(#breeze-run-line-41)">--forward-credentials</text><text class="breeze-run-r6" x="366" y="1020.4" textLength="24.4" clip-path="url(#breeze-run-line-41)">-f</text><text class="breeze-run-r1" x="414.8" y="1020.4" textLength="634.4" clip-path="url(#breeze-run-line-41)">Forward local crede [...]
+</text><text class="breeze-run-r5" x="0" y="1044.8" textLength="12.2" clip-path="url(#breeze-run-line-42)">│</text><text class="breeze-run-r4" x="24.4" y="1044.8" textLength="317.2" clip-path="url(#breeze-run-line-42)">--skip-image-upgrade-check</text><text class="breeze-run-r1" x="414.8" y="1044.8" textLength="536.8" clip-path="url(#breeze-run-line-42)">Skip checking if the CI image is up to date.</text><text class="breeze-run-r5" x="1451.8" [...]
+</text><text class="breeze-run-r5" x="0" y="1069.2" textLength="1464" clip-path="url(#breeze-run-line-43)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="breeze-run-r1" x="1464" y="1069.2" textLength="12.2" clip-path="url(#breeze-run-line-43)">
+</text><text class="breeze-run-r5" x="0" y="1093.6" textLength="24.4" clip-path="url(#breeze-run-line-44)">╭─</text><text class="breeze-run-r5" x="24.4" y="1093.6" textLength="195.2" clip-path="url(#breeze-run-line-44)"> Common options </text><text class="breeze-run-r5" x="219.6" y="1093.6" textLength="1220" clip-path="url(#breeze-run-line-44)">────────────────────────────────────────────────────────────────────────────────────────────────────</text><text class="breeze-run [...]
+</text><text class="breeze-run-r5" x="0" y="1118" textLength="12.2" clip-path="url(#breeze-run-line-45)">│</text><text class="breeze-run-r4" x="24.4" y="1118" textLength="109.8" clip-path="url(#breeze-run-line-45)">--dry-run</text><text class="breeze-run-r6" x="158.6" y="1118" textLength="24.4" clip-path="url(#breeze-run-line-45)">-D</text><text class="breeze-run-r1" x="207.4" y="1118" textLength="719.8" clip-path="url(#breeze-run-line-45)">If dry-run is set, commands [...]
+</text><text class="breeze-run-r5" x="0" y="1142.4" textLength="12.2" clip-path="url(#breeze-run-line-46)">│</text><text class="breeze-run-r4" x="24.4" y="1142.4" textLength="109.8" clip-path="url(#breeze-run-line-46)">--verbose</text><text class="breeze-run-r6" x="158.6" y="1142.4" textLength="24.4" clip-path="url(#breeze-run-line-46)">-v</text><text class="breeze-run-r1" x="207.4" y="1142.4" textLength="585.6" clip-path="url(#breeze-run-line-46)">Print verbose information [...]
+</text><text class="breeze-run-r5" x="0" y="1166.8" textLength="12.2" clip-path="url(#breeze-run-line-47)">│</text><text class="breeze-run-r4" x="24.4" y="1166.8" textLength="73.2" clip-path="url(#breeze-run-line-47)">--help</text><text class="breeze-run-r6" x="158.6" y="1166.8" textLength="24.4" clip-path="url(#breeze-run-line-47)">-h</text><text class="breeze-run-r1" x="207.4" y="1166.8" textLength="329.4" clip-path="url(#breeze-run-line-47)">Show this message and e [...]
+</text><text class="breeze-run-r5" x="0" y="1191.2" textLength="1464" clip-path="url(#breeze-run-line-48)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="breeze-run-r1" x="1464" y="1191.2" textLength="12.2" clip-path="url(#breeze-run-line-48)">
</text>
</g>
</g>
diff --git a/dev/breeze/doc/images/output_run.txt b/dev/breeze/doc/images/output_run.txt
index 6deaec2d4a8..f86eff035ab 100644
--- a/dev/breeze/doc/images/output_run.txt
+++ b/dev/breeze/doc/images/output_run.txt
@@ -1 +1 @@
-fd7c2d8fa4c2b1686292da29fc6f9fa4
+0a1664708a555d7278011cfa44d040fb
diff --git a/dev/breeze/src/airflow_breeze/commands/common_options.py b/dev/breeze/src/airflow_breeze/commands/common_options.py
index 0363cd9eece..ab52a567f3d 100644
--- a/dev/breeze/src/airflow_breeze/commands/common_options.py
+++ b/dev/breeze/src/airflow_breeze/commands/common_options.py
@@ -30,6 +30,7 @@ from airflow_breeze.global_constants import (
ALLOWED_MYSQL_VERSIONS,
ALLOWED_POSTGRES_VERSIONS,
ALLOWED_PYTHON_MAJOR_MINOR_VERSIONS,
+ ALLOWED_TTY,
ALLOWED_USE_AIRFLOW_VERSIONS,
APACHE_AIRFLOW_GITHUB_REPOSITORY,
AUTOCOMPLETE_ALL_INTEGRATIONS,
@@ -380,6 +381,15 @@ option_standalone_dag_processor = click.option(
help="Run standalone dag processor for start-airflow (required for Airflow 3).",
envvar="STANDALONE_DAG_PROCESSOR",
)
+option_tty = click.option(
+ "--tty",
+ envvar="TTY",
+ type=BetterChoice(ALLOWED_TTY),
+ default=ALLOWED_TTY[0],
+ show_default=True,
+ help="Whether to allocate pseudo-tty when running docker command"
+ " (useful for pre-commit and CI to force-enable it).",
+)
option_upgrade_boto = click.option(
"--upgrade-boto",
help="Remove aiobotocore and upgrade botocore and boto to the latest version.",
diff --git a/dev/breeze/src/airflow_breeze/commands/developer_commands.py b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
index 0a6ad967909..85e593e8cf0 100644
--- a/dev/breeze/src/airflow_breeze/commands/developer_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
@@ -65,6 +65,7 @@ from airflow_breeze.commands.common_options import (
option_run_db_tests_only,
option_skip_db_tests,
option_standalone_dag_processor,
+ option_tty,
option_upgrade_boto,
option_use_airflow_version,
option_use_uv,
@@ -89,7 +90,6 @@ from airflow_breeze.global_constants import (
ALLOWED_CELERY_BROKERS,
ALLOWED_CELERY_EXECUTORS,
ALLOWED_EXECUTORS,
- ALLOWED_TTY,
DEFAULT_ALLOWED_EXECUTOR,
DEFAULT_CELERY_BROKER,
DEFAULT_PYTHON_MAJOR_MINOR_VERSION,
@@ -255,15 +255,7 @@ option_load_default_connections = click.option(
@main.command()
@click.argument("extra-args", nargs=-1, type=click.UNPROCESSED)
@click.option("--quiet", is_flag=True, envvar="QUIET", help="Suppress initialization output when starting.")
-@click.option(
- "--tty",
- envvar="TTY",
- type=BetterChoice(ALLOWED_TTY),
- default=ALLOWED_TTY[0],
- show_default=True,
- help="Whether to allocate pseudo-tty when running docker command"
- " (useful for pre-commit and CI to force-enable it).",
-)
+@option_tty
@click.option(
"--verbose-commands",
help="Show details of commands executed.",
@@ -1222,6 +1214,7 @@ def doctor(ctx):
@option_project_name
@option_python
@option_skip_image_upgrade_check
+@option_tty
@option_use_uv
@option_uv_http_timeout
@option_verbose
@@ -1240,6 +1233,7 @@ def run(
project_name: str,
python: str,
skip_image_upgrade_check: bool,
+ tty: str,
use_uv: bool,
uv_http_timeout: int,
):
@@ -1307,7 +1301,7 @@ def run(
# Optimizations for non-interactive execution
quiet=True,
skip_environment_initialization=True,
- tty="disabled",
+ tty=tty,
# Set extra_args to empty tuple since we'll pass the command directly
extra_args=(),
)
diff --git a/dev/breeze/src/airflow_breeze/commands/developer_commands_config.py b/dev/breeze/src/airflow_breeze/commands/developer_commands_config.py
index eae6e0cb862..445601d191b 100644
--- a/dev/breeze/src/airflow_breeze/commands/developer_commands_config.py
+++ b/dev/breeze/src/airflow_breeze/commands/developer_commands_config.py
@@ -304,6 +304,7 @@ DEVELOPER_PARAMETERS: dict[str, list[dict[str, str | list[str]]]] = {
"--backend",
"--postgres-version",
"--mysql-version",
+ "--tty",
],
},
{
diff --git a/dev/breeze/src/airflow_breeze/utils/console.py b/dev/breeze/src/airflow_breeze/utils/console.py
index 6e0b3e77dbf..54b7717825b 100644
--- a/dev/breeze/src/airflow_breeze/utils/console.py
+++ b/dev/breeze/src/airflow_breeze/utils/console.py
@@ -91,12 +91,15 @@ class Output(NamedTuple):
return self.title.replace("[", "\\[")
+CONSOLE_WIDTH: int | None = int(os.environ.get("CI_WIDTH", "202")) if os.environ.get("CI") else None
+
+
@clearable_cache
def get_console(output: Output | None = None) -> Console:
return Console(
force_terminal=True,
color_system="standard",
- width=202 if not recording_width else int(recording_width),
+ width=CONSOLE_WIDTH if not recording_width else int(recording_width),
file=output.file if output else None,
theme=get_theme(),
record=True if recording_file else False,
@@ -110,7 +113,7 @@ def get_stderr_console(output: Output | None = None) -> Console:
color_system="standard",
stderr=True,
file=output.file if output else None,
- width=202 if not recording_width else int(recording_width),
+ width=CONSOLE_WIDTH if not recording_width else int(recording_width),
theme=get_theme(),
record=True if recording_file else False,
)
diff --git a/scripts/docker/entrypoint_ci.sh b/scripts/docker/entrypoint_ci.sh
index 9dcb3ee6583..e62e0a58c80 100755
--- a/scripts/docker/entrypoint_ci.sh
+++ b/scripts/docker/entrypoint_ci.sh
@@ -49,6 +49,10 @@ mkdir "${AIRFLOW_HOME}/sqlite" -p || true
ASSET_COMPILATION_WAIT_MULTIPLIER=${ASSET_COMPILATION_WAIT_MULTIPLIER:=1}
+if [[ "${CI=}" == "true" ]]; then
+ export COLUMNS="202"
+fi
+
# shellcheck disable=SC1091
. "${IN_CONTAINER_DIR}/check_connectivity.sh"