Skip to content

[release/10.0.3xx] Fix flaky output truncation in CLI integration tests - #10387

Merged
joeloff merged 1 commit into
release/10.0.3xxfrom
backport/pr-10384-to-release/10.0.3xx
Jul 24, 2026
Merged

[release/10.0.3xx] Fix flaky output truncation in CLI integration tests#10387
joeloff merged 1 commit into
release/10.0.3xxfrom
backport/pr-10384-to-release/10.0.3xx

Conversation

@github-actions

Copy link
Copy Markdown

Backport of #10384 to release/10.0.3xx

/cc @joeloff

StreamForwarder read the child process's redirected output on a
thread-pool thread (Task.Run) one character at a time. Under CI load the
thread pool can be starved, delaying the reader so the OS pipe fills and
the child blocks on Console.Write. The child's asynchronous console
logger (AddSimpleConsole) then drops queued messages when its bounded
flush-on-dispose (~1.5s) times out, truncating captured output and
producing cut-off Verify received.txt files.

Read on a dedicated long-running thread and in 4096-char chunks so the
pipe is drained promptly and the child is never blocked long enough to
lose output.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a88c2700-ee2f-4a55-9272-f19d9b8537d7
@github-actions
github-actions Bot requested a review from a team as a code owner July 24, 2026 16:41
@joeloff
joeloff enabled auto-merge (squash) July 24, 2026 16:48
@joeloff
joeloff merged commit ddd080f into release/10.0.3xx Jul 24, 2026
9 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.

1 participant