4 writes to GlobalRequestId
Microsoft.Build (4)
BackEnd\Components\Scheduler\Scheduler.cs (4)
1731newRequest.GlobalRequestId = _nextGlobalRequestId; 2331request.GlobalRequestId = _nextGlobalRequestId++; 2342request.GlobalRequestId = existingRequest.BuildRequest.GlobalRequestId; 2348request.GlobalRequestId = _nextGlobalRequestId++;
105 references to GlobalRequestId
Microsoft.Build (105)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (30)
276TraceEngine($"CFB: Shutting down request {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) failed due to exception: {e}"); 295TraceEngine($"CFB: Shutting down request {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) failed due to exception: {e}"); 310TraceEngine($"CFB: Request is now {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) has been deactivated."); 372TraceEngine($"Request {request.GlobalRequestId}({request.ConfigurationId}) (nr {request.NodeRequestId}) received and activated."); 374Assumed.False(_requestsByGlobalRequestId.ContainsKey(request.GlobalRequestId), $"Request {request.GlobalRequestId} is already known to the engine."); 375Assumed.True(_configCache.HasConfiguration(request.ConfigurationId), $"Request {request.GlobalRequestId} refers to configuration {request.ConfigurationId} which is not known to the engine."); 396TraceEngine($"Request {request.GlobalRequestId}({request.ConfigurationId}) (nr {request.NodeRequestId}) retrieved results for configuration {request.ConfigurationId} from node {_componentHost.BuildParameters.NodeId} for transfer."); 434_requestsByGlobalRequestId[request.GlobalRequestId] = entry; 464TraceEngine($"Request {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) is now proceeding from current state {entry.State}."); 485TraceEngine($"Request {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) has retrieved the results for configuration {entry.Request.ConfigurationId} and cached them on node {_componentHost.BuildParameters.NodeId} (UBR)."); 512TraceEngine($"Request {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) is no longer waiting on nr {result.NodeRequestId} (UBR). Results are {result.OverallResult}."); 613TraceEngine($"Request {request.GlobalRequestId} (node request {request.NodeRequestId}) with targets ({string.Join(";", request.Targets)}) satisfied from cache"); 625BuildRequestBlocker blocker = new BuildRequestBlocker(currentEntry.Request.GlobalRequestId, currentEntry.GetActiveTargets(), requestsToIssue.ToArray()); 707TraceEngine($"RRC: Reporting result for request {request.GlobalRequestId}({request.ConfigurationId}) (nr {request.NodeRequestId})."); 792TraceEngine($"ERS: Active request is now {currentEntry.Request.GlobalRequestId}({currentEntry.Request.ConfigurationId}) (nr {currentEntry.Request.NodeRequestId})."); 798TraceEngine($"ERS: Request {currentEntry.Request.GlobalRequestId}({currentEntry.Request.ConfigurationId}) (nr {currentEntry.Request.NodeRequestId}) is marked as complete."); 824TraceEngine($"ERS: Request {completedEntry.Request.GlobalRequestId}({completedEntry.Request.ConfigurationId}) (nr {completedEntry.Request.NodeRequestId}) is being removed from the requests list."); 826_requestsByGlobalRequestId.Remove(completedEntry.Request.GlobalRequestId); 878TraceEngine($"ERS: Request is now {completedEntry.Request.GlobalRequestId}({completedEntry.Request.ConfigurationId}) (nr {completedEntry.Request.NodeRequestId}) has had its builder cleaned up."); 1101if (unsubmittedRequest.BlockingGlobalRequestId == issuingEntry.Request.GlobalRequestId) 1106IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), YieldAction.Yield)); 1109issuingEntry.WaitForBlockingRequest(issuingEntry.Request.GlobalRequestId); 1115IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), YieldAction.Reacquire)); 1130issuingEntry.WaitForBlockingRequest(issuingEntry.Request.GlobalRequestId); 1133IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId)); 1144IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), unsubmittedRequest.BlockingGlobalRequestId, unsubmittedRequest.BlockingTarget, unsubmittedRequest.PartialBuildResult)); 1248TraceEngine($"Request {issuingEntry.Request.GlobalRequestId}({issuingEntry.Request.ConfigurationId}) (nr {issuingEntry.Request.NodeRequestId}) is waiting on configuration {request.Config.ConfigurationId} (IBR)"); 1283TraceEngine($"Request {newRequest.GlobalRequestId} (node request {newRequest.NodeRequestId}) with targets ({string.Join(",", request.Targets)}) satisfied from cache"); 1340BuildRequestBlocker blocker = new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), requestsToIssue.ToArray());
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (2)
395Assumed.Equal(State, BuildRequestEntryState.Waiting, $"Entry must be in the waiting state to be unblocked. Config: {RequestConfiguration.ConfigurationId} State: {State} Request: {Request.GlobalRequestId}"); 396Assumed.NotEqual(_blockingGlobalRequestId, BuildRequest.InvalidGlobalRequestId, $"Entry must be waiting on another request to be unblocked. Config: {RequestConfiguration.ConfigurationId} Request: {Request.GlobalRequestId}");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (5)
234Assumed.True(_blockType == BlockType.BlockedOnTargetInProgress || _blockType == BlockType.Yielded || (_continueResults != null), $"Unexpected null results for request {_requestEntry.Request.GlobalRequestId} (nr {_requestEntry.Request.NodeRequestId})"); 444RaiseOnBlockedRequest(_requestEntry.Request.GlobalRequestId, null); 453RaiseOnBlockedRequest(_requestEntry.Request.GlobalRequestId, String.Empty); 510RaiseResourceRequest(ResourceRequest.CreateAcquireRequest(_requestEntry.Request.GlobalRequestId, requestedCores, waitForCores)); 544RaiseResourceRequest(ResourceRequest.CreateReleaseRequest(_requestEntry.Request.GlobalRequestId, coresToRelease));
BackEnd\Components\RequestBuilder\TargetBuilder.cs (3)
485_requestEntry.RequestConfiguration.ActivelyBuildingTargets[currentTargetEntry.Name] = _requestEntry.Request.GlobalRequestId; 691if (idOfAlreadyBuildingRequest != _requestEntry.Request.GlobalRequestId) 775if (idOfAlreadyBuildingRequest != _requestEntry.Request.GlobalRequestId)
BackEnd\Components\Scheduler\SchedulableRequest.cs (11)
403Assumed.True((_state == SchedulableRequestState.Ready) || !_schedulingData.IsRequestScheduled(this), $"Another instance of request {_request.GlobalRequestId} is already scheduled."); 404Assumed.False(_schedulingData.IsNodeWorking(nodeId), $"Cannot resume execution of request {_request.GlobalRequestId} because node {nodeId} is already working."); 407Assumed.True(requiredNodeId == Scheduler.InvalidNodeId || requiredNodeId == nodeId, $"Request {_request.GlobalRequestId} cannot be assigned to node {nodeId} because its configuration is already assigned to node {requiredNodeId}"); 448Assumed.Equal(_state, requiredState, $"Request {_request.GlobalRequestId} expected to be in state {requiredState} but state is actually {_state}"); 518SchedulableRequest alternateRequest = _schedulingData.GetBlockedRequestIfAny(blockingRequest.BuildRequest.GlobalRequestId); 533if (requestToEvaluate.BuildRequest.GlobalRequestId == this.BuildRequest.GlobalRequestId) 544requestToEvaluate = _schedulingData.GetBlockedRequestIfAny(requestToEvaluate.BuildRequest.GlobalRequestId); 594if (currentRequest.BuildRequest.GlobalRequestId == blockingRequest.BuildRequest.GlobalRequestId) 679_globalRequestId = request.GlobalRequestId;
BackEnd\Components\Scheduler\Scheduler.cs (27)
394TraceScheduler($"Circular dependency caused by request {ex.Request.GlobalRequestId}({ex.Request.ConfigurationId}) (nr {ex.Request.NodeRequestId}), parent {parentRequest.BuildRequest.GlobalRequestId}({parentRequest.BuildRequest.ConfigurationId}) (nr {parentRequest.BuildRequest.NodeRequestId})"); 407TraceScheduler($"Circular dependency caused by request {ex.Request.GlobalRequestId}({ex.Request.ConfigurationId}) (nr {ex.Request.NodeRequestId}), parent {parentRequest.BuildRequest.GlobalRequestId}({parentRequest.BuildRequest.ConfigurationId}) (nr {parentRequest.BuildRequest.NodeRequestId})"); 446Assumed.Equal(result.ParentGlobalRequestId, request.Parent.BuildRequest.GlobalRequestId, "Result's parent doesn't match request's parent."); 483if (unscheduledRequest.BuildRequest.GlobalRequestId == result.GlobalRequestId) 485TraceScheduler($"Request {unscheduledRequest.BuildRequest.GlobalRequestId} (node request {unscheduledRequest.BuildRequest.NodeRequestId}) also satisfied by result."); 1409TraceScheduler($"Chose not to assign request {request.BuildRequest.GlobalRequestId} to node {nodeId} because its count of configurations ({configurationCountsByNode[nodeId]}) exceeds the current limit ({configurationCountLimit})."); 1444TraceScheduler($"Executing request {request.BuildRequest.GlobalRequestId} on node {nodeId} with parent {(request.Parent == null ? -1 : request.Parent.BuildRequest.GlobalRequestId)}"); 1743TraceScheduler($"Created request {newRequest.GlobalRequestId} (node request {newRequest.NodeRequestId}) for transfer of configuration {configuration.ConfigurationId}'s results from node {configuration.ResultsNodeId} to node {parentRequest.AssignedNode}"); 1764if (request.GlobalRequestId == BuildRequest.InvalidGlobalRequestId) 1770TraceScheduler($"Received request {request.GlobalRequestId} (node request {request.NodeRequestId}) with parent {request.ParentGlobalRequestId} from node {nodeForResults} for project {_configCache![request.ConfigurationId].ProjectFullPath} with targets {(request.Targets.Count == 0 ? "default" : string.Join(";", request.Targets))}"); 1778TraceScheduler($"Request {request.GlobalRequestId} (node request {request.NodeRequestId}) satisfied from the cache."); 1872responses.Add(ScheduleResponse.CreateResumeExecutionResponse(parentRequest.AssignedNode, parentRequest.BuildRequest.GlobalRequestId)); 1897TraceScheduler($"Unblocking request {request.BuildRequest.GlobalRequestId} on node {nodeId}"); 1900ScheduleResponse response = ScheduleResponse.CreateResumeExecutionResponse(nodeId, request.BuildRequest.GlobalRequestId); 1937TraceScheduler($"Reporting results for request {request.BuildRequest.GlobalRequestId} with parent {request.BuildRequest.ParentGlobalRequestId} to node {response.NodeId} from cache."); 2102if (blockedRequest.BuildRequest.GlobalRequestId == request.ParentGlobalRequestId) 2113if (executingRequest.BuildRequest.GlobalRequestId == request.ParentGlobalRequestId) 2213TraceScheduler($"Request {request.GlobalRequestId} (node request {request.NodeRequestId}) with targets ({string.Join(";", request.Targets)}) satisfied from cache"); 2328if (request.GlobalRequestId != BuildRequest.InvalidGlobalRequestId 2342request.GlobalRequestId = existingRequest.BuildRequest.GlobalRequestId; 2445int workId = useConfigurations ? buildEvent.Request.BuildRequest.ConfigurationId : buildEvent.Request.BuildRequest.GlobalRequestId; 2641useConfigurations ? request.BuildRequest.ConfigurationId : request.BuildRequest.GlobalRequestId, 2777.BuildRequest.GlobalRequestId) 2978buildRequest.GlobalRequestId,
BackEnd\Components\Scheduler\ScheduleResponse.cs (3)
241return $"Act: {Action} Node: {NodeId} Request: {BuildRequest.GlobalRequestId} Parent {BuildRequest.ParentGlobalRequestId}"; 244return $"Act: {Action} Node: {NodeId} Request: {BuildRequest.GlobalRequestId} Parent {BuildRequest.ParentGlobalRequestId} Configuration: {BuildRequest.ConfigurationId}"; 247return $"Act: {Action} Node: {NodeId} Request: {BuildRequest.GlobalRequestId} Parent {BuildRequest.ParentGlobalRequestId} Configuration: {BuildRequest.ConfigurationId}";
BackEnd\Components\Scheduler\SchedulingData.cs (21)
280Assumed.True(_buildHierarchy.ContainsKey(parent), $"Parent doesn't exist in build hierarchy for request {request.BuildRequest.GlobalRequestId}"); 296_blockedRequests.Remove(request.BuildRequest.GlobalRequestId); 300_yieldingRequests.Remove(request.BuildRequest.GlobalRequestId); 308_executingRequests.Remove(request.BuildRequest.GlobalRequestId); 313_readyRequests.Remove(request.BuildRequest.GlobalRequestId); 332Assumed.False(requestsAssignedToNode.Contains(request), $"Request {request.BuildRequest.GlobalRequestId} is already scheduled to node {request.AssignedNode}"); 356Assumed.False(_blockedRequests.ContainsKey(request.BuildRequest.GlobalRequestId), $"Request with global id {request.BuildRequest.GlobalRequestId} is already blocked!"); 357_blockedRequests[request.BuildRequest.GlobalRequestId] = request; 361Assumed.False(_yieldingRequests.ContainsKey(request.BuildRequest.GlobalRequestId), $"Request with global id {request.BuildRequest.GlobalRequestId} is already yielded!"); 362_yieldingRequests[request.BuildRequest.GlobalRequestId] = request; 378Assumed.False(_executingRequests.ContainsKey(request.BuildRequest.GlobalRequestId), $"Request with global id {request.BuildRequest.GlobalRequestId} is already executing!"); 381_executingRequests[request.BuildRequest.GlobalRequestId] = request; 392Assumed.False(_readyRequests.ContainsKey(request.BuildRequest.GlobalRequestId), $"Request with global id {request.BuildRequest.GlobalRequestId} is already ready!"); 393_readyRequests[request.BuildRequest.GlobalRequestId] = request; 401Assumed.False(readyRequestsOnNode.Contains(request), $"Request with global id {request.BuildRequest.GlobalRequestId} is already marked as ready on node {request.AssignedNode}"); 406Assumed.Unreachable($"Request with global id {request.BuildRequest.GlobalRequestId} cannot transition to the Unscheduled state"); 549return InternalGetScheduledRequestByGlobalRequestId(request.BuildRequest.GlobalRequestId) != null;
BackEnd\Shared\BuildRequest.cs (1)
201_parentGlobalRequestId = parentRequest?.GlobalRequestId ?? InvalidGlobalRequestId;
BackEnd\Shared\BuildRequestUnblocker.cs (1)
67_blockedGlobalRequestId = parentRequest.GlobalRequestId;
BackEnd\Shared\BuildResult.cs (1)
237_globalRequestId = request.GlobalRequestId;