Skip to content

[v3-3-test] Fix airflow info --file-io uploading an empty report (#72707) - #72832

Merged
potiuk merged 1 commit into
v3-3-testfrom
backport-90787d5-v3-3-test
Sep 9, 2026
Merged

potiuk merged 1 commit into
v3-3-testfrom
backport-90787d5-v3-3-test

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
  • Fix airflow info --file-io uploading an empty report

The report was read back from rich's recording buffer, but the render ran
inside a capture, and rich skips the record buffer while a capture is active.
The command therefore uploaded a zero-byte file and reported success, for a
command whose only purpose is producing that report.

The console is built without a color system because the result is written to
a file, where escape codes would be noise rather than formatting.

  • Update airflow-core/tests/unit/cli/commands/test_info_command.py

Co-authored-by: rjgoyln 151457491+rjgoyln@users.noreply.github.com

  • Pin the uploaded report width so it does not depend on the terminal

The console only falls back to a fixed width when stdout is not a tty,
so a report generated from a real terminal was laid out at that
terminal's width and long path values were cut off in the uploaded file.


(cherry picked from commit 90787d5)

Co-authored-by: Y-C easoneason0905@gmail.com
Co-authored-by: Eason09053360 185830721+Eason09053360@users.noreply.github.com
Co-authored-by: Henry Chen henrychen@apache.org
Co-authored-by: rjgoyln 151457491+rjgoyln@users.noreply.github.com

)

* Fix airflow info --file-io uploading an empty report

The report was read back from rich's recording buffer, but the render ran
inside a capture, and rich skips the record buffer while a capture is active.
The command therefore uploaded a zero-byte file and reported success, for a
command whose only purpose is producing that report.

The console is built without a color system because the result is written to
a file, where escape codes would be noise rather than formatting.

* Update airflow-core/tests/unit/cli/commands/test_info_command.py

Co-authored-by: rjgoyln <151457491+rjgoyln@users.noreply.github.com>

* Pin the uploaded report width so it does not depend on the terminal

The console only falls back to a fixed width when stdout is not a tty,
so a report generated from a real terminal was laid out at that
terminal's width and long path values were cut off in the uploaded file.

---------
(cherry picked from commit 90787d5)

Co-authored-by: Y-C <easoneason0905@gmail.com>
Co-authored-by: Eason09053360 <185830721+Eason09053360@users.noreply.github.com>
Co-authored-by: Henry Chen <henrychen@apache.org>
Co-authored-by: rjgoyln <151457491+rjgoyln@users.noreply.github.com>
@henry3260
henry3260 marked this pull request as ready for review September 9, 2026 18:20
@potiuk
potiuk merged commit 95e9ee3 into v3-3-test Sep 9, 2026
95 of 104 checks passed
@potiuk
potiuk deleted the backport-90787d5-v3-3-test branch September 9, 2026 23:18
@github-actions github-actions Bot added this to the Airflow 3.3.2 milestone Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.3.2 based on: bug fix merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants