-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutput.proto
54 lines (46 loc) · 1.69 KB
/
output.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
syntax = "proto3";
package com.gette.debugger;
option java_package = "com.gette.debugger";
option java_outer_classname = "Protos";
// Message that stores digests of the inputs with the same name
// across executions but different hashes.
// Based on [Digest][com.google.devtools.build.lib.exec.Digest]
message ExecutionInputs {
// Path of an input file
string path = 1;
// Digest of an input during previous execution.
string a_hash = 2;
// Digest of an input during current execution
string b_hash = 3;
}
// Message that stores environment variable name and values
// of both previous and current executions
// Based on [EnvironmentVariable][com.google.devtools.build.lib.exec.EnvironmentVariable]
message ExecutionEnvironmentVariables {
// Name of environment variable passed along to an execution
string name = 1;
// Value of environment variable passed during previous execution
string a_value = 2;
// Value of environment variable passed during current execution
string b_value = 3;
}
// If listed outputs produced during both executions
// but inputs or environment variables are different
// the difference will be stored in this message
// See [SpawnExec][com.google.devtools.build.lib.exec.SpawnExec]
message MergedSpawnExec {
// Calculated using SHA-256 and list listed_outputs
// transformed into a string
string execution_hash = 1;
// Outputs that should be produced
// by the execution
repeated string listed_outputs = 2;
repeated ExecutionEnvironmentVariables env_vars = 3;
repeated ExecutionInputs inputs = 4;
}
message Report {
repeated MergedSpawnExec merged_spawn_execs = 1;
int32 total_executions = 2;
int32 cache_hits = 3;
float cache_hit_rate = 4;
}