Skip to content

Hide empty log groups in the task log view - #75686

Merged
bbovenzi merged 1 commit into
apache:mainfrom
astronomer:ui-hide-empty-log-groups
Oct 27, 2026
Merged

bbovenzi merged 1 commit into
apache:mainfrom
astronomer:ui-hide-empty-log-groups

Conversation

@jedcunningham

Copy link
Copy Markdown
Member

The task runner always opens a "Post Execute" log group after execute() returns, but for a plain task nothing is logged at INFO before it is closed, so the UI showed a section header that expanded to nothing.

When parsing logs, drop a group header if the group closes with no entries in it. A parent containing only empty groups is dropped too. Unclosed groups are kept so a running task still shows its current section.

Before:

preview-before-returns-none

After:

preview-returns-none

The task runner always opens a "Post Execute" log group after execute()
returns, but for a plain task nothing is logged at INFO before it is
closed, so the UI showed a section header that expanded to nothing.

When parsing logs, drop a group header if the group closes with no
entries in it. A parent containing only empty groups is dropped too.
Unclosed groups are kept so a running task still shows its current
section.
@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Oct 26, 2026
@bbovenzi bbovenzi added the backport-to-v3-4-test Backport to v3-4-test label Oct 27, 2026
@bbovenzi bbovenzi added this to the Airflow 3.4.0 milestone Oct 27, 2026
@bbovenzi
bbovenzi merged commit 8f7a8e4 into apache:main Oct 27, 2026
121 checks passed
@bbovenzi
bbovenzi deleted the ui-hide-empty-log-groups branch October 27, 2026 15:24
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-4-test PR Link

bbovenzi pushed a commit that referenced this pull request Oct 27, 2026
The task runner always opens a "Post Execute" log group after execute()
returns, but for a plain task nothing is logged at INFO before it is
closed, so the UI showed a section header that expanded to nothing.

When parsing logs, drop a group header if the group closes with no
entries in it. A parent containing only empty groups is dropped too.
Unclosed groups are kept so a running task still shows its current
section.
(cherry picked from commit 8f7a8e4)

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-4-test Backport to v3-4-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants