Update the sets of built targets and aspects in the ExecutionProgressReceiver with Skymeld & incremental builds.
PiperOrigin-RevId: 437997802
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverKey.java b/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverKey.java
index 94ef0c1..ece15d6 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverKey.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverKey.java
@@ -29,26 +29,48 @@
private final TestType testType;
private final boolean strictActionConflictCheck;
- public BuildDriverKey(
- ActionLookupKey actionLookupKey,
- TopLevelArtifactContext topLevelArtifactContext,
- boolean strictActionConflictCheck) {
- this(
- actionLookupKey,
- topLevelArtifactContext,
- strictActionConflictCheck,
- /*testType=*/ TestType.NOT_TEST);
+ public boolean isTopLevelAspectDriver() {
+ return isTopLevelAspectDriver;
}
- public BuildDriverKey(
+ private final boolean isTopLevelAspectDriver;
+
+ private BuildDriverKey(
ActionLookupKey actionLookupKey,
TopLevelArtifactContext topLevelArtifactContext,
boolean strictActionConflictCheck,
- TestType testType) {
+ TestType testType,
+ boolean isTopLevelAspectDriver) {
this.actionLookupKey = actionLookupKey;
this.topLevelArtifactContext = topLevelArtifactContext;
this.strictActionConflictCheck = strictActionConflictCheck;
this.testType = testType;
+ this.isTopLevelAspectDriver = isTopLevelAspectDriver;
+ }
+
+ public static BuildDriverKey ofTopLevelAspect(
+ ActionLookupKey actionLookupKey,
+ TopLevelArtifactContext topLevelArtifactContext,
+ boolean strictActionConflictCheck) {
+ return new BuildDriverKey(
+ actionLookupKey,
+ topLevelArtifactContext,
+ strictActionConflictCheck,
+ TestType.NOT_TEST,
+ /*isTopLevelAspectDriver=*/ true);
+ }
+
+ public static BuildDriverKey ofConfiguredTarget(
+ ActionLookupKey actionLookupKey,
+ TopLevelArtifactContext topLevelArtifactContext,
+ boolean strictActionConflictCheck,
+ TestType testType) {
+ return new BuildDriverKey(
+ actionLookupKey,
+ topLevelArtifactContext,
+ strictActionConflictCheck,
+ testType,
+ /*isTopLevelAspectDriver=*/ false);
}
public TopLevelArtifactContext getTopLevelArtifactContext() {