Skip to content

[v3-0-test] Improve terminal handling for breeze commands (#52452) #52456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2025

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Jun 29, 2025

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 3347e03)

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

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 3347e03)

Co-authored-by: Jarek Potiuk <[email protected]>
@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch labels Jun 29, 2025
@potiuk potiuk removed the backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch label Jun 29, 2025
@potiuk potiuk merged commit c545913 into apache:v3-0-test Jun 29, 2025
22 checks passed
@potiuk potiuk deleted the backport-3347e03-v3-0-test branch June 29, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant