-
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
Add background option for testhosts #3772
Conversation
src/Microsoft.TestPlatform.TestHostProvider/Hosting/DefaultTestHostManager.cs
Outdated
Show resolved
Hide resolved
1925476
to
8c56ce9
Compare
testHostPriority = environmentVariableHelper.GetEnvironmentVariableAsEnum("VSTEST_HOST_INTERNAL_PRIORITY", testHostPriority); | ||
testHostProcess.PriorityClass = testHostPriority; | ||
EqtTrace.Verbose("Setting test host process priority to {0}", testHostProcess.PriorityClass); | ||
if (testHostEnvironmentVariables is not null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Evangelink @nohwnd I am not familiar with the code base - but is DefaultTestHostManager also used when parallel is not in play?
Just want to make sure that it is possible to create low prio test hosts -
a) regardless of whether parallel is turned on and
b) regardless of whether the operation requested is execution versus discovery
Also if the answer to b) above is yes, then it may be better to rename this to something more general like VSTEST_BACKGROUND_OPERATION or VSTEST_BACKGROUND_PRIORITY :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that code is used even in "sequential". This is used to decide on the level of parallelism (including sequential) to use.
Fixes AB#1555397