-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[VsTest task] Vstest.console.exe error "An existing connection was forcibly closed by the remote host" #9095
Comments
@TestO2015 does this repro constantly with every run? Does this happen if you run the tests on a self hosted agent also? Can you provide a sample repro project if possible? |
@ShreyasRmsft Please let me know if there's more info we can provide or if you have any ideas how we could diagnose it ourselves. Thanks. |
@TestO2015 Can you try this with the latest version of test platform? You can use the platform installer task to do this. |
@TestO2015 Any updates? |
Closing this since we do not have enough info to investigate this further. Please reopen once you have the data asked above if you are still facing this. |
Apologies for the delay, this issue is still occurring, could we please reopen this? Here's what we've tried: Enabled 'Collect advanced diagnostics in case of test failure' Set 'Collect Process Dump and attach to report to' 'Always' Ran the vstest.console.exe process with the /diag option and printed the results (already attached above in TestRunLog_log_19_5820.zip) Used the latest version of the test platform, which didn't solve the issue. Thank you |
@TestO2015 Can you try out this:
Now, once you are done with this, if a crash happens again, the dumps are attached as Test Run attachments (click on the test run in test summary tab): |
@TestO2015 any updates here? |
Thank you @prawalagarwal . After enabling a custom batch size, test failures were reported with an error during the MSTEST cleanup routine of our tests. We've fixed the error during cleanup and it now works. It appears that the SocketException error message was hiding actual test failures. If so that's something to fix. |
Thanks for reporting back! |
Environment
Issue Description
We have a Visual Studio Test task which fails with an error returned from vstest.console.exe.
There were no test failures reported however not all were run; it appears it aborted before they completed.
Error from VsTest log:
Error from vstest.console.exe:
VisualStudioTestTask_log_18_5820.zip
TestRunLog_log_19_5820.zip
The text was updated successfully, but these errors were encountered: