119 references to ConfigurationId
Microsoft.Build (110)
BackEnd\BuildManager\BuildManager.cs (5)
2337BuildRequestConfiguration config = _configCache![request.ConfigurationId]; 2439&& buildSubmission.BuildRequest.ConfigurationId == configuration.ConfigurationId 2594BuildResult? result = submission.BuildRequest == null ? null : _resultsCache?.GetResultsForConfiguration(submission.BuildRequest.ConfigurationId); 2665!configurationsOnNode.Contains(response.BuildRequest.ConfigurationId)) 2668_nodeManager!.SendData(response.NodeId, configCache[response.BuildRequest.ConfigurationId]);
BackEnd\BuildManager\BuildSubmission.cs (2)
228if (result.ConfigurationId != BuildRequest?.ConfigurationId) 231result.ConfigurationId, BuildRequest?.ConfigurationId);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (24)
240TraceEngine("CFB: Shutting down request {0}({1}) (nr {2}) failed due to exception: {3}", entry.Request.GlobalRequestId, entry.Request.ConfigurationId, entry.Request.NodeRequestId, e.ToString()); 259TraceEngine("CFB: Shutting down request {0}({1}) (nr {2}) failed due to exception: {3}", entry.Request.GlobalRequestId, entry.Request.ConfigurationId, entry.Request.NodeRequestId, e.ToString()); 274TraceEngine("CFB: Request is now {0}({1}) (nr {2}) has been deactivated.", entry.Request.GlobalRequestId, entry.Request.ConfigurationId, entry.Request.NodeRequestId); 331TraceEngine("Request {0}({1}) (nr {2}) received and activated.", request.GlobalRequestId, request.ConfigurationId, request.NodeRequestId); 334ErrorUtilities.VerifyThrow(_configCache.HasConfiguration(request.ConfigurationId), "Request {0} refers to configuration {1} which is not known to the engine.", request.GlobalRequestId, request.ConfigurationId); 340BuildResult result = cache.GetResultsForConfiguration(request.ConfigurationId); 342BuildRequestConfiguration config = ((IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache))[request.ConfigurationId]; 355TraceEngine("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); 373BuildRequestEntry entry = new BuildRequestEntry(request, _configCache[request.ConfigurationId]); 408TraceEngine("Request {0}({1}) (nr {2}) is now proceeding from current state {3}.", entry.Request.GlobalRequestId, entry.Request.ConfigurationId, entry.Request.NodeRequestId, entry.State); 429TraceEngine("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); 453TraceEngine("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); 651TraceEngine("RRC: Reporting result for request {0}({1}) (nr {2}).", request.GlobalRequestId, request.ConfigurationId, request.NodeRequestId); 736TraceEngine("ERS: Active request is now {0}({1}) (nr {2}).", currentEntry.Request.GlobalRequestId, currentEntry.Request.ConfigurationId, currentEntry.Request.NodeRequestId); 742TraceEngine("ERS: Request {0}({1}) (nr {2}) is marked as complete.", currentEntry.Request.GlobalRequestId, currentEntry.Request.ConfigurationId, currentEntry.Request.NodeRequestId); 768TraceEngine("ERS: Request {0}({1}) (nr {2}) is being removed from the requests list.", completedEntry.Request.GlobalRequestId, completedEntry.Request.ConfigurationId, completedEntry.Request.NodeRequestId); 810BuildRequestConfiguration configuration = _configCache[completedEntry.Request.ConfigurationId]; 822TraceEngine("ERS: Request is now {0}({1}) (nr {2}) has had its builder cleaned up.", completedEntry.Request.GlobalRequestId, completedEntry.Request.ConfigurationId, completedEntry.Request.NodeRequestId); 1190issuingEntry.Request.ConfigurationId, 1225_nodeLoggingContext.LogRequestHandledFromCache(newRequest, _configCache[newRequest.ConfigurationId], response.Results); 1356TraceEngine("Sending node request {0} (configuration {1}) with parent {2} to Build Manager", blockingRequest.NodeRequestId, blockingRequest.ConfigurationId, blocker.BlockedRequestId);
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (4)
127ErrorUtilities.VerifyThrow(requestConfiguration.ConfigurationId == request.ConfigurationId, "Configuration id mismatch"); 514if (!_unresolvedConfigurations.ContainsKey(newRequest.ConfigurationId)) 516_unresolvedConfigurations.Add(newRequest.ConfigurationId, new List<BuildRequest>()); 519_unresolvedConfigurations[newRequest.ConfigurationId].Add(newRequest);
BackEnd\Components\Caching\ResultsCache.cs (2)
119if (_resultsByConfiguration.TryGetValue(request.ConfigurationId, out BuildResult result)) 173if (_resultsByConfiguration.TryGetValue(request.ConfigurationId, out BuildResult allResults))
BackEnd\Components\Logging\ProjectLoggingContext.cs (3)
37requestEntry.Request.ConfigurationId, 62request.ConfigurationId, 84requestEntry.Request.ConfigurationId,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
320BuildRequestConfiguration configuration = _configCache[buildRequest.ConfigurationId];
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1235var cachedResult = resultsCache.GetResultsForConfiguration(_requestEntry.Request.ConfigurationId);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
134BuildResult existingBuildResult = resultsCache.GetResultsForConfiguration(_requestEntry.Request.ConfigurationId);
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
407int requiredNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(_request.ConfigurationId);
BackEnd\Components\Scheduler\Scheduler.cs (46)
349TraceScheduler("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); 362TraceScheduler("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); 946SchedulingPlan.PlanConfigData configToConsider = _schedulingPlan.GetConfiguration(request.BuildRequest.ConfigurationId); 1013return _configCache[request.ConfigurationId].IsTraversal; 1072int requiredNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(unscheduledRequest.BuildRequest.ConfigurationId); 1076System.IO.FileInfo f = new FileInfo(_configCache[unscheduledRequest.BuildRequest.ConfigurationId].ProjectFullPath); 1114int requiredNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(unscheduledRequest.BuildRequest.ConfigurationId); 1118System.IO.FileInfo f = new FileInfo(_configCache[unscheduledRequest.BuildRequest.ConfigurationId].ProjectFullPath); 1157int requiredNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(currentRequest.ConfigurationId); 1330int requiredNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(request.BuildRequest.ConfigurationId); 1342TraceScheduler("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); 1364bool mustSendConfigurationToNode = _availableNodes[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId); 1368BuildRequestConfiguration config = _configCache[request.BuildRequest.ConfigurationId]; 1486int assignedNodeForConfiguration = _schedulingData.GetAssignedNodeForRequestConfiguration(request.BuildRequest.ConfigurationId); 1635blockingRequest.BuildRequest.ConfigurationId == blockedRequest.BuildRequest.ConfigurationId && 1654BuildRequest newRequest = new BuildRequest(parentRequest.BuildRequest.SubmissionId, BuildRequest.ResultsTransferNodeRequestId, parentRequest.BuildRequest.ConfigurationId, [], null, parentRequest.BuildRequest.BuildEventContext, parentRequest.BuildRequest, parentRequest.BuildRequest.BuildRequestDataFlags); 1666BuildRequestConfiguration configuration = _configCache[parentRequest.BuildRequest.ConfigurationId]; 1728int assignedNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(request.ConfigurationId); 1734if (_schedulingData.GetRequestsAssignedToConfigurationCount(request.ConfigurationId) == 0) 1737_schedulingData.UnassignNodeForRequestConfiguration(request.ConfigurationId); 1746else if (_schedulingData.GetRequestsAssignedToConfigurationCount(request.ConfigurationId) > 0) 1749foreach (SchedulableRequest existingRequest in _schedulingData.GetRequestsAssignedToConfiguration(request.ConfigurationId)) 1764_configCache.HasConfiguration(request.ConfigurationId), 1767var config = _configCache[request.ConfigurationId]; 1949BuildRequestConfiguration config = _configCache[request.ConfigurationId]; 2030BuildRequestConfiguration buildRequestConfiguration = configCache[request.ConfigurationId]; 2038configCache.HasConfiguration(parentRequest.BuildRequest.ConfigurationId), 2041BuildRequestConfiguration parentConfiguration = configCache[parentRequest.BuildRequest.ConfigurationId]; 2058BuildResult requestResults = _resultsCache.GetResultsForConfiguration(buildRequest.ConfigurationId); 2070if (_configCache[buildRequest.ConfigurationId] 2129BuildRequestConfiguration configuration = _configCache[request.ConfigurationId]; 2130int nodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(request.ConfigurationId); 2177ErrorUtilities.VerifyThrow(request.ConfigurationId != BuildRequestConfiguration.InvalidConfigurationId, "Requests should have a valid configuration id at this point"); 2181if (_schedulingData.CanScheduleConfigurationToNode(request.ConfigurationId, InProcNodeId) && request.IsProxyBuildRequest()) 2186BuildRequestConfiguration configuration = _configCache[request.ConfigurationId]; 2258if (request.GlobalRequestId == BuildRequest.InvalidGlobalRequestId && _schedulingData.GetRequestsAssignedToConfigurationCount(request.ConfigurationId) > 0) 2260foreach (SchedulableRequest existingRequest in _schedulingData.GetRequestsAssignedToConfiguration(request.ConfigurationId)) 2334int workId = useConfigurations ? buildEvent.Request.BuildRequest.ConfigurationId : buildEvent.Request.BuildRequest.GlobalRequestId; 2530useConfigurations ? request.BuildRequest.ConfigurationId : request.BuildRequest.GlobalRequestId, 2534_configCache[request.BuildRequest.ConfigurationId].ProjectFullPath, 2813_schedulingData.GetAssignedNodeForRequestConfiguration(buildRequest.ConfigurationId), 2818buildRequest.ConfigurationId, 2819_configCache[buildRequest.ConfigurationId].ProjectFullPath,
BackEnd\Components\Scheduler\ScheduleResponse.cs (2)
246return String.Format(CultureInfo.CurrentCulture, "Act: {0} Node: {1} Request: {2} Parent {3} Configuration: {4}", Action, NodeId, BuildRequest.GlobalRequestId, BuildRequest.ParentGlobalRequestId, BuildRequest.ConfigurationId); 249return 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 (11)
277if (!_configurationToRequests.TryGetValue(request.BuildRequest.ConfigurationId, out requests)) 280_configurationToRequests[request.BuildRequest.ConfigurationId] = requests; 356if (!configurationsAssignedToNode.Contains(request.BuildRequest.ConfigurationId)) 358configurationsAssignedToNode.Add(request.BuildRequest.ConfigurationId); 379ErrorUtilities.VerifyThrow(_configurationToRequests.ContainsKey(request.BuildRequest.ConfigurationId), "Configuration {0} never had requests assigned to it.", request.BuildRequest.ConfigurationId); 380ErrorUtilities.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); 396_configurationToNode[request.BuildRequest.ConfigurationId] = request.AssignedNode; 651return CanScheduleConfigurationToNode(request.BuildRequest.ConfigurationId, nodeId);
BackEnd\Components\Scheduler\SchedulingPlan.cs (5)
211return _configCache[rootRequest.BuildRequest.ConfigurationId].ProjectFullPath + ".buildplan"; 444file.Write(request.BuildRequest.ConfigurationId); 447file.Write(" {0}", child.BuildRequest.ConfigurationId); 467accumulatedTimeByConfiguration.TryGetValue(request.BuildRequest.ConfigurationId, out accumulatedTime); 468accumulatedTimeByConfiguration[request.BuildRequest.ConfigurationId] = accumulatedTime + request.GetTimeSpentInState(SchedulableRequestState.Executing).TotalMilliseconds;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
767ErrorUtilities.VerifyThrow(request.ConfigurationId == ConfigurationId, "Request does not match configuration.");
BackEnd\Shared\BuildResult.cs (1)
229_configurationId = request.ConfigurationId;
Microsoft.Build.Engine.UnitTests (9)
BackEnd\BuildRequest_Tests.cs (6)
45Assert.Equal(0, request.ConfigurationId); 48Assert.Equal(1, request2.ConfigurationId); 51Assert.Equal(-1, request3.ConfigurationId); 93Assert.Equal(1, request.ConfigurationId); 128Assert.Equal(request.ConfigurationId, deserializedRequest.ConfigurationId);
BackEnd\BuildRequestEngine_Tests.cs (3)
418Assert.Equal(1, _newRequest_Request.BuildRequests[0].ConfigurationId); 484Assert.Equal(2, _newRequest_Request.BuildRequests[0].ConfigurationId); 485Assert.Equal(2, _newRequest_Request.BuildRequests[0].ConfigurationId);