Skip to content

line-buffer stdout so progress is visible when output is redirected - #231

Merged
lefterislazar merged 1 commit into
argotorg:mainfrom
mijovic:upstream-line-buffering
Aug 10, 2026
Merged

line-buffer stdout so progress is visible when output is redirected#231
lefterislazar merged 1 commit into
argotorg:mainfrom
mijovic:upstream-line-buffering

Conversation

@mijovic

@mijovic mijovic commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

GHC block-buffers stdout when it is not a terminal, so 'Checking behavior ...' progress lines are withheld until a block fills or the process exits. Piping an equiv run to a log therefore shows nothing for minutes to hours, and a healthy run looks identical to a hung one (this cost real debugging time on a multi-hour proof). Line buffering makes progress visible without changing any output.

GHC block-buffers stdout when it is not a terminal, so 'Checking behavior ...'
progress lines are withheld until a block fills or the process exits. Piping an
equiv run to a log therefore shows nothing for minutes to hours, and a healthy
run looks identical to a hung one (this cost real debugging time on a
multi-hour proof). Line buffering makes progress visible without changing any
output.

@anjapetkovic anjapetkovic left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks correct and helpful.

@lefterislazar
lefterislazar merged commit e9cff61 into argotorg:main Aug 10, 2026
2 checks passed
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.

3 participants