aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java b/src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java
index a79297d396..9901ceeb49 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java
@@ -33,6 +33,7 @@ import com.google.devtools.build.lib.buildtool.buildevent.BuildCompleteEvent;
import com.google.devtools.build.lib.buildtool.buildevent.BuildInterruptedEvent;
import com.google.devtools.build.lib.events.Event;
import com.google.devtools.build.lib.events.EventHandler;
+import com.google.devtools.build.lib.rules.extra.ExtraAction;
import java.io.IOException;
import java.util.Collection;
import java.util.HashSet;
@@ -181,9 +182,14 @@ public class BuildEventStreamer implements EventHandler {
close();
}
+ /**
+ * Return true, if the action is not worth being reported. This is the case, if the action
+ * executed successfully and is not an ExtraAction.
+ */
private static boolean isActionWithoutError(BuildEvent event) {
return event instanceof ActionExecutedEvent
- && ((ActionExecutedEvent) event).getException() == null;
+ && ((ActionExecutedEvent) event).getException() == null
+ && (!(((ActionExecutedEvent) event).getAction() instanceof ExtraAction));
}
private boolean bufferUntilPrerequisitesReceived(BuildEvent event) {