-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check in the majority of the prototype's code.
This is the MVP of Skyframe with merged analysis and execution. It's meant to only handle the most straightforward "happy path" of a build and is currently ignoring all failures and extra features. RELNOTES: None PiperOrigin-RevId: 399632160
- Loading branch information
1 parent
26b94ff
commit 94b810f
Showing
16 changed files
with
719 additions
and
106 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
src/main/java/com/google/devtools/build/lib/analysis/AnalysisAndExecutionResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// Copyright 2018 The Bazel Authors. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package com.google.devtools.build.lib.analysis; | ||
|
||
import com.google.common.collect.ImmutableList; | ||
import com.google.common.collect.ImmutableMap; | ||
import com.google.common.collect.ImmutableSet; | ||
import com.google.common.collect.ImmutableSortedSet; | ||
import com.google.devtools.build.lib.actions.Artifact; | ||
import com.google.devtools.build.lib.analysis.config.BuildConfigurationCollection; | ||
import com.google.devtools.build.lib.skyframe.AspectKeyCreator.AspectKey; | ||
import java.util.Collection; | ||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* Return value for {@link com.google.devtools.build.lib.buildtool.AnalysisAndExecutionPhaseRunner}. | ||
* This is meant to be the drop-in replacement for AnalysisResult later on. This is part of | ||
* https://github.com/bazelbuild/bazel/issues/14057. Internal: b/147350683. | ||
*/ | ||
public final class AnalysisAndExecutionResult extends AnalysisResult { | ||
|
||
AnalysisAndExecutionResult( | ||
BuildConfigurationCollection configurations, | ||
ImmutableSet<ConfiguredTarget> targetsToBuild, | ||
ImmutableMap<AspectKey, ConfiguredAspect> aspects, | ||
@Nullable ImmutableList<ConfiguredTarget> targetsToTest, | ||
ImmutableSet<ConfiguredTarget> targetsToSkip, | ||
ImmutableSet<Artifact> artifactsToBuild, | ||
ImmutableSet<ConfiguredTarget> parallelTests, | ||
ImmutableSet<ConfiguredTarget> exclusiveTests, | ||
TopLevelArtifactContext topLevelContext, | ||
String workspaceName, | ||
Collection<TargetAndConfiguration> topLevelTargetsWithConfigs, | ||
ImmutableSortedSet<String> nonSymlinkedDirectoriesUnderExecRoot) { | ||
super( | ||
configurations, | ||
targetsToBuild, | ||
aspects, | ||
targetsToTest, | ||
targetsToSkip, | ||
/*failureDetail=*/ null, | ||
/*actionGraph=*/ null, | ||
artifactsToBuild, | ||
parallelTests, | ||
exclusiveTests, | ||
topLevelContext, | ||
/*packageRoots=*/ null, | ||
workspaceName, | ||
topLevelTargetsWithConfigs, | ||
nonSymlinkedDirectoriesUnderExecRoot); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.