Commit 2c41608
Suppress EC flow in BeginErrorReadLine and fix diagnostic log glob
- Add ExecutionContext.SuppressFlow() around process.BeginErrorReadLine()
to prevent the Process's internal async stderr reader from capturing
the caller's execution context. This avoids potential interference
between the background reader thread and the caller's async tracking
(e.g., xUnit test runner state), which was correlated with intermittent
test host hangs on .NET 9+.
- Fix CI artifact upload glob: change artifacts/bin/*Tests/*/xunit-runtest-diag.log
to **/xunit-runtest-diag.log so the instrumented xUnit diagnostic log is
actually captured when the test host hangs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 567b4f9 commit 2c41608
2 files changed
Lines changed: 7 additions & 2 deletions
File tree
- .github/workflows
- src/ModelContextProtocol.Core/Client
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
| |||
0 commit comments