Skip to content

Commit

Permalink
BEP: expose the number of cached test action in the summary
Browse files Browse the repository at this point in the history
In the TestSummary, also indicate the total number of cached actions.
Fixes bazelbuild#3435.

Change-Id: I5fb3f54f54a852b7cbeb58b03b50b042e5d26455
PiperOrigin-RevId: 163871517
  • Loading branch information
aehlig authored and dslomov committed Aug 2, 2017
1 parent b07f1ec commit 0430492
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ public BuildEventStreamProtos.BuildEvent asStreamProto(BuildEventConverters conv
BuildEventStreamProtos.TestSummary.Builder summaryBuilder =
BuildEventStreamProtos.TestSummary.newBuilder()
.setOverallStatus(BuildEventStreamerUtils.bepStatus(status))
.setTotalNumCached(getNumCached())
.setTotalRunCount(totalRuns());
for (Path path : getFailedLogs()) {
summaryBuilder.addFailed(
Expand Down

0 comments on commit 0430492

Please sign in to comment.