diff --git a/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionProgressReceiver.java b/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionProgressReceiver.java index ba826649bbc9b8..5c502931186e23 100644 --- a/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionProgressReceiver.java +++ b/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionProgressReceiver.java @@ -20,6 +20,7 @@ import com.google.devtools.build.lib.actions.ActionExecutionStatusReporter; import com.google.devtools.build.lib.actions.ActionLookupData; import com.google.devtools.build.lib.actions.MiddlemanType; +import com.google.devtools.build.lib.analysis.ConfiguredTargetValue; import com.google.devtools.build.lib.skyframe.ActionExecutionInactivityWatchdog; import com.google.devtools.build.lib.skyframe.AspectCompletionValue; import com.google.devtools.build.lib.skyframe.AspectKeyCreator; @@ -155,7 +156,9 @@ public void evaluated( eventBus.post( TopLevelTargetBuiltEvent.create( - (ConfiguredTargetKey) buildDriverKey.getActionLookupKey())); + ConfiguredTargetKey.fromConfiguredTarget( + ((ConfiguredTargetValue) buildDriverValue.getWrappedSkyValue()) + .getConfiguredTarget()))); } } diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverFunction.java index 538f85f5b153f8..257007f24f3855 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverFunction.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverFunction.java @@ -287,7 +287,6 @@ public SkyValue compute(SkyKey skyKey, Environment env) requestConfiguredTargetExecution( configuredTarget, buildDriverKey, - actionLookupKey, buildConfigurationValue, env, topLevelArtifactContext, @@ -446,7 +445,6 @@ private static Target getTarget(Environment env, Label label) private void requestConfiguredTargetExecution( ConfiguredTarget configuredTarget, BuildDriverKey buildDriverKey, - ActionLookupKeyOrProxy actionLookupKey, BuildConfigurationValue buildConfigurationValue, Environment env, TopLevelArtifactContext topLevelArtifactContext, @@ -466,7 +464,9 @@ private void requestConfiguredTargetExecution( Artifact.keys(artifactsToBuild.build()), Collections.singletonList( TargetCompletionValue.key( - (ConfiguredTargetKey) actionLookupKey, topLevelArtifactContext, false)))); + ConfiguredTargetKey.fromConfiguredTarget(configuredTarget), + topLevelArtifactContext, + false)))); return; } @@ -486,9 +486,9 @@ private void requestConfiguredTargetExecution( artifactsToBuild.build(), Collections.singletonList( TestCompletionValue.key( - (ConfiguredTargetKey) actionLookupKey, + ConfiguredTargetKey.fromConfiguredTarget(configuredTarget), topLevelArtifactContext, - /*exclusiveTesting=*/ false)))); + /* exclusiveTesting= */ false)))); return; }