4 writes to GlobalRequestId
Microsoft.Build (3)
BackEnd\Components\Scheduler\Scheduler.cs (3)
1657
newRequest.
GlobalRequestId
= _nextGlobalRequestId;
2280
request.
GlobalRequestId
= existingRequest.BuildRequest.GlobalRequestId;
2287
request.
GlobalRequestId
= _nextGlobalRequestId;
Microsoft.Build.Engine.UnitTests (1)
BackEnd\BuildRequestEngine_Tests.cs (1)
514
request.
GlobalRequestId
= _globalRequestId++;
105 references to GlobalRequestId
Microsoft.Build (101)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (30)
240
TraceEngine("CFB: Shutting down request {0}({1}) (nr {2}) failed due to exception: {3}", entry.Request.
GlobalRequestId
, entry.Request.ConfigurationId, entry.Request.NodeRequestId, e.ToString());
259
TraceEngine("CFB: Shutting down request {0}({1}) (nr {2}) failed due to exception: {3}", entry.Request.
GlobalRequestId
, entry.Request.ConfigurationId, entry.Request.NodeRequestId, e.ToString());
274
TraceEngine("CFB: Request is now {0}({1}) (nr {2}) has been deactivated.", entry.Request.
GlobalRequestId
, entry.Request.ConfigurationId, entry.Request.NodeRequestId);
331
TraceEngine("Request {0}({1}) (nr {2}) received and activated.", request.
GlobalRequestId
, request.ConfigurationId, request.NodeRequestId);
333
ErrorUtilities.VerifyThrow(!_requestsByGlobalRequestId.ContainsKey(request.
GlobalRequestId
), "Request {0} is already known to the engine.", request.
GlobalRequestId
);
334
ErrorUtilities.VerifyThrow(_configCache.HasConfiguration(request.ConfigurationId), "Request {0} refers to configuration {1} which is not known to the engine.", request.
GlobalRequestId
, request.ConfigurationId);
355
TraceEngine("Request {0}({1}) (nr {2}) retrieved results for configuration {3} from node {4} for transfer.", request.
GlobalRequestId
, request.ConfigurationId, request.NodeRequestId, request.ConfigurationId, _componentHost.BuildParameters.NodeId);
378
_requestsByGlobalRequestId[request.
GlobalRequestId
] = entry;
408
TraceEngine("Request {0}({1}) (nr {2}) is now proceeding from current state {3}.", entry.Request.
GlobalRequestId
, entry.Request.ConfigurationId, entry.Request.NodeRequestId, entry.State);
429
TraceEngine("Request {0}({1}) (nr {2}) has retrieved the results for configuration {3} and cached them on node {4} (UBR).", entry.Request.
GlobalRequestId
, entry.Request.ConfigurationId, entry.Request.NodeRequestId, entry.Request.ConfigurationId, _componentHost.BuildParameters.NodeId);
453
TraceEngine("Request {0}({1}) (nr {2}) is no longer waiting on nr {3} (UBR). Results are {4}.", entry.Request.
GlobalRequestId
, entry.Request.ConfigurationId, entry.Request.NodeRequestId, result.NodeRequestId, result.OverallResult);
554
request.
GlobalRequestId
,
568
BuildRequestBlocker blocker = new BuildRequestBlocker(currentEntry.Request.
GlobalRequestId
, currentEntry.GetActiveTargets(), requestsToIssue.ToArray());
651
TraceEngine("RRC: Reporting result for request {0}({1}) (nr {2}).", request.
GlobalRequestId
, request.ConfigurationId, request.NodeRequestId);
736
TraceEngine("ERS: Active request is now {0}({1}) (nr {2}).", currentEntry.Request.
GlobalRequestId
, currentEntry.Request.ConfigurationId, currentEntry.Request.NodeRequestId);
742
TraceEngine("ERS: Request {0}({1}) (nr {2}) is marked as complete.", currentEntry.Request.
GlobalRequestId
, currentEntry.Request.ConfigurationId, currentEntry.Request.NodeRequestId);
768
TraceEngine("ERS: Request {0}({1}) (nr {2}) is being removed from the requests list.", completedEntry.Request.
GlobalRequestId
, completedEntry.Request.ConfigurationId, completedEntry.Request.NodeRequestId);
770
_requestsByGlobalRequestId.Remove(completedEntry.Request.
GlobalRequestId
);
822
TraceEngine("ERS: Request is now {0}({1}) (nr {2}) has had its builder cleaned up.", completedEntry.Request.
GlobalRequestId
, completedEntry.Request.ConfigurationId, completedEntry.Request.NodeRequestId);
1042
if (unsubmittedRequest.BlockingGlobalRequestId == issuingEntry.Request.
GlobalRequestId
)
1047
IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.
GlobalRequestId
, issuingEntry.GetActiveTargets(), YieldAction.Yield));
1050
issuingEntry.WaitForBlockingRequest(issuingEntry.Request.
GlobalRequestId
);
1056
IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.
GlobalRequestId
, issuingEntry.GetActiveTargets(), YieldAction.Reacquire));
1071
issuingEntry.WaitForBlockingRequest(issuingEntry.Request.
GlobalRequestId
);
1074
IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.
GlobalRequestId
));
1085
IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.
GlobalRequestId
, issuingEntry.GetActiveTargets(), unsubmittedRequest.BlockingGlobalRequestId, unsubmittedRequest.BlockingTarget, unsubmittedRequest.PartialBuildResult));
1189
issuingEntry.Request.
GlobalRequestId
,
1229
newRequest.
GlobalRequestId
,
1273
BuildRequestBlocker blocker = new BuildRequestBlocker(issuingEntry.Request.
GlobalRequestId
, issuingEntry.GetActiveTargets(), requestsToIssue.ToArray());
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (2)
385
ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Waiting, "Entry must be in the waiting state to be unblocked. Config: {0} State: {1} Request: {2}", RequestConfiguration.ConfigurationId, State, Request.
GlobalRequestId
);
386
ErrorUtilities.VerifyThrow(_blockingGlobalRequestId != BuildRequest.InvalidGlobalRequestId, "Entry must be waiting on another request to be unblocked. Config: {0} Request: {1}", RequestConfiguration.ConfigurationId, Request.
GlobalRequestId
);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (5)
231
ErrorUtilities.VerifyThrow(_blockType == BlockType.BlockedOnTargetInProgress || _blockType == BlockType.Yielded || (_continueResults != null), "Unexpected null results for request {0} (nr {1})", _requestEntry.Request.
GlobalRequestId
, _requestEntry.Request.NodeRequestId);
440
RaiseOnBlockedRequest(_requestEntry.Request.
GlobalRequestId
, null);
449
RaiseOnBlockedRequest(_requestEntry.Request.
GlobalRequestId
, String.Empty);
506
RaiseResourceRequest(ResourceRequest.CreateAcquireRequest(_requestEntry.Request.
GlobalRequestId
, requestedCores, waitForCores));
540
RaiseResourceRequest(ResourceRequest.CreateReleaseRequest(_requestEntry.Request.
GlobalRequestId
, coresToRelease));
BackEnd\Components\RequestBuilder\TargetBuilder.cs (3)
482
_requestEntry.RequestConfiguration.ActivelyBuildingTargets[currentTargetEntry.Name] = _requestEntry.Request.
GlobalRequestId
;
683
if (idOfAlreadyBuildingRequest != _requestEntry.Request.
GlobalRequestId
)
767
if (idOfAlreadyBuildingRequest != _requestEntry.Request.
GlobalRequestId
)
BackEnd\Components\Scheduler\SchedulableRequest.cs (11)
404
ErrorUtilities.VerifyThrow((_state == SchedulableRequestState.Ready) || !_schedulingData.IsRequestScheduled(this), "Another instance of request {0} is already scheduled.", _request.
GlobalRequestId
);
405
ErrorUtilities.VerifyThrow(!_schedulingData.IsNodeWorking(nodeId), "Cannot resume execution of request {0} because node {1} is already working.", _request.
GlobalRequestId
, nodeId);
408
ErrorUtilities.VerifyThrow(requiredNodeId == Scheduler.InvalidNodeId || requiredNodeId == nodeId, "Request {0} cannot be assigned to node {1} because its configuration is already assigned to node {2}", _request.
GlobalRequestId
, nodeId, requiredNodeId);
449
ErrorUtilities.VerifyThrow(_state == requiredState, "Request {0} expected to be in state {1} but state is actually {2}", _request.
GlobalRequestId
, requiredState, _state);
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
)
680
_globalRequestId = request.
GlobalRequestId
;
BackEnd\Components\Scheduler\Scheduler.cs (27)
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);
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);
401
ErrorUtilities.VerifyThrow(result.ParentGlobalRequestId == request.Parent.BuildRequest.
GlobalRequestId
, "Result's parent doesn't match request's parent.");
437
if (unscheduledRequest.BuildRequest.
GlobalRequestId
== result.GlobalRequestId)
439
TraceScheduler("Request {0} (node request {1}) also satisfied by result.", unscheduledRequest.BuildRequest.
GlobalRequestId
, unscheduledRequest.BuildRequest.NodeRequestId);
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);
1377
TraceScheduler("Executing request {0} on node {1} with parent {2}", request.BuildRequest.
GlobalRequestId
, nodeId, (request.Parent == null) ? -1 : request.Parent.BuildRequest.
GlobalRequestId
);
1669
TraceScheduler("Created request {0} (node request {1}) for transfer of configuration {2}'s results from node {3} to node {4}", newRequest.
GlobalRequestId
, newRequest.NodeRequestId, configuration.ConfigurationId, configuration.ResultsNodeId, parentRequest.AssignedNode);
1690
if (request.
GlobalRequestId
== BuildRequest.InvalidGlobalRequestId)
1696
TraceScheduler("Received request {0} (node request {1}) with parent {2} from node {3}", request.
GlobalRequestId
, request.NodeRequestId, request.ParentGlobalRequestId, nodeForResults);
1704
TraceScheduler("Request {0} (node request {1}) satisfied from the cache.", request.
GlobalRequestId
, request.NodeRequestId);
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
);
1867
TraceScheduler("Reporting results for request {0} with parent {1} to node {2} from cache.", request.BuildRequest.
GlobalRequestId
, request.BuildRequest.ParentGlobalRequestId, response.NodeId);
2033
SchedulableRequest parentRequest = _schedulingData.BlockedRequests.FirstOrDefault(r => r.BuildRequest.
GlobalRequestId
== request.ParentGlobalRequestId)
2034
?? _schedulingData.ExecutingRequests.FirstOrDefault(r => r.BuildRequest.
GlobalRequestId
== request.ParentGlobalRequestId);
2136
request.
GlobalRequestId
,
2258
if (request.
GlobalRequestId
== BuildRequest.InvalidGlobalRequestId && _schedulingData.GetRequestsAssignedToConfigurationCount(request.ConfigurationId) > 0)
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
,
2611
.BuildRequest.
GlobalRequestId
)
2812
buildRequest.
GlobalRequestId
,
BackEnd\Components\Scheduler\ScheduleResponse.cs (3)
243
return String.Format(CultureInfo.CurrentCulture, "Act: {0} Node: {1} Request: {2} Parent {3}", Action, NodeId, BuildRequest.
GlobalRequestId
, BuildRequest.ParentGlobalRequestId);
246
return String.Format(CultureInfo.CurrentCulture, "Act: {0} Node: {1} Request: {2} Parent {3} Configuration: {4}", Action, NodeId, BuildRequest.
GlobalRequestId
, BuildRequest.ParentGlobalRequestId, BuildRequest.ConfigurationId);
249
return String.Format(CultureInfo.CurrentCulture, "Act: {0} Node: {1} Request: {2} Parent {3} Configuration: {4}", Action, NodeId, BuildRequest.
GlobalRequestId
, BuildRequest.ParentGlobalRequestId, BuildRequest.ConfigurationId);
BackEnd\Components\Scheduler\SchedulingData.cs (17)
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);
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;
391
ErrorUtilities.VerifyThrow(!_executingRequests.ContainsKey(request.BuildRequest.
GlobalRequestId
), "Request with global id {0} is already executing!");
394
_executingRequests[request.BuildRequest.
GlobalRequestId
] = request;
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;
BackEnd\Shared\BuildRequest.cs (1)
198
_parentGlobalRequestId = parentRequest?.
GlobalRequestId
?? InvalidGlobalRequestId;
BackEnd\Shared\BuildRequestUnblocker.cs (1)
67
_blockedGlobalRequestId = parentRequest.
GlobalRequestId
;
BackEnd\Shared\BuildResult.cs (1)
230
_globalRequestId = request.
GlobalRequestId
;
Microsoft.Build.Engine.UnitTests (4)
BackEnd\BuildRequest_Tests.cs (2)
129
Assert.Equal(request.
GlobalRequestId
, deserializedRequest.
GlobalRequestId
);
BackEnd\BuildRequestEngine_Tests.cs (2)
430
_engine.UnblockBuildRequest(new BuildRequestUnblocker(request.
GlobalRequestId
));
495
_engine.UnblockBuildRequest(new BuildRequestUnblocker(request.
GlobalRequestId
));