Skip to content

Commit

Permalink
Add target_label member to SpawnExec in the action log.
Browse files Browse the repository at this point in the history
  • Loading branch information
chancila authored and chancilasnap committed Feb 15, 2022
1 parent 3dd3a1b commit 6685147
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ public void logSpawn(
}
builder.setMnemonic(spawn.getMnemonic());
builder.setWalltime(Durations.fromNanos(result.getMetrics().executionWallTime().toNanos()));

if (spawn.getTargetLabel() != null) {
builder.setTargetLabel(spawn.getTargetLabel());
}

executionLog.write(builder.build());
}

Expand Down
3 changes: 3 additions & 0 deletions src/main/protobuf/spawn.proto
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,7 @@ message SpawnExec {
// The wall time it took to execute the Spawn. This is only the time spent in
// the subprocess, not including the time doing setup and teardown.
google.protobuf.Duration walltime = 17;

// Canonical label of the target that emitted this spawn, may not always be set.
string target_label = 18;
}

0 comments on commit 6685147

Please sign in to comment.