Skip to content

fix(shim): use read_stderr for stderr stream forwarding#191

Merged
fslongjin merged 1 commit into
TencentCloud:masterfrom
novahe:fix/exec-stderr-stream
May 13, 2026
Merged

fix(shim): use read_stderr for stderr stream forwarding#191
fslongjin merged 1 commit into
TencentCloud:masterfrom
novahe:fix/exec-stderr-stream

Conversation

@novahe
Copy link
Copy Markdown
Contributor

@novahe novahe commented May 11, 2026

Found that commands executed via exec were missing stderr output, and sometimes stdout output was randomly split into the stderr stream.

Investigated and discovered that the forward_stderr logic was incorrectly polling read_stdout instead of read_stderr

@novahe novahe requested review from fslongjin and ls-ggg as code owners May 11, 2026 16:45
@fslongjin
Copy link
Copy Markdown
Member

Hello, please add DCO to your commit.

Copy link
Copy Markdown
Member

@fslongjin fslongjin left a comment

Choose a reason for hiding this comment

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

DCO needed

Corrected a bug in the Exec stream forwarding logic where the stderr stream was incorrectly using the stdout read method. This fix ensures that stderr output from containers is properly captured and forwarded to the host.

Assisted-by: Antigravity:Gemini-2.0-Flash
Signed-off-by: novahe <heqianfly@gmail.com>
@novahe novahe force-pushed the fix/exec-stderr-stream branch from 0a6653d to b9f10d5 Compare May 12, 2026 02:14
@novahe novahe requested a review from fslongjin May 12, 2026 02:15
@novahe
Copy link
Copy Markdown
Contributor Author

novahe commented May 12, 2026

PTAL @fslongjin

@fslongjin fslongjin merged commit c9db08e into TencentCloud:master May 13, 2026
7 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.

2 participants