Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,189 changes: 605 additions & 584 deletions go/gen/sift/test_reports/v1/test_reports.pb.go

Large diffs are not rendered by default.

180 changes: 180 additions & 0 deletions go/gen/sift/test_reports/v1/test_reports_vtproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions protos/sift/test_reports/v1/test_reports.proto
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ message TestReport {

// Whether the test run is archived (externally exposed)
bool is_archived = 13 [(google.api.field_behavior) = OPTIONAL];

// The run ID for the test run
string run_id = 14 [(google.api.field_behavior) = OPTIONAL];
}

enum TestStatus {
Expand Down Expand Up @@ -378,6 +381,9 @@ message CreateTestReportRequest {

// Unique identifier for user owner
string system_operator = 10 [(google.api.field_behavior) = OPTIONAL];

// The run ID for the test report
string run_id = 11 [(google.api.field_behavior) = OPTIONAL];
}

// Response message for CreateTestReport
Expand Down Expand Up @@ -415,7 +421,7 @@ message ListTestReportsRequest {
// A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string.
// Available fields to filter by are `test_report_id`, `status`, `name`, `test_system_name`,
// `test_case`, `start_time`, `end_time`, `serial_number`, `created_by_user_id`, `modified_by_user_id`,
// `part_number`, `system_operator`, `archived_date`, and `metadata`.
// `part_number`, `system_operator`, `run_id`, `archived_date`, and `metadata`.
// Metadata can be used in filters by using `metadata.{metadata_key_name}` as the field name.
// For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions).
// For more information about the fields used for filtering, please refer to [this definition](/docs/api/grpc/protocol-buffers/test-results#testreport). Optional.
Expand Down Expand Up @@ -446,7 +452,7 @@ message UpdateTestReportRequest {

// The field mask specifying which fields to update. The fields available to be updated are
// `status`, `name`, `test_system_name`, `test_case`, `start_time`, `end_time`, `serial_number`,
// `part_number`, `system_operator`, and `is_archived`.
// `part_number`, `system_operator`, `run_id`, and `is_archived`.
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL];
}

Expand Down
180 changes: 92 additions & 88 deletions python/lib/sift/test_reports/v1/test_reports_pb2.py

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions python/lib/sift/test_reports/v1/test_reports_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class TestReport(google.protobuf.message.Message):
SYSTEM_OPERATOR_FIELD_NUMBER: builtins.int
ARCHIVED_DATE_FIELD_NUMBER: builtins.int
IS_ARCHIVED_FIELD_NUMBER: builtins.int
RUN_ID_FIELD_NUMBER: builtins.int
test_report_id: builtins.str
"""Unique identifier for the run"""
status: global___TestStatus.ValueType
Expand All @@ -137,6 +138,8 @@ class TestReport(google.protobuf.message.Message):
"""Unique identifier for user owner"""
is_archived: builtins.bool
"""Whether the test run is archived (externally exposed)"""
run_id: builtins.str
"""The run ID for the test run"""
@property
def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""The start time of the test run"""
Expand Down Expand Up @@ -169,9 +172,10 @@ class TestReport(google.protobuf.message.Message):
system_operator: builtins.str = ...,
archived_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
is_archived: builtins.bool = ...,
run_id: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["archived_date", b"archived_date", "end_time", b"end_time", "start_time", b"start_time"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["archived_date", b"archived_date", "end_time", b"end_time", "is_archived", b"is_archived", "metadata", b"metadata", "name", b"name", "part_number", b"part_number", "serial_number", b"serial_number", "start_time", b"start_time", "status", b"status", "system_operator", b"system_operator", "test_case", b"test_case", "test_report_id", b"test_report_id", "test_system_name", b"test_system_name"]) -> None: ...
def ClearField(self, field_name: typing.Literal["archived_date", b"archived_date", "end_time", b"end_time", "is_archived", b"is_archived", "metadata", b"metadata", "name", b"name", "part_number", b"part_number", "run_id", b"run_id", "serial_number", b"serial_number", "start_time", b"start_time", "status", b"status", "system_operator", b"system_operator", "test_case", b"test_case", "test_report_id", b"test_report_id", "test_system_name", b"test_system_name"]) -> None: ...

global___TestReport = TestReport

Expand Down Expand Up @@ -409,6 +413,7 @@ class CreateTestReportRequest(google.protobuf.message.Message):
SERIAL_NUMBER_FIELD_NUMBER: builtins.int
PART_NUMBER_FIELD_NUMBER: builtins.int
SYSTEM_OPERATOR_FIELD_NUMBER: builtins.int
RUN_ID_FIELD_NUMBER: builtins.int
status: global___TestStatus.ValueType
"""The status of the test run"""
name: builtins.str
Expand All @@ -423,6 +428,8 @@ class CreateTestReportRequest(google.protobuf.message.Message):
"""The part number for the DUT"""
system_operator: builtins.str
"""Unique identifier for user owner"""
run_id: builtins.str
"""The run ID for the test report"""
@property
def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""The start time of the test run"""
Expand All @@ -448,9 +455,10 @@ class CreateTestReportRequest(google.protobuf.message.Message):
serial_number: builtins.str = ...,
part_number: builtins.str = ...,
system_operator: builtins.str = ...,
run_id: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["end_time", b"end_time", "start_time", b"start_time"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["end_time", b"end_time", "metadata", b"metadata", "name", b"name", "part_number", b"part_number", "serial_number", b"serial_number", "start_time", b"start_time", "status", b"status", "system_operator", b"system_operator", "test_case", b"test_case", "test_system_name", b"test_system_name"]) -> None: ...
def ClearField(self, field_name: typing.Literal["end_time", b"end_time", "metadata", b"metadata", "name", b"name", "part_number", b"part_number", "run_id", b"run_id", "serial_number", b"serial_number", "start_time", b"start_time", "status", b"status", "system_operator", b"system_operator", "test_case", b"test_case", "test_system_name", b"test_system_name"]) -> None: ...

global___CreateTestReportRequest = CreateTestReportRequest

Expand Down Expand Up @@ -540,7 +548,7 @@ class ListTestReportsRequest(google.protobuf.message.Message):
"""A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string.
Available fields to filter by are `test_report_id`, `status`, `name`, `test_system_name`,
`test_case`, `start_time`, `end_time`, `serial_number`, `created_by_user_id`, `modified_by_user_id`,
`part_number`, `system_operator`, `archived_date`, and `metadata`.
`part_number`, `system_operator`, `run_id`, `archived_date`, and `metadata`.
Metadata can be used in filters by using `metadata.{metadata_key_name}` as the field name.
For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions).
For more information about the fields used for filtering, please refer to [this definition](/docs/api/grpc/protocol-buffers/test-results#testreport). Optional.
Expand Down Expand Up @@ -605,7 +613,7 @@ class UpdateTestReportRequest(google.protobuf.message.Message):
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
"""The field mask specifying which fields to update. The fields available to be updated are
`status`, `name`, `test_system_name`, `test_case`, `start_time`, `end_time`, `serial_number`,
`part_number`, `system_operator`, and `is_archived`.
`part_number`, `system_operator`, `run_id`, and `is_archived`.
"""

def __init__(
Expand Down
Loading
Loading