Skip to content

Commit 740b538

Browse files
committed
Add debug output for Named Pipe test failures
1 parent fd30845 commit 740b538

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/cross-platform-test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,13 @@ jobs:
307307
if (-not $pipeReady) {
308308
Write-Host "=== Named Pipe not found, checking process state ===" -ForegroundColor Red
309309
Write-Host "Process running: $(-not $bgProcess.HasExited)"
310+
311+
# Debug: List pipe-related files
312+
if (-not $IsWindows) {
313+
Write-Host "=== /tmp pipe files ===" -ForegroundColor Yellow
314+
Get-ChildItem /tmp -Filter "CoreFxPipe_*" -ErrorAction SilentlyContinue | ForEach-Object { Write-Host $_.FullName }
315+
}
316+
310317
if (-not $bgProcess.HasExited) {
311318
Write-Host "=== Available stdout ===" -ForegroundColor Yellow
312319
while ($bgProcess.StandardOutput.Peek() -ge 0) {
@@ -347,6 +354,12 @@ jobs:
347354
if ($task.Wait($TimeoutMs)) {
348355
return $task.Result
349356
} else {
357+
# On timeout, dump stderr for debugging
358+
Write-Host "=== Proxy stderr (timeout debug) ===" -ForegroundColor Red
359+
while ($process.StandardError.Peek() -ge 0) {
360+
Write-Host ([char]$process.StandardError.Read()) -NoNewline
361+
}
362+
Write-Host ""
350363
throw "Timeout waiting for response"
351364
}
352365
}

0 commit comments

Comments
 (0)