57 instantiations of BuildRequest
Microsoft.Build (6)
BackEnd\BuildManager\BuildManager.cs (2)
1760
submission.BuildRequest = new
BuildRequest
(
1779
submission.BuildRequest = new
BuildRequest
(
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
1170
newRequest = new
BuildRequest
(
1199
newRequest = new
BuildRequest
(
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1019
results[i] = new BuildResult(new
BuildRequest
(), new BuildAbortedException());
BackEnd\Shared\BuildRequest.cs (1)
445
return new
BuildRequest
(translator);
Microsoft.Build.Engine.UnitTests (51)
BackEnd\BuildRequest_Tests.cs (3)
159
BuildRequest request = new
BuildRequest
(
186
BuildRequest request = new
BuildRequest
(
201
return new
BuildRequest
(1 /* submissionId */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.Invalid, null);
BackEnd\BuildRequestEngine_Tests.cs (1)
513
BuildRequest request = new
BuildRequest
(1 /* submission id */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.Invalid, null);
BackEnd\BuildRequestEntry_Tests.cs (1)
279
return new
BuildRequest
(1 /* submissionId */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.Invalid, null);
BackEnd\BuildResult_Tests.cs (2)
313
BuildRequest request = new
BuildRequest
(1, 1, 2, new string[] { "alpha", "omega" }, null, new BuildEventContext(1, 1, 2, 3, 4, 5), null);
349
return new
BuildRequest
(1 /* submissionId */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.Invalid, null);
BackEnd\CacheAggregator_Tests.cs (11)
82
var buildResult = new BuildResult(new
BuildRequest
(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
103
var buildResult = new BuildResult(new
BuildRequest
(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
108
var buildResult2 = new BuildResult(new
BuildRequest
(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
132
var buildResult = new BuildResult(new
BuildRequest
(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
154
var buildResult11 = new BuildResult(new
BuildRequest
(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
162
var buildResult21 = new BuildResult(new
BuildRequest
(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.Invalid, null));
198
var buildResult = new BuildResult(new
BuildRequest
(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
217
var buildResult11 = new BuildResult(new
BuildRequest
(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
219
var buildResult12 = new BuildResult(new
BuildRequest
(1, 2, configurationId: 2, new List<string>() { "c", "d" }, null, BuildEventContext.Invalid, null));
229
var buildResult21 = new BuildResult(new
BuildRequest
(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.Invalid, null));
231
var buildResult22 = new BuildResult(new
BuildRequest
(1, 2, configurationId: 2, new List<string>() { "g", "h" }, null, BuildEventContext.Invalid, null));
BackEnd\CacheSerialization_Tests.cs (3)
44
var request1 = new
BuildRequest
(1, 0, 1, new string[] { "target1", "target2", "target3" }, null, BuildEventContext.Invalid, null);
45
var request2 = new
BuildRequest
(2, 0, 2, new string[] { "target2" }, null, BuildEventContext.Invalid, null);
46
var request3 = new
BuildRequest
(3, 0, 3, new string[] { "target3" }, null, BuildEventContext.Invalid, null);
BackEnd\IntrinsicTask_Tests.cs (2)
3958
BuildRequestEntry entry = new BuildRequestEntry(new
BuildRequest
(1 /* submissionId */, 0, 1, new string[] { "t" }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
3993
var entry = new BuildRequestEntry(new
BuildRequest
(1 /* submissionId */, 0, 1, new string[] { targetName }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
BackEnd\RequestBuilder_Tests.cs (1)
318
return new
BuildRequest
(1 /* submissionId */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.Invalid, null);
BackEnd\ResultsCache_Tests.cs (22)
36
BuildRequest request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null); BuildResult result = new BuildResult(request);
49
BuildRequest request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null);
54
request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[1] { "otherTarget" }, null, BuildEventContext.Invalid, null);
69
BuildRequest request = new
BuildRequest
(submissionId: 1, nodeRequestId: 0, configurationId: 1, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null);
74
request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[1] { "otherTarget" }, null, BuildEventContext.Invalid, null);
79
BuildResult result2 = new BuildResult(new
BuildRequest
(submissionId: 1, nodeRequestId: 0, configurationId: 2, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null));
97
BuildRequest request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null);
106
BuildRequest request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[2] { "testTarget", "testTarget2" }, null, BuildEventContext.Invalid, null);
125
BuildRequest request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[] { "testTarget" }, null, BuildEventContext.Invalid, null);
144
BuildRequest request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[2] { "testTarget", "testTarget2" }, null, BuildEventContext.Invalid, null);
156
BuildRequest request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[1] { "testTarget2" }, null, BuildEventContext.Invalid, null);
179
BuildRequest request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[1] { "testTarget2" }, null, BuildEventContext.Invalid, null);
203
BuildRequest requestWithNoBuildDataFlags = new
BuildRequest
(
213
BuildRequest requestWithProjectStateFlag = new
BuildRequest
(
223
BuildRequest requestWithNoBuildDataFlags2 = new
BuildRequest
(
276
BuildRequest requestWithSubsetFlag1 = new
BuildRequest
(
291
BuildRequest requestWithSubsetFlag2 = new
BuildRequest
(
348
BuildRequest request = new
BuildRequest
(1 /* submissionId */, 0, 1, new string[1] { "testTarget2" }, null, BuildEventContext.Invalid, null);
364
var request1 = new
BuildRequest
(1, 2, 3, new[] { "target1" }, null, BuildEventContext.Invalid, null);
365
var request2 = new
BuildRequest
(4, 5, 6, new[] { "target2" }, null, BuildEventContext.Invalid, null);
410
var request1 = new
BuildRequest
(1, 2, 3, new[] { "target1" }, null, BuildEventContext.Invalid, null);
411
var request2 = new
BuildRequest
(4, 5, 6, new[] { "target2" }, null, BuildEventContext.Invalid, null);
BackEnd\Scheduler_Tests.cs (2)
822
return new
BuildRequest
(
833
return new
BuildRequest
(
BackEnd\TargetBuilder_Tests.cs (1)
1562
return new
BuildRequest
(1 /* submissionId */, _nodeRequestId++, configurationId, targets.Select(t => t.name).ToArray(), null, BuildEventContext.Invalid, null, flags);
BackEnd\TargetEntry_Tests.cs (1)
1015
return new
BuildRequest
(1 /* submissionId */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.Invalid, null);
BackEnd\TaskHost_Tests.cs (1)
75
BuildRequest buildRequest = new
BuildRequest
(1 /* submissionId */, 1, 1, new List<string>(), null, BuildEventContext.Invalid, null);
327 references to BuildRequest
Microsoft.Build (125)
BackEnd\BuildManager\BuildManager.cs (4)
1459
private void LoadSolutionIntoConfiguration(BuildRequestConfiguration config,
BuildRequest
request)
1762
BackEnd.
BuildRequest
.InvalidNodeRequestId,
1781
BackEnd.
BuildRequest
.InvalidNodeRequestId,
2335
foreach (
BuildRequest
request in blocker.BuildRequests)
BackEnd\BuildManager\BuildSubmission.cs (1)
156
internal
BuildRequest
? BuildRequest { get; set; }
BackEnd\BuildManager\CacheAggregator.cs (3)
95
BuildRequest
.InvalidGlobalRequestId,
96
BuildRequest
.InvalidGlobalRequestId,
97
BuildRequest
.InvalidNodeRequestId));
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (13)
325
public void SubmitBuildRequest(
BuildRequest
request)
336
if (request.NodeRequestId ==
BuildRequest
.ResultsTransferNodeRequestId)
427
if (result.NodeRequestId ==
BuildRequest
.ResultsTransferNodeRequestId)
527
var requestsToIssue = new List<
BuildRequest
>();
536
IEnumerable<
BuildRequest
> resolvedRequests = currentEntry.GetRequestsToIssueIfReady();
537
foreach (
BuildRequest
request in resolvedRequests)
646
private void RaiseRequestComplete(
BuildRequest
request, BuildResult result)
660
private void RaiseRequestResumed(
BuildRequest
request)
1059
else if (unsubmittedRequest.BlockingGlobalRequestId ==
BuildRequest
.InvalidGlobalRequestId)
1138
BuildRequest
newRequest;
1270
List<
BuildRequest
> requestsToIssue = issuingEntry.GetRequestsToIssueIfReady();
1354
foreach (
BuildRequest
blockingRequest in blocker.BuildRequests)
1475
BlockingGlobalRequestId =
BuildRequest
.InvalidGlobalRequestId;
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (23)
80
private Dictionary<int, List<
BuildRequest
>> _unresolvedConfigurations;
86
private List<
BuildRequest
> _requestsToIssue;
96
private Dictionary<int,
BuildRequest
> _outstandingRequests;
123
internal BuildRequestEntry(
BuildRequest
request, BuildRequestConfiguration requestConfiguration)
132
_blockingGlobalRequestId =
BuildRequest
.InvalidGlobalRequestId;
161
public
BuildRequest
Request { get; }
205
public void WaitForResult(
BuildRequest
newRequest)
235
if (_unresolvedConfigurations?.TryGetValue(unresolvedConfigId, out List<
BuildRequest
> requests) != true)
247
foreach (
BuildRequest
request in requests)
260
public List<
BuildRequest
> GetRequestsToIssueIfReady()
264
List<
BuildRequest
> requests = _requestsToIssue;
331
_blockingGlobalRequestId =
BuildRequest
.InvalidGlobalRequestId;
371
if (_outstandingRequests == null && _unresolvedConfigurations == null && _blockingGlobalRequestId ==
BuildRequest
.InvalidGlobalRequestId)
386
ErrorUtilities.VerifyThrow(_blockingGlobalRequestId !=
BuildRequest
.InvalidGlobalRequestId, "Entry must be waiting on another request to be unblocked. Config: {0} Request: {1}", RequestConfiguration.ConfigurationId, Request.GlobalRequestId);
388
_blockingGlobalRequestId =
BuildRequest
.InvalidGlobalRequestId;
432
foreach (KeyValuePair<int,
BuildRequest
> requestEntry in _outstandingRequests)
440
foreach (List<
BuildRequest
> requests in _unresolvedConfigurations.Values)
442
foreach (
BuildRequest
request in requests)
496
private void WaitForResult(
BuildRequest
newRequest, bool addToIssueList)
504
_outstandingRequests ??= new Dictionary<int,
BuildRequest
>();
512
_unresolvedConfigurations ??= new Dictionary<int, List<
BuildRequest
>>();
516
_unresolvedConfigurations.Add(newRequest.ConfigurationId, new List<
BuildRequest
>());
524
_requestsToIssue ??= new List<
BuildRequest
>();
BackEnd\Components\BuildRequestEngine\IBuildRequestEngine.cs (3)
18
internal delegate void RequestCompleteDelegate(
BuildRequest
request, BuildResult result);
24
internal delegate void RequestResumedDelegate(
BuildRequest
request);
162
void SubmitBuildRequest(
BuildRequest
request);
BackEnd\Components\Caching\IResultsCache.cs (2)
33
BuildResult GetResultForRequest(
BuildRequest
request);
57
ResultsCacheResponse SatisfyRequest(
BuildRequest
request, List<string> configInitialTargets, List<string> configDefaultTargets, bool skippedResultsDoNotCauseCacheMiss);
BackEnd\Components\Caching\ResultsCache.cs (3)
113
public BuildResult GetResultForRequest(
BuildRequest
request)
166
public ResultsCacheResponse SatisfyRequest(
BuildRequest
request, List<string> configInitialTargets, List<string> configDefaultTargets, bool skippedResultsDoNotCauseCacheMiss)
352
private static bool AreBuildResultFlagsCompatible(
BuildRequest
buildRequest, BuildResult buildResult)
BackEnd\Components\Caching\ResultsCacheWithOverride.cs (2)
50
public BuildResult GetResultForRequest(
BuildRequest
request)
79
BuildRequest
request,
BackEnd\Components\Logging\NodeLoggingContext.cs (2)
78
internal ProjectLoggingContext LogProjectStarted(
BuildRequest
request, BuildRequestConfiguration configuration)
94
internal void LogRequestHandledFromCache(
BuildRequest
request, BuildRequestConfiguration configuration, BuildResult result)
BackEnd\Components\Logging\ProjectLoggingContext.cs (1)
54
BuildRequest
request,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
318
private FileAccessContext GetFileAccessContext(
BuildRequest
buildRequest)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1197
await BlockOnTargetInProgress(Microsoft.Build.BackEnd.
BuildRequest
.InvalidGlobalRequestId, null);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
680
int idOfAlreadyBuildingRequest =
BuildRequest
.InvalidGlobalRequestId;
764
int idOfAlreadyBuildingRequest =
BuildRequest
.InvalidGlobalRequestId;
BackEnd\Components\Scheduler\IScheduler.cs (1)
39
BuildRequest
GetExecutingRequestByNode(int nodeId);
BackEnd\Components\Scheduler\SchedulableRequest.cs (4)
81
private
BuildRequest
_request;
127
public SchedulableRequest(SchedulingData collection,
BuildRequest
request, SchedulableRequest parent)
162
public
BuildRequest
BuildRequest
678
public BlockingRequestKey(
BuildRequest
request)
BackEnd\Components\Scheduler\Scheduler.cs (24)
289
public
BuildRequest
GetExecutingRequestByNode(int nodeId)
310
if (blocker.BlockedRequestId !=
BuildRequest
.InvalidGlobalRequestId)
332
else if ((blocker.BlockingRequestId == blocker.BlockedRequestId) && blocker.BlockingRequestId !=
BuildRequest
.InvalidGlobalRequestId)
338
else if (blocker.BlockingRequestId !=
BuildRequest
.InvalidGlobalRequestId)
383
if (result.NodeRequestId ==
BuildRequest
.ResultsTransferNodeRequestId)
1011
private bool IsTraversalRequest(
BuildRequest
request)
1156
BuildRequest
currentRequest = currentSchedulableRequest.BuildRequest;
1654
BuildRequest
newRequest = new BuildRequest(parentRequest.BuildRequest.SubmissionId,
BuildRequest
.ResultsTransferNodeRequestId, parentRequest.BuildRequest.ConfigurationId, [], null, parentRequest.BuildRequest.BuildEventContext, parentRequest.BuildRequest, parentRequest.BuildRequest.BuildRequestDataFlags);
1686
Stack<
BuildRequest
> requestsToAdd = new Stack<
BuildRequest
>(blocker.BuildRequests.Length);
1687
foreach (
BuildRequest
request in blocker.BuildRequests)
1690
if (request.GlobalRequestId ==
BuildRequest
.InvalidGlobalRequestId)
1809
BuildRequest
requestToAdd = requestsToAdd.Pop();
1947
private ScheduleResponse TrySatisfyRequestFromCache(int nodeForResults,
BuildRequest
request, bool skippedResultsDoNotCauseCacheMiss)
1961
private bool CheckIfCacheMissOnReferencedProjectIsAllowedAndErrorIfNot(int nodeForResults,
BuildRequest
request, List<ScheduleResponse> responses, out Action<ILoggingService> emitNonErrorLogs)
2050
bool SkipNonexistentTargetsIfExistentTargetsHaveResults(
BuildRequest
buildRequest)
2105
private ScheduleResponse GetResponseForResult(int parentRequestNode,
BuildRequest
requestWhichGeneratedResult, BuildResult result)
2127
private void LogRequestHandledFromCache(
BuildRequest
request, BuildResult result)
2165
private NodeAffinity GetNodeAffinityForRequest(
BuildRequest
request)
2255
private void AssignGlobalRequestId(
BuildRequest
request)
2258
if (request.GlobalRequestId ==
BuildRequest
.InvalidGlobalRequestId && _schedulingData.GetRequestsAssignedToConfigurationCount(request.ConfigurationId) > 0)
2320
int invalidWorkId = useConfigurations ? BuildRequestConfiguration.InvalidConfigurationId :
BuildRequest
.InvalidGlobalRequestId;
2806
var
buildRequest = request.BuildRequest;
BackEnd\Components\Scheduler\SchedulerCircularDependencyException.cs (3)
28
private
BuildRequest
_request;
33
public SchedulerCircularDependencyException(
BuildRequest
request, IList<SchedulableRequest> ancestors)
55
public
BuildRequest
Request
BackEnd\Components\Scheduler\ScheduleResponse.cs (7)
83
internal readonly
BuildRequest
BuildRequest;
130
private ScheduleResponse(int nodeId,
BuildRequest
parentRequest,
BuildRequest
requestCausingCircularDependency)
144
private ScheduleResponse(int node,
BuildRequest
request, bool sendConfiguration)
171
public static ScheduleResponse CreateScheduleResponse(int node,
BuildRequest
requestToSchedule, bool sendConfiguration)
205
public static ScheduleResponse CreateCircularDependencyResponse(int node,
BuildRequest
parentRequest,
BuildRequest
requestCausingCircularDependency)
BackEnd\Components\Scheduler\SchedulingData.cs (1)
267
public SchedulableRequest CreateRequest(
BuildRequest
buildRequest, SchedulableRequest parent)
BackEnd\Node\InProcNode.cs (3)
241
private void OnRequestComplete(
BuildRequest
request, BuildResult result)
373
HandleBuildRequest(packet as
BuildRequest
);
426
private void HandleBuildRequest(
BuildRequest
request)
BackEnd\Node\OutOfProcNode.cs (4)
177
(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.BuildRequest,
BuildRequest
.FactoryForDeserialization, this);
374
private void OnRequestComplete(
BuildRequest
request, BuildResult result)
619
HandleBuildRequest(packet as
BuildRequest
);
651
private void HandleBuildRequest(
BuildRequest
request)
BackEnd\Shared\BuildRequest.cs (3)
67
/// <inheritdoc cref="
BuildRequest
.Targets"/>
70
/// <inheritdoc cref="
BuildRequest
.ProxyTargets"/>
180
BuildRequest
parentRequest,
BackEnd\Shared\BuildRequestBlocker.cs (4)
71
private
BuildRequest
[] _buildRequests;
94
internal BuildRequestBlocker(int blockedGlobalRequestId, string[] targetsInProgress,
BuildRequest
[] buildRequests)
128
_blockingGlobalRequestId =
BuildRequest
.InvalidGlobalRequestId;
200
public
BuildRequest
[] BuildRequests
BackEnd\Shared\BuildRequestConfiguration.cs (1)
765
public List<(string name, TargetBuiltReason reason)> GetTargetsUsedToBuildRequest(
BuildRequest
request)
BackEnd\Shared\BuildRequestUnblocker.cs (3)
26
private int _blockedGlobalRequestId =
BuildRequest
.InvalidGlobalRequestId;
46
ErrorUtilities.VerifyThrowArgumentOutOfRange(globalRequestIdToResume !=
BuildRequest
.InvalidGlobalRequestId, nameof(globalRequestIdToResume));
63
internal BuildRequestUnblocker(
BuildRequest
parentRequest, BuildResult buildResult)
BackEnd\Shared\BuildResult.cs (6)
128
/// <see cref="ProjectInstance"/> state after the build. This is only provided if <see cref="
BuildRequest
.BuildRequestDataFlags"/>
161
internal BuildResult(
BuildRequest
request)
171
internal BuildResult(
BuildRequest
request, Exception? exception)
181
internal BuildResult(
BuildRequest
request, bool circularDependency)
214
internal BuildResult(
BuildRequest
request, BuildResult? existingResults, Exception? exception)
226
internal BuildResult(
BuildRequest
request, BuildResult? existingResults, string[]? targetNames, Exception? exception)
Microsoft.Build.Engine.UnitTests (202)
BackEnd\BuildRequest_Tests.cs (23)
44
BuildRequest
request = CreateNewBuildRequest(0, Array.Empty<string>());
47
BuildRequest
request2 = CreateNewBuildRequest(1, Array.Empty<string>());
50
BuildRequest
request3 = CreateNewBuildRequest(-1, Array.Empty<string>());
57
BuildRequest
request = CreateNewBuildRequest(0, Array.Empty<string>());
60
BuildRequest
request2 = CreateNewBuildRequest(1, Array.Empty<string>());
63
BuildRequest
request3 = CreateNewBuildRequest(-1, Array.Empty<string>());
70
BuildRequest
request = CreateNewBuildRequest(0, Array.Empty<string>());
74
BuildRequest
request2 = CreateNewBuildRequest(1, new string[1] { "a" });
83
BuildRequest
request = CreateNewBuildRequest(0, Array.Empty<string>());
90
BuildRequest
request = CreateNewBuildRequest(0, Array.Empty<string>());
101
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
111
BuildRequest
request = CreateNewBuildRequest(0, Array.Empty<string>());
118
BuildRequest
request = CreateNewBuildRequest(1, new string[] { "alpha", "omega" });
123
INodePacket packet =
BuildRequest
.FactoryForDeserialization(TranslationHelpers.GetReadTranslator());
125
BuildRequest
deserializedRequest = packet as
BuildRequest
;
159
BuildRequest
request = new BuildRequest(
169
INodePacket packet =
BuildRequest
.FactoryForDeserialization(TranslationHelpers.GetReadTranslator());
171
BuildRequest
deserializedRequest = packet as
BuildRequest
;
186
BuildRequest
request = new BuildRequest(
196
BuildRequest
.FactoryForDeserialization(TranslationHelpers.GetReadTranslator());
199
private
BuildRequest
CreateNewBuildRequest(int configurationId, string[] targets)
BackEnd\BuildRequestEngine_Tests.cs (10)
255
private
BuildRequest
_requestComplete_Request;
259
private
BuildRequest
_requestResumed_Request;
342
BuildRequest
request = CreateNewBuildRequest(1, targets);
373
BuildRequest
request = CreateNewBuildRequest(1, targets);
406
BuildRequest
request = CreateNewBuildRequest(1, targets);
461
BuildRequest
request = CreateNewBuildRequest(1, targets);
511
private
BuildRequest
CreateNewBuildRequest(int configurationId, string[] targets)
513
BuildRequest
request = new BuildRequest(1 /* submission id */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.Invalid, null);
551
private void Engine_RequestComplete(
BuildRequest
request, BuildResult result)
562
private void Engine_RequestResumed(
BuildRequest
request)
BackEnd\BuildRequestEntry_Tests.cs (22)
23
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
44
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "foo" });
58
BuildRequest
waitingRequest = CreateNewBuildRequest(2, new string[1] { "bar" });
92
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "foo" });
100
BuildRequest
waitingRequest = CreateNewBuildRequest(-1, new string[1] { "bar" });
114
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "foo" });
122
BuildRequest
waitingRequest1 = CreateNewBuildRequest(2, new string[1] { "bar" });
126
BuildRequest
waitingRequest2 = CreateNewBuildRequest(2, new string[1] { "xor" });
144
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "foo" });
152
BuildRequest
waitingRequest1 = CreateNewBuildRequest(2, new string[1] { "bar" });
156
BuildRequest
waitingRequest2 = CreateNewBuildRequest(-1, new string[1] { "xor" });
181
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "foo" });
187
BuildRequest
waitingRequest1 = CreateNewBuildRequest(2, new string[1] { "bar" });
197
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "foo" });
214
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "foo" });
223
BuildRequest
waitingRequest1 = CreateNewBuildRequest(2, new string[1] { "bar" });
238
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "foo" });
251
BuildRequest
waitingRequest1 = CreateNewBuildRequest(2, new string[1] { "bar" });
258
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "foo" });
266
BuildRequest
waitingRequest1 = CreateNewBuildRequest(2, new string[1] { "bar" });
270
BuildRequest
randomRequest = CreateNewBuildRequest(3, Array.Empty<string>());
277
private
BuildRequest
CreateNewBuildRequest(int configurationId, string[] targets)
BackEnd\BuildResult_Tests.cs (22)
31
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
38
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
70
BuildRequest
request = CreateNewBuildRequest(-1, Array.Empty<string>());
74
BuildRequest
request2 = CreateNewBuildRequest(1, Array.Empty<string>());
82
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
94
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
107
BuildRequest
request2 = CreateNewBuildRequest(2, Array.Empty<string>());
117
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
125
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
139
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
150
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
162
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
173
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
184
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
192
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
219
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
232
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
236
BuildRequest
request2 = CreateNewBuildRequest(2, Array.Empty<string>());
246
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
257
BuildRequest
request = CreateNewBuildRequest(1, Array.Empty<string>());
313
BuildRequest
request = new BuildRequest(1, 1, 2, new string[] { "alpha", "omega" }, null, new BuildEventContext(1, 1, 2, 3, 4, 5), null);
347
private
BuildRequest
CreateNewBuildRequest(int configurationId, string[] targets)
BackEnd\CacheAggregator_Tests.cs (3)
280
aggregatedBuildResult.ParentGlobalRequestId.ShouldBe(
BuildRequest
.InvalidGlobalRequestId);
281
aggregatedBuildResult.GlobalRequestId.ShouldBe(
BuildRequest
.InvalidGlobalRequestId);
282
aggregatedBuildResult.NodeRequestId.ShouldBe(
BuildRequest
.InvalidNodeRequestId);
BackEnd\CacheSerialization_Tests.cs (3)
44
var
request1 = new BuildRequest(1, 0, 1, new string[] { "target1", "target2", "target3" }, null, BuildEventContext.Invalid, null);
45
var
request2 = new BuildRequest(2, 0, 2, new string[] { "target2" }, null, BuildEventContext.Invalid, null);
46
var
request3 = new BuildRequest(3, 0, 3, new string[] { "target3" }, null, BuildEventContext.Invalid, null);
BackEnd\RequestBuilder_Tests.cs (9)
30
private
BuildRequest
[] _newBuildRequests_BuildRequests;
88
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "target1" });
118
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "target1" });
152
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "target1" });
191
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "target1" });
229
BuildRequest
request = CreateNewBuildRequest(1, new string[1] { "target1" });
294
_newBuildRequests_BuildRequests = new
BuildRequest
[requests.Length];
302
BuildRequest
newRequest = CreateNewBuildRequest(matchingConfig.ConfigurationId, request.Targets);
316
private
BuildRequest
CreateNewBuildRequest(int configurationId, string[] targets)
BackEnd\ResultsCache_Tests.cs (19)
36
BuildRequest
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null); BuildResult result = new BuildResult(request);
49
BuildRequest
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null);
69
BuildRequest
request = new BuildRequest(submissionId: 1, nodeRequestId: 0, configurationId: 1, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null);
97
BuildRequest
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null);
106
BuildRequest
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[2] { "testTarget", "testTarget2" }, null, BuildEventContext.Invalid, null);
125
BuildRequest
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "testTarget" }, null, BuildEventContext.Invalid, null);
144
BuildRequest
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[2] { "testTarget", "testTarget2" }, null, BuildEventContext.Invalid, null);
156
BuildRequest
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget2" }, null, BuildEventContext.Invalid, null);
179
BuildRequest
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget2" }, null, BuildEventContext.Invalid, null);
203
BuildRequest
requestWithNoBuildDataFlags = new BuildRequest(
213
BuildRequest
requestWithProjectStateFlag = new BuildRequest(
223
BuildRequest
requestWithNoBuildDataFlags2 = new BuildRequest(
276
BuildRequest
requestWithSubsetFlag1 = new BuildRequest(
291
BuildRequest
requestWithSubsetFlag2 = new BuildRequest(
348
BuildRequest
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget2" }, null, BuildEventContext.Invalid, null);
364
var
request1 = new BuildRequest(1, 2, 3, new[] { "target1" }, null, BuildEventContext.Invalid, null);
365
var
request2 = new BuildRequest(4, 5, 6, new[] { "target2" }, null, BuildEventContext.Invalid, null);
410
var
request1 = new BuildRequest(1, 2, 3, new[] { "target1" }, null, BuildEventContext.Invalid, null);
411
var
request2 = new BuildRequest(4, 5, 6, new[] { "target2" }, null, BuildEventContext.Invalid, null);
BackEnd\Scheduler_Tests.cs (88)
44
private
BuildRequest
_defaultParentRequest;
79
_scheduler.ReportRequestBlocked(1, new BuildRequestBlocker(-1, Array.Empty<string>(), new
BuildRequest
[] { _defaultParentRequest }));
109
BuildRequest
request = CreateBuildRequest(1, 1);
110
BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request });
125
BuildRequest
request = CreateBuildRequest(1, 1, new string[] { "foo" });
128
BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request });
149
BuildRequest
request = CreateBuildRequest(1, 1, new string[] { "foo" });
152
BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request });
173
BuildRequest
request = CreateBuildRequest(1, 1, new string[] { "foo" });
175
BuildRequestBlocker blocker = new BuildRequestBlocker(-1, Array.Empty<string>(), new
BuildRequest
[] { request });
179
BuildRequest
childRequest = CreateBuildRequest(2, 2, new string[] { "foo" }, request);
182
blocker = new BuildRequestBlocker(0, new string[] { "foo" }, new
BuildRequest
[] { childRequest });
203
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" });
204
BuildRequest
request2 = CreateBuildRequest(2, 1, new string[] { "bar" });
206
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2 });
221
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" });
223
BuildRequest
request2 = CreateBuildRequest(2, 2, new string[] { "bar" });
226
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2 });
243
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" });
246
BuildRequest
request2 = CreateBuildRequest(2, 2, new string[] { "bar" });
249
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2 });
274
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest);
275
BuildRequest
request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest);
277
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2 });
298
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest);
299
BuildRequest
request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest);
301
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2 });
323
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" });
324
BuildRequest
request2 = CreateBuildRequest(2, 1, new string[] { "bar" });
325
BuildRequest
request3 = CreateBuildRequest(3, 1, new string[] { "baz" });
326
BuildRequest
request4 = CreateBuildRequest(4, 1, new string[] { "qux" });
328
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2, request3, request4 });
349
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" });
350
BuildRequest
request2 = CreateBuildRequest(2, 2, new string[] { "bar" });
351
BuildRequest
request3 = CreateBuildRequest(3, 3, new string[] { "baz" });
352
BuildRequest
request4 = CreateBuildRequest(4, 4, new string[] { "qux" });
354
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2, request3, request4 });
394
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.Any, _defaultParentRequest);
395
BuildRequest
request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.InProc, _defaultParentRequest);
396
BuildRequest
request3 = CreateBuildRequest(3, 1, new string[] { "bar" }, NodeAffinity.InProc, _defaultParentRequest);
398
List<ScheduleResponse> response = new List<ScheduleResponse>(_scheduler.ReportRequestBlocked(1, new BuildRequestBlocker(-1, Array.Empty<string>(), new
BuildRequest
[] { _defaultParentRequest, request1, request2, request3 })));
427
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest);
428
BuildRequest
request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest);
429
BuildRequest
request3 = CreateBuildRequest(3, 3, new string[] { "baz" }, NodeAffinity.OutOfProc, _defaultParentRequest);
430
BuildRequest
request4 = CreateBuildRequest(4, 4, new string[] { "qux" }, NodeAffinity.OutOfProc, _defaultParentRequest);
432
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2, request3, request4 });
457
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest);
458
BuildRequest
request2 = CreateBuildRequest(2, 2, new string[] { "bar" });
459
BuildRequest
request3 = CreateBuildRequest(3, 3, new string[] { "baz" });
460
BuildRequest
request4 = CreateBuildRequest(4, 4, new string[] { "qux" });
462
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2, request3, request4 });
487
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest);
488
BuildRequest
request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest);
489
BuildRequest
request3 = CreateBuildRequest(3, 3, new string[] { "baz" });
490
BuildRequest
request4 = CreateBuildRequest(4, 4, new string[] { "qux" });
492
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2, request3, request4 });
522
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, _defaultParentRequest);
523
BuildRequest
request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, _defaultParentRequest);
525
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2 });
547
BuildRequest
request1 = CreateProxyBuildRequest(1, 1, new ProxyTargets(new Dictionary<string, string> { { "foo", "bar" } }), null);
586
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest);
588
BuildRequest
request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest);
590
BuildRequest
request3 = CreateBuildRequest(3, 3, new string[] { "bar" }, NodeAffinity.InProc, _defaultParentRequest);
592
List<ScheduleResponse> responses = new List<ScheduleResponse>(_scheduler.ReportRequestBlocked(1, new BuildRequestBlocker(-1, Array.Empty<string>(), new
BuildRequest
[] { _defaultParentRequest, request1, request2, request3 })));
606
BuildRequest
br1 = CreateBuildRequest(1, 1, new string[] { "A" });
611
BuildRequest
br2 = CreateBuildRequest(1, 1, new string[] { "B" });
623
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" });
625
BuildRequest
request2 = CreateBuildRequest(2, 1, new string[] { "bar" });
627
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2 });
642
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" });
643
BuildRequest
request2 = CreateBuildRequest(2, 1, new string[] { "bar" });
646
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2 });
661
BuildRequest
request1 = CreateBuildRequest(1, 1, new string[] { "foo" });
662
BuildRequest
request2 = CreateBuildRequest(2, 1, new string[] { "bar" });
664
BuildRequest
request3 = CreateBuildRequest(3, 1, new string[] { "baz" });
666
BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request1, request2, request3 });
681
BuildRequest
request = CreateBuildRequest(1, 1);
682
BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new
BuildRequest
[] { request });
756
private BuildResult CacheBuildResult(
BuildRequest
request, string target, WorkUnitResult workUnitResult, ResultsCache resultsCache = null)
774
private BuildResult CreateBuildResult(
BuildRequest
request, string target, WorkUnitResult workUnitResult)
784
private
BuildRequest
CreateBuildRequest(int nodeRequestId, int configId)
792
private
BuildRequest
CreateBuildRequest(int nodeRequestId, int configId, string[] targets)
800
private
BuildRequest
CreateBuildRequest(int nodeRequestId, int configId, string[] targets,
BuildRequest
parentRequest)
808
private
BuildRequest
CreateBuildRequest(int nodeRequestId, int configId, string[] targets, NodeAffinity nodeAffinity,
BuildRequest
parentRequest, ProxyTargets proxyTargets = null)
841
private
BuildRequest
CreateProxyBuildRequest(int nodeRequestId, int configId, ProxyTargets proxyTargets,
BuildRequest
parentRequest)
BackEnd\TargetBuilder_Tests.cs (1)
1560
private
BuildRequest
CreateNewBuildRequest(int configurationId, (string name, TargetBuiltReason reason)[] targets, BuildRequestDataFlags flags = BuildRequestDataFlags.None)
BackEnd\TargetEntry_Tests.cs (1)
1013
private
BuildRequest
CreateNewBuildRequest(int configurationId, string[] targets)
BackEnd\TaskHost_Tests.cs (1)
75
BuildRequest
buildRequest = new BuildRequest(1 /* submissionId */, 1, 1, new List<string>(), null, BuildEventContext.Invalid, null);