New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--blame-hang does not create dumps #4351
Comments
On another run, I got the following logs:
What I don't understand is, what that log actually means. Is the Test host process crashed, or does it hang? It seems like the process crashed, but the system kinda thinks, it hangs and wants to create a dump later on, but the process isn't there anymore (maybe because it crashed?) |
Are you running it together with --blame-crash? There is an issue where hang kills procdump and that kills the testhost process as well. Trying to solve that in #4378 edit: Your log says that on the top. I overlooked it. |
|
Thank you very much for fixing it! Can you please tell me, how this fix gets released? Is it included in a new Visual Studio version? Is there a timetable? |
This will be in 17.6.1 and 17.7.0 (and there will be servicing for net7.0.3xx but not the one that will be coming soon, we missed that window.). |
@nohwnd will the fix also be made available to the current LTSC version of Visual Studio? Alternatively, is it part of the .NET 6 SDK, and if so, which version? 🙂 |
We plan to service 17.6.x once it is possible. We don't plan to service net6, but you can use net7 sdk and build net6 without any problem. Same with running tests, you can install any version of dotnet sdk that is newer than net6 and use that to run tests, and that way get vstest fixes early. |
Description
On our Azure DevOps Server we have a pipeline, which executes some automated tests. Currently, there's a test, which always hangs. Here's our dotnet call:
C:\AzAgent\_work\_tool\dotnet\dotnet.exe test --logger trx --results-directory C:\AzAgent\_work\_temp C:\AzAgent\_work\42\b\Assembly1.Test.dll C:\AzAgent\_work\42\b\Assembly2.Test.dll C:\AzAgent\_work\42\b\Assembly3.Test.dll --filter TestCategory!=PerformanceMeasurement --settings C:\AzAgent\_work\42\b\.runsettings --blame-crash --blame-crash-dump-type full --blame-hang --blame-hang-dump-type full --blame-hang-timeout 60m --verbosity Normal
Expected behavior
Because we are using the options
--blame-hang --blame-hang-dump-type full --blame-hang-timeout 60m
we would expect a dump to be created in our TestResults directory. Unfortunately, there's just aSequence.xml
, but no dump file.I found the following lines in the log:
While reading another issue posted here I noticed, they had another line in their log, which I couldn't find in my log:
Here's our
.runsettings
:Environment
C:\ProcDump
1
The text was updated successfully, but these errors were encountered: