Skip to content

[airflow-ctl/v0-1-test] Keep airflowctl stdout parseable when a request is retried or fails (#76347) - #76380

Merged
shahar1 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-6f7cb34-airflow-ctl/v0-1-test
Nov 3, 2026
Merged

shahar1 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-6f7cb34-airflow-ctl/v0-1-test

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The API client logs "Server error" and the tenacity retry warning
through structlog, which prints to stdout when nothing configures it.
A single retried 5xx then puts two log lines in front of the
-o json output, while the command still exits 0. The shared error
handler also printed its messages to stdout. #76133 and #76134 moved
the messages of a few commands to stderr, but these two paths are
shared by every command.
(cherry picked from commit 6f7cb34)

Co-authored-by: Andrew Chang [email protected]

…st is retried or fails (#76347)

The API client logs "Server error" and the tenacity retry warning
through structlog, which prints to stdout when nothing configures it.
A single retried 5xx then puts two log lines in front of the
`-o json` output, while the command still exits 0. The shared error
handler also printed its messages to stdout. #76133 and #76134 moved
the messages of a few commands to stderr, but these two paths are
shared by every command.
(cherry picked from commit 6f7cb34)

Co-authored-by: Andrew Chang <[email protected]>
@shahar1
shahar1 enabled auto-merge (squash) November 3, 2026 16:05
@shahar1
shahar1 merged commit 17f1f78 into airflow-ctl/v0-1-test Nov 3, 2026
14 checks passed
@shahar1
shahar1 deleted the backport-6f7cb34-airflow-ctl/v0-1-test branch November 3, 2026 16:20
shahar1 pushed a commit to shahar1/airflow that referenced this pull request Nov 4, 2026
…st is retried or fails (apache#76347) (apache#76380)

The API client logs "Server error" and the tenacity retry warning
through structlog, which prints to stdout when nothing configures it.
A single retried 5xx then puts two log lines in front of the
`-o json` output, while the command still exits 0. The shared error
handler also printed its messages to stdout. apache#76133 and apache#76134 moved
the messages of a few commands to stderr, but these two paths are
shared by every command.
(cherry picked from commit 6f7cb34)

Co-authored-by: Andrew Chang <[email protected]>
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.

2 participants