Skip to content

Commit 0c881cd

Browse files
Marchhillclaude
andcommitted
ci: dump managed thread stacks when the nethtest watchdog fires
Flat stateTest chunks intermittently stall at startup with zero progress; capture the deadlocked stacks before terminating. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 2c6fd16 commit 0c881cd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/run-nethtest.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,12 @@ jobs:
625625
echo ""
626626
echo "--- recent nethtest status ---"
627627
tail -30 "$STDERR_FILE" | sed 's/\x1b\[[0-9;]*m//g' || true
628+
echo ""
629+
echo "--- managed thread stacks (deadlock diagnostics) ---"
630+
if kill -0 "$NETHTEST_PID" 2>/dev/null; then
631+
dotnet tool install --global dotnet-stack >/dev/null 2>&1 || true
632+
"$HOME/.dotnet/tools/dotnet-stack" report -p "$NETHTEST_PID" 2>&1 | head -600 || true
633+
fi
628634
echo "================================"
629635
}
630636

0 commit comments

Comments
 (0)