1 // Copyright 2018 Google LLC.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
18 package google.devtools.resultstore.v2;
20 import "google/protobuf/duration.proto";
21 import "google/protobuf/timestamp.proto";
23 option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore";
24 option java_multiple_files = true;
25 option java_package = "com.google.devtools.resultstore.v2";
27 // Describes the status of a resource in both enum and string form.
28 // Only use description when conveying additional info not captured in the enum
30 message StatusAttributes {
31 // Enum representation of the status.
34 // A longer description about the status.
35 string description = 2;
38 // A generic key-value property definition.
47 // The timing of a particular Invocation, Action, etc. The start_time is
48 // specified, stop time can be calculated by adding duration to start_time.
50 // The time the resource started running. This is in UTC Epoch time.
51 google.protobuf.Timestamp start_time = 1;
53 // The duration for which the resource ran.
54 google.protobuf.Duration duration = 2;
57 // Represents a dependency of a resource on another resource. This can be used
58 // to define a graph or a workflow paradigm through resources.
60 // The resource depended upon. It may be a Target, ConfiguredTarget, or
63 // The name of a target. Its format must be:
64 // invocations/${INVOCATION_ID}/targets/${TARGET_ID}
65 // This must point to an target under the same invocation.
68 // The name of a configured target. Its format must be:
69 // invocations/${INVOCATION_ID}/targets/${TARGET_ID}/configuredTargets/${CONFIG_ID}
70 // This must point to an configured target under the same invocation.
71 string configured_target = 2;
73 // The name of an action. Its format must be:
74 // invocations/${INVOCATION_ID}/targets/${TARGET_ID}/configuredTargets/${CONFIG_ID}/actions/${ACTION_ID}
75 // This must point to an action under the same invocation.
79 // A label describing this dependency.
80 // The label "Root Cause" is handled specially. It is used to point to the
81 // exact resource that caused a resource to fail.
85 // These correspond to the prefix of the rule name. Eg cc_test has language CC.
87 // Language unspecified or not listed here.
88 LANGUAGE_UNSPECIFIED = 0;
90 // Not related to any particular language
96 // ActionScript (Flash)
102 // Cascading-Style-Sheets
111 // Google-Web-Toolkit
132 // Shell (Typically Bash)
151 // Status of a resource.
153 // The implicit default enum value. Should never be set.
154 STATUS_UNSPECIFIED = 0;
156 // Displays as "Building". Means the target is compiling, linking, etc.
159 // Displays as "Built". Means the target was built successfully.
160 // If testing was requested, it should never reach this status: it should go
161 // straight from BUILDING to TESTING.
164 // Displays as "Broken". Means build failure such as compile error.
167 // Displays as "Testing". Means the test is running.
170 // Displays as "Passed". Means the test was run and passed.
173 // Displays as "Failed". Means the test was run and failed.
176 // Displays as "Timed out". Means the test didn't finish in time.
179 // Displays as "Cancelled". Means the build or test was cancelled.
180 // E.g. User hit control-C.
183 // Displays as "Tool Failed". Means the build or test had internal tool
187 // Displays as "Incomplete". Means the build or test did not complete. This
188 // might happen when a build breakage or test failure causes the tool to stop
189 // trying to build anything more or run any more tests, with the default
190 // bazel --nokeep_going option or the --notest_keep_going option.
193 // Displays as "Flaky". Means the aggregate status contains some runs that
194 // were successful, and some that were not.
197 // Displays as "Unknown". Means the tool uploading to the server died
198 // mid-upload or does not know the state.
201 // Displays as "Skipped". Means building and testing were skipped.
202 // (E.g. Restricted to a different configuration.)