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
# The filter above cannot tell stray output from a worker that died before it returned its
439
+
# result object, so on its own it would drop a whole test file and let the run report success
440
+
# with fewer files than it was given. Losing results silently is worse than failing, so compare
441
+
# what came back against what was sent and name the files that went missing. The worker's own
442
+
# error was already surfaced by Invoke-InRunspacePool, this says which file it cost us.
443
+
if ($results.Count-ne$work.Count) {
444
+
$returnedPaths=@{}
445
+
foreach ($rin$results) {
446
+
if ($null-ne$r.PSObject.Properties['Path']) { $returnedPaths[$r.Path] =$true }
447
+
}
448
+
449
+
$missing=@(foreach ($win$work) {
450
+
if (-not$returnedPaths.ContainsKey($w.Path)) { $w.Path }
451
+
})
452
+
453
+
throw"Parallel run lost the results of $($missing.Count) of $($work.Count) file(s), the worker(s) running them did not return a result. See the errors above for why. Lost: $($missing-join', ')"
454
+
}
455
+
438
456
# Restore the original discovery order so replay and the merged run are deterministic
0 commit comments