configured_target.proto 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // Copyright 2021 Google LLC
  2. //
  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
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  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.
  14. syntax = "proto3";
  15. package google.devtools.resultstore.v2;
  16. import "google/api/resource.proto";
  17. import "google/devtools/resultstore/v2/common.proto";
  18. import "google/devtools/resultstore/v2/file.proto";
  19. import "google/protobuf/duration.proto";
  20. option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "ConfiguredTargetProto";
  23. option java_package = "com.google.devtools.resultstore.v2";
  24. // Each ConfiguredTarget represents data for a given configuration of a given
  25. // target in a given Invocation.
  26. // Every ConfiguredTarget should have at least one Action as a child resource
  27. // before the invocation is finalized. Refer to the Action's documentation for
  28. // more info on this.
  29. message ConfiguredTarget {
  30. option (google.api.resource) = {
  31. type: "resultstore.googleapis.com/ConfiguredTarget"
  32. pattern: "invocations/{invocation}/targets/{target}/configuredTargets/{configured_target}"
  33. };
  34. // The resource ID components that identify the ConfiguredTarget.
  35. message Id {
  36. // The Invocation ID.
  37. string invocation_id = 1;
  38. // The Target ID.
  39. string target_id = 2;
  40. // The Configuration ID.
  41. string configuration_id = 3;
  42. }
  43. // The resource name. Its format must be:
  44. // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${url_encode(CONFIG_ID)}
  45. // where ${CONFIG_ID} must match the ID of an existing Configuration under
  46. // this Invocation.
  47. string name = 1;
  48. // The resource ID components that identify the ConfiguredTarget. They must
  49. // match the resource name after proper encoding.
  50. Id id = 2;
  51. // The aggregate status for this configuration of this target. If testing
  52. // was not requested, set this to the build status (e.g. BUILT or
  53. // FAILED_TO_BUILD).
  54. StatusAttributes status_attributes = 3;
  55. // Captures the start time and duration of this configured target.
  56. Timing timing = 4;
  57. // Test specific attributes for this ConfiguredTarget.
  58. ConfiguredTestAttributes test_attributes = 6;
  59. // Arbitrary name-value pairs.
  60. // This is implemented as a multi-map. Multiple properties are allowed with
  61. // the same key. Properties will be returned in lexicographical order by key.
  62. repeated Property properties = 7;
  63. // A list of file references for configured target level files.
  64. // The file IDs must be unique within this list. Duplicate file IDs will
  65. // result in an error. Files will be returned in lexicographical order by ID.
  66. repeated File files = 8;
  67. }
  68. // Attributes that apply only to test actions under this configured target.
  69. message ConfiguredTestAttributes {
  70. // Total number of test runs. For example, in bazel this is specified with
  71. // --runs_per_test. Zero if runs_per_test is not used.
  72. int32 total_run_count = 2;
  73. // Total number of test shards. Zero if shard count was not specified.
  74. int32 total_shard_count = 3;
  75. // How long test is allowed to run.
  76. google.protobuf.Duration timeout_duration = 5;
  77. }