Skip to content

Conversation

@nohwnd
Copy link
Member

@nohwnd nohwnd commented Apr 16, 2021

Description

Failing to deserialize incoming request will be logged into log, but won't kill testhost. Vstest console won't know that testhost failed to process and will wait for it indefinitely, or till the whole run times out. The deserialization error happens from time to time (investigating why), and this will prevent the hang if it happens by aborting the run and passing back the error.

Copy link
Contributor

@Haplois Haplois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Haplois Haplois merged commit 4e29874 into microsoft:master Apr 16, 2021
Haplois added a commit to Haplois/vstest that referenced this pull request May 4, 2021
* Abort when init and run messages fail to process, usually on deserialization, to prevent the host from hanging
* Send the message via the abort handler when we abort the run
@rouke-broersma
Copy link

@nohwnd could this possibly be related to #2686?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants