aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2017-08-01 21:46:37 +0200
committerGravatar Dmitry Lomov <dslomov@google.com>2017-08-02 10:40:09 +0200
commit04304925be5cd767db834f442e3ef9f9d91ed4ff (patch)
tree579e871343c3531521087ddd1d6d4c6c061a7939 /src/main/java/com/google/devtools
parentb07f1ec42ccc58119620ae9fba6bc19be7acb96c (diff)
BEP: expose the number of cached test action in the summary
In the TestSummary, also indicate the total number of cached actions. Fixes #3435. Change-Id: I5fb3f54f54a852b7cbeb58b03b50b042e5d26455 PiperOrigin-RevId: 163871517
Diffstat (limited to 'src/main/java/com/google/devtools')
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto3
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto b/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto
index 653ea55bcf..ea50943675 100644
--- a/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto
+++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto
@@ -465,6 +465,9 @@ message TestSummary {
// Path to logs of failed runs;
repeated File failed = 4;
+
+ // Total number of cached test actions
+ int32 total_num_cached = 6;
}
// Event indicating the end of a build.
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java b/src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java
index 93f1b3acff..6f6900c961 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java
@@ -470,6 +470,7 @@ public class TestSummary implements Comparable<TestSummary>, BuildEvent {
BuildEventStreamProtos.TestSummary.Builder summaryBuilder =
BuildEventStreamProtos.TestSummary.newBuilder()
.setOverallStatus(BuildEventStreamerUtils.bepStatus(status))
+ .setTotalNumCached(getNumCached())
.setTotalRunCount(totalRuns());
for (Path path : getFailedLogs()) {
summaryBuilder.addFailed(