You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EqtTrace.Verbose($"ParallelOperationManager.RunWorkInParallel: Running on pre-started host: {(DateTime.Now.TimeOfDay-slot.PreStartTime).TotalMilliseconds}ms {slot.InitTask?.Status}");
195
+
if(EqtTrace.IsVerboseEnabled)
196
+
{
197
+
EqtTrace.Verbose($"ParallelOperationManager.RunWorkInParallel: Running on pre-started host for work (source) {GetSourcesForSlotExpensive(slot)}: {(DateTime.Now.TimeOfDay-slot.PreStartTime).TotalMilliseconds}ms {slot.InitTask?.Status}");
// We already started as many as we were allowed, jump out;
179
202
if(startedWork==MaxParallelLevel)
180
203
{
204
+
EqtTrace.Verbose($"ParallelOperationManager.RunWorkInParallel: We started {startedWork} work items, which is the max parallel level. Won't start more work.");
EqtTrace.Verbose("ParallelOperationManager.RunWorkInParallel: Started work on a host.");
221
+
if(EqtTrace.IsVerboseEnabled)
222
+
{
223
+
EqtTrace.Verbose($"ParallelOperationManager.RunWorkInParallel: Started host in slot number {slot.Index} for work (source): {GetSourcesForSlotExpensive(slot)}.");
// We already started as many as we were allowed, jump out;
203
230
if(startedWork==MaxParallelLevel)
204
231
{
232
+
EqtTrace.Verbose($"ParallelOperationManager.RunWorkInParallel: We started {startedWork} work items, which is the max parallel level. Won't start more work.");
// Return true when we started more work. Or false, when there was nothing more to do.
224
255
// This will propagate to handling of partial discovery or partial run.
225
-
returnpreStartedWork+startedWork>0;
256
+
varweAddedMoreWork=preStartedWork+startedWork>0;
257
+
EqtTrace.Verbose($"ParallelOperationManager.RunWorkInParallel: We started {preStartedWork+startedWork} work items in here, returning {weAddedMoreWork}.");
thrownewInvalidOperationException("The provided manager was found in multiple slots.");
259
292
}
260
293
294
+
if(EqtTrace.IsVerboseEnabled)
295
+
{
296
+
EqtTrace.Verbose($"ParallelOperationManager.ClearCompletedSlot: Clearing slot number {completedSlot[0].Index} with work (source): {GetSourcesForSlotExpensive(completedSlot[0])}.");
Copy file name to clipboardExpand all lines: src/Microsoft.TestPlatform.CrossPlatEngine/Client/Parallel/ParallelProxyExecutionManager.cs
+55-43Lines changed: 55 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -159,11 +159,12 @@ public bool HandlePartialRunComplete(
159
159
?_runCompletedClients==_runStartedClients
160
160
:_runCompletedClients==_availableWorkloads;
161
161
162
-
EqtTrace.Verbose("ParallelProxyExecutionManager: HandlePartialRunComplete: Total completed clients = {0}, Run complete = {1}, Run canceled: {2}.",_runCompletedClients,allRunsCompleted,testRunCompleteArgs.IsCanceled);
162
+
EqtTrace.Verbose("ParallelProxyExecutionManager: HandlePartialRunComplete: Total workloads = {0}, Total started clients = {1} Total completed clients = {2}, Run complete = {3}, Run canceled: {4}.",_availableWorkloads,_runStartedClients,_runCompletedClients,allRunsCompleted,testRunCompleteArgs.IsCanceled);
163
163
}
164
164
165
165
if(allRunsCompleted)
166
166
{
167
+
EqtTrace.Verbose("ParallelProxyExecutionManager: HandlePartialRunComplete: All runs completed stopping all managers.");
167
168
_parallelOperationManager.StopAllManagers();
168
169
returntrue;
169
170
}
@@ -185,8 +186,13 @@ public bool HandlePartialRunComplete(
185
186
// {
186
187
// return true;
187
188
// }
189
+
EqtTrace.Verbose("ParallelProxyExecutionManager: HandlePartialRunComplete: Not cancelled or aborted, running next work.");
EqtTrace.Verbose("ParallelProxyExecutionManager.StartTestRunOnConcurrentManager: Waiting for pre-initialized client to finish initialization. Started clients: "+_runStartedClients);
453
+
initTask!.Wait();
454
+
EqtTrace.Verbose("ParallelProxyExecutionManager.StartTestRunOnConcurrentManager: Pre-initialized client finished initialization. Started clients: "+_runStartedClients);
Copy file name to clipboardExpand all lines: src/Microsoft.TestPlatform.CrossPlatEngine/Client/Parallel/ParallelRunEventsHandler.cs
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -66,10 +66,12 @@ public virtual void HandleTestRunComplete(
66
66
ICollection<AttachmentSet>?runContextAttachments,
67
67
ICollection<string>?executorUris)
68
68
{
69
+
EqtTrace.Verbose($"ParallelRunEventsHandler.HandleTestRunComplete: Handling a run completion, this can be either one part of parallel run completing, or the whole parallel run completing.");
0 commit comments