diff options
author | 2017-11-29 05:03:03 -0800 | |
---|---|---|
committer | 2017-11-29 05:04:28 -0800 | |
commit | d587e642c316f9b63b45190b30cf744a6eed858c (patch) | |
tree | eab99230750144b3b1216425bcda161d01367621 /src/main/java/com/google/devtools/build/lib/buildeventstream/proto | |
parent | a7a9d56539a467ef095d3003a16d33922d9505a5 (diff) |
BEP: Extend TestResult to optionally contain meta data
Extend the protocol to support also showing meta data about
an action execution, if the underlying test action is able
to report it.
PiperOrigin-RevId: 177294531
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream/proto')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto | 31 |
1 files changed, 31 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 b67f200a14..8a2b05bb42 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 @@ -504,6 +504,37 @@ message TestResult { // Warnings generated by that test action. repeated string warning = 7; + + // Message providing optional meta data on the execution of the test action, + // if available. + message ExecutionInfo { + int32 timeout_seconds = 1; + + // Name of the strategy to execute this test action (e.g., "local", + // "remote") + string strategy = 2; + + // The hostname of the machine where the test action was executed (in case + // of remote execution), if known. + string hostname = 3; + + // Represents a hierarchical timing breakdown of an activity. + // The top level time should be the total time of the activity. + // Invariant: time_millis >= sum of time_millis of all direct children. + message TimingBreakdown { + repeated TimingBreakdown child = 1; + string name = 2; + int64 time_millis = 3; + } + TimingBreakdown timing_breakdown = 4; + + message ResourceUsage { + string name = 1; + int64 value = 2; + } + repeated ResourceUsage resource_usage = 5; + } + ExecutionInfo execution_info = 8; } // Payload of the event summarizing a test. |