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

Fixing .net framework parallel issue #3192

Merged
merged 1 commit into from
Nov 25, 2021
Merged

Conversation

Sanan07
Copy link
Contributor

@Sanan07 Sanan07 commented Nov 25, 2021

Description

We already changed behaviour and now .net framework can also run in parallel and can have separate testhosts for each assembly.
And we faced issue when ProxyDiscoveryManager instance was already closed before sending some request to testhost.
So I removed that condition and now ProxyDiscoveryManager instance will assign new object as it was previously only for .netcore.

IsAborted condition is already not mandatory, because we need to execute that part of code any time we come here.

Related issue

Kindly link any related issues. E.g. Fixes #xyz.

@Sanan07 Sanan07 requested a review from cvpoienaru November 25, 2021 14:37

proxyDiscoveryManager = this.CreateNewConcurrentManager();
Copy link
Member

Choose a reason for hiding this comment

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

We should probably take advantage of the fact that .net fw testhost is shared and re-use it instead of killing it in the parallel discovery/execution case.

E.g.: parallelLevel = 4, .net fw test assmeblies = 8.

What happens now is that we spawn 4 testhosts, discover 4 .net fw test assmeblies, kill the 4 testhosts and then spawn another 4 testhosts to do the same for the remaining 4 test assemblies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, after discovery 4 test assemblies, it will spawn next 4 testhosts one by one, not simultaniously as the first time.
So it will spawn 4 testhosts and when some testhost finishes discovering it will start new one for the next source.

As we discussed, I just created new issue for that idea : #3193.
Feel free to add or edit description for the issue.

@Sanan07 Sanan07 merged commit fb77d43 into main Nov 25, 2021
@Sanan07 Sanan07 deleted the dev/sayuzbas/fix-parallel branch November 25, 2021 16:39
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.

2 participants