116 references to BuildRequest
Microsoft.Build (116)
BackEnd\Components\Scheduler\SchedulableRequest.cs (10)
344
BlockingRequestKey key = new BlockingRequestKey(blockingRequest.
BuildRequest
);
468
public bool IsProxyBuildRequest() =>
BuildRequest
.IsProxyBuildRequest();
519
SchedulableRequest alternateRequest = _schedulingData.GetBlockedRequestIfAny(blockingRequest.
BuildRequest
.GlobalRequestId);
534
if (requestToEvaluate.
BuildRequest
.GlobalRequestId == this.
BuildRequest
.GlobalRequestId)
545
requestToEvaluate = _schedulingData.GetBlockedRequestIfAny(requestToEvaluate.
BuildRequest
.GlobalRequestId);
595
if (currentRequest.
BuildRequest
.GlobalRequestId == blockingRequest.
BuildRequest
.GlobalRequestId)
616
BlockingRequestKey key = new BlockingRequestKey(requestWeAreBlockedBy.
BuildRequest
);
633
throw new SchedulerCircularDependencyException(requestCausingFailure.
BuildRequest
, ancestors);
BackEnd\Components\Scheduler\Scheduler.cs (72)
297
return request.
BuildRequest
;
349
TraceScheduler("Circular dependency caused by request {0}({1}) (nr {2}), parent {3}({4}) (nr {5})", ex.Request.GlobalRequestId, ex.Request.ConfigurationId, ex.Request.NodeRequestId, parentRequest.
BuildRequest
.GlobalRequestId, parentRequest.
BuildRequest
.ConfigurationId, parentRequest.
BuildRequest
.NodeRequestId);
350
responses.Add(ScheduleResponse.CreateCircularDependencyResponse(nodeId, parentRequest.
BuildRequest
, ex.Request));
362
TraceScheduler("Circular dependency caused by request {0}({1}) (nr {2}), parent {3}({4}) (nr {5})", ex.Request.GlobalRequestId, ex.Request.ConfigurationId, ex.Request.NodeRequestId, parentRequest.
BuildRequest
.GlobalRequestId, parentRequest.
BuildRequest
.ConfigurationId, parentRequest.
BuildRequest
.NodeRequestId);
363
responses.Add(ScheduleResponse.CreateCircularDependencyResponse(nodeId, parentRequest.
BuildRequest
, ex.Request));
401
ErrorUtilities.VerifyThrow(result.ParentGlobalRequestId == request.Parent.
BuildRequest
.GlobalRequestId, "Result's parent doesn't match request's parent.");
410
ScheduleResponse response = TrySatisfyRequestFromCache(request.Parent.AssignedNode, request.
BuildRequest
, skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss());
437
if (unscheduledRequest.
BuildRequest
.GlobalRequestId == result.GlobalRequestId)
439
TraceScheduler("Request {0} (node request {1}) also satisfied by result.", unscheduledRequest.
BuildRequest
.GlobalRequestId, unscheduledRequest.
BuildRequest
.NodeRequestId);
440
BuildResult newResult = new BuildResult(unscheduledRequest.
BuildRequest
, result, null);
453
ScheduleResponse response = TrySatisfyRequestFromCache(parentNode, unscheduledRequest.
BuildRequest
, skippedResultsDoNotCauseCacheMiss: true);
458
LogRequestHandledFromCache(unscheduledRequest.
BuildRequest
, response.BuildResult);
465
response = GetResponseForResult(parentNode, unscheduledRequest.
BuildRequest
, newResult.Clone());
563
if (request.
BuildRequest
.SubmissionId == submissionId)
851
ReadSchedulingPlan(_schedulingData.GetRequestsByHierarchy(null).First().
BuildRequest
.SubmissionId);
946
SchedulingPlan.PlanConfigData configToConsider = _schedulingPlan.GetConfiguration(request.
BuildRequest
.ConfigurationId);
979
AssignUnscheduledRequestsToInProcNode(responses, idleNodes, request => IsTraversalRequest(request.
BuildRequest
));
1072
int requiredNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(unscheduledRequest.
BuildRequest
.ConfigurationId);
1076
System.IO.FileInfo f = new FileInfo(_configCache[unscheduledRequest.
BuildRequest
.ConfigurationId].ProjectFullPath);
1114
int requiredNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(unscheduledRequest.
BuildRequest
.ConfigurationId);
1118
System.IO.FileInfo f = new FileInfo(_configCache[unscheduledRequest.
BuildRequest
.ConfigurationId].ProjectFullPath);
1156
BuildRequest currentRequest = currentSchedulableRequest.
BuildRequest
;
1330
int requiredNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(request.
BuildRequest
.ConfigurationId);
1342
TraceScheduler("Chose not to assign request {0} to node {2} because its count of configurations ({3}) exceeds the current limit ({4}).", request.
BuildRequest
.GlobalRequestId, request.
BuildRequest
.ConfigurationId, nodeId, configurationCountsByNode[nodeId], configurationCountLimit);
1364
bool mustSendConfigurationToNode = _availableNodes[nodeId].AssignConfiguration(request.
BuildRequest
.ConfigurationId);
1368
BuildRequestConfiguration config = _configCache[request.
BuildRequest
.ConfigurationId];
1376
responses.Add(ScheduleResponse.CreateScheduleResponse(nodeId, request.
BuildRequest
, mustSendConfigurationToNode));
1377
TraceScheduler("Executing request {0} on node {1} with parent {2}", request.
BuildRequest
.GlobalRequestId, nodeId, (request.Parent == null) ? -1 : request.Parent.
BuildRequest
.GlobalRequestId);
1454
NodeAffinity affinity = GetNodeAffinityForRequest(request.
BuildRequest
);
1486
int assignedNodeForConfiguration = _schedulingData.GetAssignedNodeForRequestConfiguration(request.
BuildRequest
.ConfigurationId);
1496
NodeAffinity affinityRequired = GetNodeAffinityForRequest(request.
BuildRequest
);
1608
_resultsCache.AddResult(new BuildResult(request.
BuildRequest
, new BuildAbortedException()));
1635
blockingRequest.
BuildRequest
.ConfigurationId == blockedRequest.
BuildRequest
.ConfigurationId &&
1654
BuildRequest newRequest = new BuildRequest(parentRequest.
BuildRequest
.SubmissionId, BuildRequest.ResultsTransferNodeRequestId, parentRequest.
BuildRequest
.ConfigurationId, [], null, parentRequest.
BuildRequest
.BuildEventContext, parentRequest.
BuildRequest
, parentRequest.
BuildRequest
.BuildRequestDataFlags);
1666
BuildRequestConfiguration configuration = _configCache[parentRequest.
BuildRequest
.ConfigurationId];
1751
existingRequestAffinity = GetNodeAffinityForRequest(existingRequest.
BuildRequest
);
1802
responses.Add(ScheduleResponse.CreateResumeExecutionResponse(parentRequest.AssignedNode, parentRequest.
BuildRequest
.GlobalRequestId));
1827
TraceScheduler("Unblocking request {0} on node {1}", request.
BuildRequest
.GlobalRequestId, nodeId);
1830
ScheduleResponse response = ScheduleResponse.CreateResumeExecutionResponse(nodeId, request.
BuildRequest
.GlobalRequestId);
1847
ScheduleResponse response = TrySatisfyRequestFromCache(nodeForResults, request.
BuildRequest
, skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss());
1853
LogRequestHandledFromCache(request.
BuildRequest
, response.BuildResult);
1864
LogRequestHandledFromCache(request.
BuildRequest
, response.Unblocker.Result);
1867
TraceScheduler("Reporting results for request {0} with parent {1} to node {2} from cache.", request.
BuildRequest
.GlobalRequestId, request.
BuildRequest
.ParentGlobalRequestId, response.NodeId);
1882
CheckIfCacheMissOnReferencedProjectIsAllowedAndErrorIfNot(nodeForResults, request.
BuildRequest
, responses, out _);
2033
SchedulableRequest parentRequest = _schedulingData.BlockedRequests.FirstOrDefault(r => r.
BuildRequest
.GlobalRequestId == request.ParentGlobalRequestId)
2034
?? _schedulingData.ExecutingRequests.FirstOrDefault(r => r.
BuildRequest
.GlobalRequestId == request.ParentGlobalRequestId);
2038
configCache.HasConfiguration(parentRequest.
BuildRequest
.ConfigurationId),
2041
BuildRequestConfiguration parentConfiguration = configCache[parentRequest.
BuildRequest
.ConfigurationId];
2262
if (existingRequest.
BuildRequest
.Targets.Count == request.Targets.Count)
2264
List<string> leftTargets = new List<string>(existingRequest.
BuildRequest
.Targets);
2280
request.GlobalRequestId = existingRequest.
BuildRequest
.GlobalRequestId;
2334
int workId = useConfigurations ? buildEvent.Request.
BuildRequest
.ConfigurationId : buildEvent.Request.
BuildRequest
.GlobalRequestId;
2530
useConfigurations ? request.
BuildRequest
.ConfigurationId : request.
BuildRequest
.GlobalRequestId,
2534
_configCache[request.
BuildRequest
.ConfigurationId].ProjectFullPath,
2535
String.Join(", ", request.
BuildRequest
.Targets));
2611
.
BuildRequest
.GlobalRequestId)
2806
var buildRequest = request.
BuildRequest
;
BackEnd\Components\Scheduler\SchedulingData.cs (28)
277
if (!_configurationToRequests.TryGetValue(request.
BuildRequest
.ConfigurationId, out requests))
280
_configurationToRequests[request.
BuildRequest
.ConfigurationId] = requests;
293
ErrorUtilities.VerifyThrow(_buildHierarchy.ContainsKey(parent), "Parent doesn't exist in build hierarchy for request {0}", request.
BuildRequest
.GlobalRequestId);
309
_blockedRequests.Remove(request.
BuildRequest
.GlobalRequestId);
313
_yieldingRequests.Remove(request.
BuildRequest
.GlobalRequestId);
321
_executingRequests.Remove(request.
BuildRequest
.GlobalRequestId);
326
_readyRequests.Remove(request.
BuildRequest
.GlobalRequestId);
345
ErrorUtilities.VerifyThrow(!requestsAssignedToNode.Contains(request), "Request {0} is already scheduled to node {1}", request.
BuildRequest
.GlobalRequestId, request.AssignedNode);
356
if (!configurationsAssignedToNode.Contains(request.
BuildRequest
.ConfigurationId))
358
configurationsAssignedToNode.Add(request.
BuildRequest
.ConfigurationId);
369
ErrorUtilities.VerifyThrow(!_blockedRequests.ContainsKey(request.
BuildRequest
.GlobalRequestId), "Request with global id {0} is already blocked!");
370
_blockedRequests[request.
BuildRequest
.GlobalRequestId] = request;
374
ErrorUtilities.VerifyThrow(!_yieldingRequests.ContainsKey(request.
BuildRequest
.GlobalRequestId), "Request with global id {0} is already yielded!");
375
_yieldingRequests[request.
BuildRequest
.GlobalRequestId] = request;
379
ErrorUtilities.VerifyThrow(_configurationToRequests.ContainsKey(request.
BuildRequest
.ConfigurationId), "Configuration {0} never had requests assigned to it.", request.
BuildRequest
.ConfigurationId);
380
ErrorUtilities.VerifyThrow(_configurationToRequests[request.
BuildRequest
.ConfigurationId].Count > 0, "Configuration {0} has no requests assigned to it.", request.
BuildRequest
.ConfigurationId);
381
_configurationToRequests[request.
BuildRequest
.ConfigurationId].Remove(request);
391
ErrorUtilities.VerifyThrow(!_executingRequests.ContainsKey(request.
BuildRequest
.GlobalRequestId), "Request with global id {0} is already executing!");
394
_executingRequests[request.
BuildRequest
.GlobalRequestId] = request;
396
_configurationToNode[request.
BuildRequest
.ConfigurationId] = request.AssignedNode;
405
ErrorUtilities.VerifyThrow(!_readyRequests.ContainsKey(request.
BuildRequest
.GlobalRequestId), "Request with global id {0} is already ready!");
406
_readyRequests[request.
BuildRequest
.GlobalRequestId] = request;
414
ErrorUtilities.VerifyThrow(!readyRequestsOnNode.Contains(request), "Request with global id {0} is already marked as ready on node {1}", request.
BuildRequest
.GlobalRequestId, request.AssignedNode);
419
ErrorUtilities.ThrowInternalError("Request with global id {0} cannot transition to the Unscheduled state", request.
BuildRequest
.GlobalRequestId);
562
return InternalGetScheduledRequestByGlobalRequestId(request.
BuildRequest
.GlobalRequestId) != null;
651
return CanScheduleConfigurationToNode(request.
BuildRequest
.ConfigurationId, nodeId);
BackEnd\Components\Scheduler\SchedulingPlan.cs (6)
211
return _configCache[rootRequest.
BuildRequest
.ConfigurationId].ProjectFullPath + ".buildplan";
430
if (request.
BuildRequest
.SubmissionId == submissionId)
444
file.Write(request.
BuildRequest
.ConfigurationId);
447
file.Write(" {0}", child.
BuildRequest
.ConfigurationId);
467
accumulatedTimeByConfiguration.TryGetValue(request.
BuildRequest
.ConfigurationId, out accumulatedTime);
468
accumulatedTimeByConfiguration[request.
BuildRequest
.ConfigurationId] = accumulatedTime + request.GetTimeSpentInState(SchedulableRequestState.Executing).TotalMilliseconds;