Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream subprocess stdout #783

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Stream subprocess stdout #783

merged 1 commit into from
Jan 10, 2025

Conversation

H-Huang
Copy link
Member

@H-Huang H-Huang commented Jan 9, 2025

Stack from ghstack (oldest at bottom):

The integration tests do not output to terminal unless the process exits, which is a problem I hit when I had a hanging test and there was no output.

Due to setting stdout=subprocess.PIPE, this captures the standard output of the subprocess. The output is only printed after the process exits. If we dont set stdout stdout=None, then standard output is not captured; it is inherited from the parent process which is just the terminal and prints out normally.

[ghstack-poisoned]
H-Huang added a commit that referenced this pull request Jan 9, 2025
ghstack-source-id: c7e14e5ed4b3fcf735245bc9f2aeec0fdd505dd1
Pull Request resolved: #783
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 9, 2025
@H-Huang H-Huang requested review from wconstab and tianyu-l January 9, 2025 21:49
@c-p-i-o c-p-i-o self-requested a review January 9, 2025 22:53
Copy link
Contributor

@tianyu-l tianyu-l left a comment

Choose a reason for hiding this comment

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

nice!

@H-Huang H-Huang merged commit 4e008c4 into gh/H-Huang/18/base Jan 10, 2025
4 checks passed
H-Huang added a commit that referenced this pull request Jan 10, 2025
ghstack-source-id: c7e14e5ed4b3fcf735245bc9f2aeec0fdd505dd1
Pull Request resolved: #783
@H-Huang H-Huang deleted the gh/H-Huang/18/head branch January 10, 2025 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants