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