Skip to content
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

Merged
merged 3 commits into from
Jun 17, 2022

Conversation

Evangelink
Copy link
Member

@Evangelink Evangelink commented Jun 16, 2022

Fixes AB#1555397

@Evangelink Evangelink merged commit 44ccd25 into microsoft:main Jun 17, 2022
@Evangelink Evangelink deleted the background-option branch June 17, 2022 12:57
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
Copy link
Contributor

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 :)

Copy link
Member Author

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.

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