Skip to content

Inherit build runner progress node from compiler if stderr is not a TTY#24733

Open
myclevorname wants to merge 1 commit intoziglang:masterfrom
myclevorname:progress
Open

Inherit build runner progress node from compiler if stderr is not a TTY#24733
myclevorname wants to merge 1 commit intoziglang:masterfrom
myclevorname:progress

Conversation

@myclevorname
Copy link

Fixes #24722

Copy link
Member

@andrewrk andrewrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a comment explaining why the tty check

@myclevorname myclevorname requested a review from andrewrk August 7, 2025 18:03
@myclevorname myclevorname requested a review from andrewrk August 7, 2025 21:12
Copy link
Member

@andrewrk andrewrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the comment. Now I understand what the logic is attempting to do. I think asking if it is a TTY is the wrong question. Really, it should be checking if the ZIG_PROGRESS environment variable is present, in which case a parent process is requesting participation in an already existing progress node.

The reason for bothering to check in this case is an optimization, to avoid sending progress data from the build runner to the CLI unnecessarily since the CLI is doing nothing but forwarding it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build runner does not interact with external progress node

2 participants