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

Create new RuntimeProvider to be associated with each ProxyOperationManager #653

Merged
merged 2 commits into from
Mar 23, 2017
Merged

Create new RuntimeProvider to be associated with each ProxyOperationManager #653

merged 2 commits into from
Mar 23, 2017

Conversation

mayankbansal018
Copy link
Contributor

Since RuntimeProvider manages individual testruntime & also has state w.r.t a runtime's errorstream, & raises events w.r.t that runtime. It is better to associate a new runtimeprovider with each ProxyOperationManager(in parallel scenario)

@msftclas
Copy link

@mayankbansal018,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@@ -146,8 +146,6 @@ public virtual void Close()
finally
{
this.initialized = false;
this.testHostManager.HostExited -= this.TestHostManagerHostExited;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add it back.

@@ -126,14 +126,17 @@ public HostProviderEventArgs(string message)
this.ErrroCode = 0;
}

public HostProviderEventArgs(string message, int errorCode)
public HostProviderEventArgs(string message, int errorCode, int processId)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit:
Why don't we have separate cs file for these ?
Please add xml comments for anything that is public.

var isDataCollectorEnabled = XmlRunSettingsUtilities.IsDataCollectionEnabled(testRunCriteria.TestRunSettings);

// SetupChannel ProxyExecutionManager with data collection if data collectors are specififed in run settings.
Func<IProxyExecutionManager> proxyExecutionManagerCreator =
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we need tests for these changes ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, we do, I was thinking to put them in next PR, as to unblock the CI flow?

@mayankbansal018 mayankbansal018 merged commit 15027fc into microsoft:master Mar 23, 2017
@mayankbansal018 mayankbansal018 deleted the runtimeprovider-parallel branch March 23, 2017 13:46
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.

4 participants