aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/buildeventstream
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2017-04-13 20:03:56 +0200
committerGravatar Jakob Buchgraber <buchgr@google.com>2017-04-14 12:40:40 +0200
commit329c1b65f0aab302bfe76f1a9e761f2e139dfb58 (patch)
tree8b3b904ea645fd48cb4061840eb2b5c2d57cdb15 /src/main/java/com/google/devtools/build/lib/buildeventstream
parent3754d9b01acfd535c7ff00e4bc64050e5ef8955c (diff)
BEP: report shard and numbers 1-based
In this way, all indices are reported with 1 being the smallest possible. Also, the numbers fit better with the file names generated for log files etc. Change-Id: I7671e5a79dd47c3e3afac16108acaeacdf018fc5 PiperOrigin-RevId: 153080339
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream')
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java
index 33151e9837..0817d02c68 100644
--- a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java
+++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java
@@ -167,8 +167,8 @@ public final class BuildEventId implements Serializable {
BuildEventStreamProtos.BuildEventId.TestResultId resultId =
BuildEventStreamProtos.BuildEventId.TestResultId.newBuilder()
.setLabel(target.toString())
- .setRun(run)
- .setShard(shard)
+ .setRun(run + 1)
+ .setShard(shard + 1)
.setAttempt(attempt)
.build();
return new BuildEventId(