-
Notifications
You must be signed in to change notification settings - Fork 325
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
Testhost is blocked on system error message dialog #5151
Comments
I don't think there is a way for us to influence this. It is the same deal with debug assertion messages (Debug.Assert). Unless the underlying framework implements a trace listener that does not forward the assert failure, the default will show an assertion pop-up, and will block the run. Is it happening in any run? My impression is that when the session is not interactive you don't get these pop-ups, and imho interactive session is set only when you say you have UI tests in the mix (at least when using VSTest AzDO task). |
We most likely cannot affect this, and it would be a new feature, or more likely a responsibility of the testing framework (e.g. mstest, nunit, xunit) rather than responsibility of this platform. I would be curious if you come up with a solution, if yes we could consider it for testing platform / mstest (both residing in https://github.com/microsoft/testfx). 😊 But at the moment this repo (vstest) is not accepting any new features. |
We're using Azure DevOps Server with our own runners with interactive sessions even if the test set doesn't contain any UI tests.
I thought about calling |
Description
The testhost is blocked on a system error message dialog. I haven't analyzed the cause of the system error yet, but the problem here is that a system error dialog is shown at all. Running the tests in a build pipeline via Azure DevOps / VSTest task / vstest.console the task just hangs until the timeout is hit. This issue can only be diagnosed with access to the CI system to see that it's the system error dialog that causes the timeout.
Steps to reproduce
So far I haven't managed to produce a small sample that I can share. I'll update this post if I manage to produce a self contained repro.
Expected behavior
Testhost crashes and the error is logged.
Actual behavior
Testhost is blocked on system error message dialog
Diagnostic logs
There is no mention of the error in the logs, just polling on both sides.
vstest.console console output after clicking OK on the system error dialog
vstest.console diagnostic log
testhost
Environment
Windows 10
VSTest from Visual Studio installation
testhost.net472.exe / testhost.net472.x86.exe version 17.10.0-release-24177-07
vstest.console.exe 17.10.0-release-24177-07 ()
The text was updated successfully, but these errors were encountered: