testfx icon indicating copy to clipboard operation
testfx copied to clipboard

Collect all children processes dump in case of hang

Open Evangelink opened this issue 1 year ago • 2 comments

From @MarcoRossignoli:

Current extension takes the dump only for the test host process. If hang of it is related to children hang looks complex understand the reason (we have only the tests that's hanging). We should try to dump all children too.

Evangelink avatar Nov 27 '24 20:11 Evangelink

vstest does this and the code is here: https://github.com/microsoft/vstest/blob/main/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/WindowsHangDumper.cs#L38

https://github.com/microsoft/vstest/blob/main/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/NetClientHangDumper.cs#L18

using minidump write dump on windows is preferable because it gives dumps also of processes that are not .net.

nohwnd avatar Nov 28 '24 17:11 nohwnd

@Youssef1313 @nohwnd can we give it a push? I would need it for a CI scenario.

MarcoRossignoli avatar Jun 08 '25 09:06 MarcoRossignoli

@nohwnd I'm assigning this to you, but feel free to re-route it to me :)

Youssef1313 avatar Jun 27 '25 10:06 Youssef1313