Skip to content

Commit 9956780

Browse files
authored
[CI] Improve windows hang detection script (#16891)
For whatever reason `tskill` seems to be able to kill processes `Stop-Process` can't. Manually tested this on a runner with hung tests. Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent 23b2457 commit 9956780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devops/scripts/windows_detect_hung_tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ $hungTests = Get-Process | Where-Object { ($_.Path -match "llvm\\install") -or (
33
$hungTests | Foreach-Object {
44
$exitCode = 1
55
echo "Test $($_.Path) hung!"
6-
Stop-Process -Force $_
6+
tskill $_.ID
77
}
88
exit $exitCode

0 commit comments

Comments
 (0)