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

Enable parallel discovery #3349

Merged
merged 40 commits into from
Feb 18, 2022
Merged

Enable parallel discovery #3349

merged 40 commits into from
Feb 18, 2022

Conversation

Evangelink
Copy link
Member

@Evangelink Evangelink commented Feb 10, 2022

Description

Replaces #3226 and #3186.

Tagging @Sanan07

Related issue

Fixes : #2902, #2903, #2904, #2686

Sanan07 and others added 18 commits November 22, 2021 21:00
# Conflicts:
#	src/Microsoft.TestPlatform.Client/DesignMode/DesignModeClient.cs
#	src/Microsoft.TestPlatform.Client/Discovery/DiscoveryRequest.cs
#	src/Microsoft.TestPlatform.Client/RequestHelper/ITestRequestManager.cs
#	src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/IParallelProxyDiscoveryManager.cs
#	src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/IProxyDiscoveryManager.cs
#	src/Microsoft.TestPlatform.Common/Interfaces/Engine/TesthostProtocol/IDiscoveryManager.cs
#	src/Microsoft.TestPlatform.CommunicationUtilities/Interfaces/ITestRequestSender.cs
#	src/Microsoft.TestPlatform.CommunicationUtilities/JsonDataSerializer.cs
#	src/Microsoft.TestPlatform.CommunicationUtilities/Messages/DiscoveryCompletePayload.cs
#	src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/Client/InProcessProxyDiscoveryManager.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/Client/Parallel/ParallelDiscoveryDataAggregator.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/Client/Parallel/ParallelDiscoveryEventsHandler.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/Client/Parallel/ParallelProxyDiscoveryManager.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyDiscoveryManager.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/Discovery/DiscovererEnumerator.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/Discovery/DiscoveryManager.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/EventHandlers/TestRequestHandler.cs
#	src/Microsoft.TestPlatform.ObjectModel/Client/Events/DiscoveryCompleteEventArgs.cs
#	src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/IDiscoveryRequest.cs
#	src/Microsoft.TestPlatform.ObjectModel/Constants.cs
#	src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleRequestSender.cs
#	src/vstest.console/TestPlatformHelpers/TestRequestManager.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/DiscoverTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/EventHandler/DiscoveryEventHandler.cs
#	test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeClientTests.cs
#	test/Microsoft.TestPlatform.Client.UnitTests/Discovery/DiscoveryRequestTests.cs
#	test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Client/Parallel/ParallelDiscoveryDataAggregatorTests.cs
#	test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Client/Parallel/ParallelDiscoveryEventsHandlerTests.cs
#	test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Client/Parallel/ParallelProxyDiscoveryManagerTests.cs
#	test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Discovery/DiscoveryManagerTests.cs
#	test/TranslationLayer.UnitTests/VsTestConsoleRequestSenderTests.cs
#	test/vstest.console.UnitTests/TestPlatformHelpers/TestRequestManagerTests.cs
Co-authored-by: Medeni Baykal <433724+Haplois@users.noreply.github.com>
{
if (sources == null || sources.Count() == 0) return;

lock (_enumeratorLockObject)
Copy link
Member

Choose a reason for hiding this comment

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

What does the second remark mean?

@Evangelink Evangelink mentioned this pull request Feb 15, 2022
# Conflicts:
#	src/Microsoft.TestPlatform.CrossPlatEngine/Client/Parallel/ParallelDiscoveryDataAggregator.cs
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, I have some comments though.

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.

Fix discovery abort scenario
5 participants