119 references to ConfigurationId
Microsoft.Build (110)
BackEnd\BuildManager\BuildManager.cs (5)
2337
BuildRequestConfiguration config = _configCache![request.
ConfigurationId
];
2439
&& buildSubmission.BuildRequest.
ConfigurationId
== configuration.ConfigurationId
2594
BuildResult? 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)
228
if (result.ConfigurationId != BuildRequest?.
ConfigurationId
)
231
result.ConfigurationId, BuildRequest?.
ConfigurationId
);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (24)
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);
334
ErrorUtilities.VerifyThrow(_configCache.HasConfiguration(request.
ConfigurationId
), "Request {0} refers to configuration {1} which is not known to the engine.", request.GlobalRequestId, request.
ConfigurationId
);
340
BuildResult result = cache.GetResultsForConfiguration(request.
ConfigurationId
);
342
BuildRequestConfiguration config = ((IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache))[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);
373
BuildRequestEntry entry = new BuildRequestEntry(request, _configCache[request.
ConfigurationId
]);
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);
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);
810
BuildRequestConfiguration configuration = _configCache[completedEntry.Request.
ConfigurationId
];
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);
1190
issuingEntry.Request.
ConfigurationId
,
1225
_nodeLoggingContext.LogRequestHandledFromCache(newRequest, _configCache[newRequest.
ConfigurationId
], response.Results);
1356
TraceEngine("Sending node request {0} (configuration {1}) with parent {2} to Build Manager", blockingRequest.NodeRequestId, blockingRequest.
ConfigurationId
, blocker.BlockedRequestId);
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (4)
127
ErrorUtilities.VerifyThrow(requestConfiguration.ConfigurationId == request.
ConfigurationId
, "Configuration id mismatch");
514
if (!_unresolvedConfigurations.ContainsKey(newRequest.
ConfigurationId
))
516
_unresolvedConfigurations.Add(newRequest.
ConfigurationId
, new List<BuildRequest>());
519
_unresolvedConfigurations[newRequest.
ConfigurationId
].Add(newRequest);
BackEnd\Components\Caching\ResultsCache.cs (2)
119
if (_resultsByConfiguration.TryGetValue(request.
ConfigurationId
, out BuildResult result))
173
if (_resultsByConfiguration.TryGetValue(request.
ConfigurationId
, out BuildResult allResults))
BackEnd\Components\Logging\ProjectLoggingContext.cs (3)
37
requestEntry.Request.
ConfigurationId
,
62
request.
ConfigurationId
,
84
requestEntry.Request.
ConfigurationId
,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
320
BuildRequestConfiguration configuration = _configCache[buildRequest.
ConfigurationId
];
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1235
var cachedResult = resultsCache.GetResultsForConfiguration(_requestEntry.Request.
ConfigurationId
);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
134
BuildResult existingBuildResult = resultsCache.GetResultsForConfiguration(_requestEntry.Request.
ConfigurationId
);
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
407
int requiredNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(_request.
ConfigurationId
);
BackEnd\Components\Scheduler\Scheduler.cs (46)
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);
946
SchedulingPlan.PlanConfigData configToConsider = _schedulingPlan.GetConfiguration(request.BuildRequest.
ConfigurationId
);
1013
return _configCache[request.
ConfigurationId
].IsTraversal;
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);
1157
int requiredNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(currentRequest.
ConfigurationId
);
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
];
1486
int assignedNodeForConfiguration = _schedulingData.GetAssignedNodeForRequestConfiguration(request.BuildRequest.
ConfigurationId
);
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
];
1728
int assignedNodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(request.
ConfigurationId
);
1734
if (_schedulingData.GetRequestsAssignedToConfigurationCount(request.
ConfigurationId
) == 0)
1737
_schedulingData.UnassignNodeForRequestConfiguration(request.
ConfigurationId
);
1746
else if (_schedulingData.GetRequestsAssignedToConfigurationCount(request.
ConfigurationId
) > 0)
1749
foreach (SchedulableRequest existingRequest in _schedulingData.GetRequestsAssignedToConfiguration(request.
ConfigurationId
))
1764
_configCache.HasConfiguration(request.
ConfigurationId
),
1767
var config = _configCache[request.
ConfigurationId
];
1949
BuildRequestConfiguration config = _configCache[request.
ConfigurationId
];
2030
BuildRequestConfiguration buildRequestConfiguration = configCache[request.
ConfigurationId
];
2038
configCache.HasConfiguration(parentRequest.BuildRequest.
ConfigurationId
),
2041
BuildRequestConfiguration parentConfiguration = configCache[parentRequest.BuildRequest.
ConfigurationId
];
2058
BuildResult requestResults = _resultsCache.GetResultsForConfiguration(buildRequest.
ConfigurationId
);
2070
if (_configCache[buildRequest.
ConfigurationId
]
2129
BuildRequestConfiguration configuration = _configCache[request.
ConfigurationId
];
2130
int nodeId = _schedulingData.GetAssignedNodeForRequestConfiguration(request.
ConfigurationId
);
2177
ErrorUtilities.VerifyThrow(request.
ConfigurationId
!= BuildRequestConfiguration.InvalidConfigurationId, "Requests should have a valid configuration id at this point");
2181
if (_schedulingData.CanScheduleConfigurationToNode(request.
ConfigurationId
, InProcNodeId) && request.IsProxyBuildRequest())
2186
BuildRequestConfiguration configuration = _configCache[request.
ConfigurationId
];
2258
if (request.GlobalRequestId == BuildRequest.InvalidGlobalRequestId && _schedulingData.GetRequestsAssignedToConfigurationCount(request.
ConfigurationId
) > 0)
2260
foreach (SchedulableRequest existingRequest in _schedulingData.GetRequestsAssignedToConfiguration(request.
ConfigurationId
))
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,
2813
_schedulingData.GetAssignedNodeForRequestConfiguration(buildRequest.
ConfigurationId
),
2818
buildRequest.
ConfigurationId
,
2819
_configCache[buildRequest.
ConfigurationId
].ProjectFullPath,
BackEnd\Components\Scheduler\ScheduleResponse.cs (2)
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 (11)
277
if (!_configurationToRequests.TryGetValue(request.BuildRequest.
ConfigurationId
, out requests))
280
_configurationToRequests[request.BuildRequest.
ConfigurationId
] = requests;
356
if (!configurationsAssignedToNode.Contains(request.BuildRequest.
ConfigurationId
))
358
configurationsAssignedToNode.Add(request.BuildRequest.
ConfigurationId
);
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);
396
_configurationToNode[request.BuildRequest.
ConfigurationId
] = request.AssignedNode;
651
return CanScheduleConfigurationToNode(request.BuildRequest.
ConfigurationId
, nodeId);
BackEnd\Components\Scheduler\SchedulingPlan.cs (5)
211
return _configCache[rootRequest.BuildRequest.
ConfigurationId
].ProjectFullPath + ".buildplan";
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;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
767
ErrorUtilities.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)
45
Assert.Equal(0, request.
ConfigurationId
);
48
Assert.Equal(1, request2.
ConfigurationId
);
51
Assert.Equal(-1, request3.
ConfigurationId
);
93
Assert.Equal(1, request.
ConfigurationId
);
128
Assert.Equal(request.
ConfigurationId
, deserializedRequest.
ConfigurationId
);
BackEnd\BuildRequestEngine_Tests.cs (3)
418
Assert.Equal(1, _newRequest_Request.BuildRequests[0].
ConfigurationId
);
484
Assert.Equal(2, _newRequest_Request.BuildRequests[0].
ConfigurationId
);
485
Assert.Equal(2, _newRequest_Request.BuildRequests[0].
ConfigurationId
);