Skip to content

Improve terminal handling for breeze commands #52452

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

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.

^ 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.

@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 requested a review from kaxil June 29, 2025 10:56
@potiuk potiuk force-pushed the improve-terminal-handling-for-run-command branch from 840c326 to 3a642fc Compare June 29, 2025 11:07
@potiuk
Copy link
Member Author

potiuk commented Jun 29, 2025

400 is a bit too long :)

Screenshot 2025-06-29 at 13 20 34

@potiuk potiuk force-pushed the improve-terminal-handling-for-run-command branch from 3a642fc to 4f50e06 Compare June 29, 2025 11:24
@potiuk potiuk force-pushed the improve-terminal-handling-for-run-command branch 2 times, most recently from 60157d0 to 0ac1682 Compare June 29, 2025 11:57
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.
@potiuk potiuk force-pushed the improve-terminal-handling-for-run-command branch from 0ac1682 to 6d46aef Compare June 29, 2025 12:07
@potiuk potiuk merged commit 3347e03 into apache:main Jun 29, 2025
83 of 84 checks passed
@potiuk potiuk deleted the improve-terminal-handling-for-run-command branch June 29, 2025 12:23
Copy link

Backport failed to create: v3-0-test. View the failure log Run details

Status Branch Result
v3-0-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 3347e03 v3-0-test

This should apply the commit to the v3-0-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

potiuk added a commit to potiuk/airflow that referenced this pull request 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)

Co-authored-by: Jarek Potiuk <[email protected]>
potiuk added a commit that referenced this pull request Jun 29, 2025
…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 3347e03)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants