skylab_test_runner: Add response message
BUG=chromium:1054850
TEST=./generate.sh
Change-Id: I781e319b5d046d6ab7cbc84fb96a655969b724f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2069285
Reviewed-by: Alex Zamorzaev <zamorzaev@chromium.org>
Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
diff --git a/descpb.bin b/descpb.bin
index 442b49a..c2c8db0 100644
--- a/descpb.bin
+++ b/descpb.bin
Binary files differ
diff --git a/go/test_platform/phosphorus/prejob.pb.go b/go/test_platform/phosphorus/prejob.pb.go
index 536d01a..ec42427 100644
--- a/go/test_platform/phosphorus/prejob.pb.go
+++ b/go/test_platform/phosphorus/prejob.pb.go
@@ -21,6 +21,50 @@
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
+// Values should be consistent with https://aip.dev/216
+type PrejobResponse_State int32
+
+const (
+ // Should not be used.
+ PrejobResponse_STATE_UNSPECIFIED PrejobResponse_State = 0
+ // The prejob succeeded.
+ //
+ // Some prejob failures may not be detectable during execution. These
+ // failures will be detected when parsing results off the prejob logs in a
+ // later step of test_runner.
+ PrejobResponse_SUCCEEDED PrejobResponse_State = 1
+ // The prejob failed.
+ PrejobResponse_FAILED PrejobResponse_State = 2
+ // The prejob hit the requested timeout.
+ PrejobResponse_TIMED_OUT PrejobResponse_State = 3
+ // The prejob was aborted externally.
+ PrejobResponse_ABORTED PrejobResponse_State = 4
+)
+
+var PrejobResponse_State_name = map[int32]string{
+ 0: "STATE_UNSPECIFIED",
+ 1: "SUCCEEDED",
+ 2: "FAILED",
+ 3: "TIMED_OUT",
+ 4: "ABORTED",
+}
+
+var PrejobResponse_State_value = map[string]int32{
+ "STATE_UNSPECIFIED": 0,
+ "SUCCEEDED": 1,
+ "FAILED": 2,
+ "TIMED_OUT": 3,
+ "ABORTED": 4,
+}
+
+func (x PrejobResponse_State) String() string {
+ return proto.EnumName(PrejobResponse_State_name, int32(x))
+}
+
+func (PrejobResponse_State) EnumDescriptor() ([]byte, []int) {
+ return fileDescriptor_5d406d24cdb4ff2a, []int{1, 0}
+}
+
// PrejobRequest defines the input of `phosphorus prejob`.
type PrejobRequest struct {
Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
@@ -109,11 +153,56 @@
return nil
}
+// PrejobResponse defines the output of `phosphorus prejob`.
+type PrejobResponse struct {
+ // `phosphorus prejob` exits with exit code 0 unless there is an
+ // infrastructure failure. When the exit code is 0, `state` indicates the
+ // best known state of the prejob execution (see comments on State enum).
+ State PrejobResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=test_platform.phosphorus.PrejobResponse_State" json:"state,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *PrejobResponse) Reset() { *m = PrejobResponse{} }
+func (m *PrejobResponse) String() string { return proto.CompactTextString(m) }
+func (*PrejobResponse) ProtoMessage() {}
+func (*PrejobResponse) Descriptor() ([]byte, []int) {
+ return fileDescriptor_5d406d24cdb4ff2a, []int{1}
+}
+
+func (m *PrejobResponse) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_PrejobResponse.Unmarshal(m, b)
+}
+func (m *PrejobResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_PrejobResponse.Marshal(b, m, deterministic)
+}
+func (m *PrejobResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_PrejobResponse.Merge(m, src)
+}
+func (m *PrejobResponse) XXX_Size() int {
+ return xxx_messageInfo_PrejobResponse.Size(m)
+}
+func (m *PrejobResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_PrejobResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_PrejobResponse proto.InternalMessageInfo
+
+func (m *PrejobResponse) GetState() PrejobResponse_State {
+ if m != nil {
+ return m.State
+ }
+ return PrejobResponse_STATE_UNSPECIFIED
+}
+
func init() {
+ proto.RegisterEnum("test_platform.phosphorus.PrejobResponse_State", PrejobResponse_State_name, PrejobResponse_State_value)
proto.RegisterType((*PrejobRequest)(nil), "test_platform.phosphorus.PrejobRequest")
proto.RegisterMapType((map[string]string)(nil), "test_platform.phosphorus.PrejobRequest.DesiredProvisionableLabelsEntry")
proto.RegisterMapType((map[string]string)(nil), "test_platform.phosphorus.PrejobRequest.ExistingProvisionableLabelsEntry")
proto.RegisterMapType((map[string]string)(nil), "test_platform.phosphorus.PrejobRequest.ProvisionableLabelsEntry")
+ proto.RegisterType((*PrejobResponse)(nil), "test_platform.phosphorus.PrejobResponse")
}
func init() {
@@ -121,31 +210,38 @@
}
var fileDescriptor_5d406d24cdb4ff2a = []byte{
- // 408 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x51, 0x6b, 0xd5, 0x30,
- 0x18, 0x86, 0xe9, 0x39, 0xee, 0xe0, 0x72, 0x14, 0x24, 0xee, 0xa2, 0x54, 0x65, 0x55, 0x10, 0xce,
- 0x55, 0x02, 0x13, 0x64, 0x78, 0x25, 0xc7, 0x4d, 0x77, 0xa1, 0x32, 0x8a, 0x57, 0xde, 0x94, 0xf4,
- 0xf4, 0x6b, 0x1b, 0x6d, 0xf2, 0xc5, 0x24, 0x9d, 0xee, 0x27, 0x08, 0xfe, 0x07, 0xff, 0xaa, 0x98,
- 0x9e, 0xaa, 0xc3, 0x85, 0x6d, 0x77, 0x4d, 0xfb, 0xf4, 0xfd, 0x1e, 0x92, 0x37, 0xe4, 0xa9, 0x07,
- 0xe7, 0x4b, 0xd3, 0x0b, 0xdf, 0xa0, 0x55, 0xdc, 0x74, 0xe8, 0x4c, 0x87, 0x76, 0x70, 0xdc, 0x58,
- 0xf8, 0x84, 0x15, 0x33, 0x16, 0x3d, 0xd2, 0xf4, 0x02, 0xc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19, 0x3c, 0x99, 0xba, 0x7d, 0x97, 0x79,
+ 0xb3, 0x8b, 0xe9, 0x84, 0x0d, 0xc7, 0xa3, 0x31, 0xb3, 0xf5, 0x07, 0xe4, 0x00, 0xf6, 0xa7, 0xb3,
+ 0xe1, 0x90, 0x31, 0x9b, 0xd9, 0xba, 0x46, 0x00, 0x9a, 0xa3, 0xfe, 0xf8, 0x8c, 0xd9, 0x7a, 0x6d,
+ 0x7d, 0xe4, 0x8e, 0xcf, 0x99, 0xed, 0x5d, 0xce, 0x5c, 0xbd, 0x4e, 0x5a, 0xf0, 0xb0, 0x3f, 0xb8,
+ 0x74, 0x5c, 0x66, 0xeb, 0x7b, 0x03, 0xfb, 0xe3, 0x20, 0x44, 0xba, 0x58, 0xe5, 0x98, 0x44, 0x45,
+ 0x42, 0x31, 0x0f, 0xad, 0x6d, 0x81, 0xc2, 0x8a, 0xd2, 0x65, 0xee, 0x97, 0xaf, 0x86, 0x15, 0xa2,
+ 0x55, 0xf5, 0x48, 0xcc, 0x9b, 0x4a, 0xf2, 0xe6, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x12, 0x53,
+ 0x4d, 0xf3, 0xa9, 0x04, 0x00, 0x00,
}
diff --git a/go/test_platform/phosphorus/runtest.pb.go b/go/test_platform/phosphorus/runtest.pb.go
index 9510853..a77b00c 100644
--- a/go/test_platform/phosphorus/runtest.pb.go
+++ b/go/test_platform/phosphorus/runtest.pb.go
@@ -21,6 +21,50 @@
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
+// Values should be consistent with https://aip.dev/216
+type RunTestResponse_State int32
+
+const (
+ // Should not be used.
+ RunTestResponse_STATE_UNSPECIFIED RunTestResponse_State = 0
+ // The test succeeded.
+ //
+ // Some test failures may not be detectable during execution. These
+ // failures will be detected when parsing results off the test logs in a
+ // later step of test_runner.
+ RunTestResponse_SUCCEEDED RunTestResponse_State = 1
+ // The test failed.
+ RunTestResponse_FAILED RunTestResponse_State = 2
+ // The test hit the requested timeout.
+ RunTestResponse_TIMED_OUT RunTestResponse_State = 3
+ // The test was aborted externally.
+ RunTestResponse_ABORTED RunTestResponse_State = 4
+)
+
+var RunTestResponse_State_name = map[int32]string{
+ 0: "STATE_UNSPECIFIED",
+ 1: "SUCCEEDED",
+ 2: "FAILED",
+ 3: "TIMED_OUT",
+ 4: "ABORTED",
+}
+
+var RunTestResponse_State_value = map[string]int32{
+ "STATE_UNSPECIFIED": 0,
+ "SUCCEEDED": 1,
+ "FAILED": 2,
+ "TIMED_OUT": 3,
+ "ABORTED": 4,
+}
+
+func (x RunTestResponse_State) String() string {
+ return proto.EnumName(RunTestResponse_State_name, int32(x))
+}
+
+func (RunTestResponse_State) EnumDescriptor() ([]byte, []int) {
+ return fileDescriptor_c8a06e1d821d63d9, []int{1, 0}
+}
+
// RunTestRequest defines the input of `phosphorus runtest`.
type RunTestRequest struct {
Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
@@ -245,11 +289,56 @@
return ""
}
+// RunTestResponse defines the output of `phosphorus runtest`.
+type RunTestResponse struct {
+ // `phosphorus runtest` exits with exit code 0 unless there is an
+ // infrastructure failure. When the exit code is 0, `state` indicates the
+ // best known state of the test execution (see comments on State enum).
+ State RunTestResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=test_platform.phosphorus.RunTestResponse_State" json:"state,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *RunTestResponse) Reset() { *m = RunTestResponse{} }
+func (m *RunTestResponse) String() string { return proto.CompactTextString(m) }
+func (*RunTestResponse) ProtoMessage() {}
+func (*RunTestResponse) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c8a06e1d821d63d9, []int{1}
+}
+
+func (m *RunTestResponse) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_RunTestResponse.Unmarshal(m, b)
+}
+func (m *RunTestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_RunTestResponse.Marshal(b, m, deterministic)
+}
+func (m *RunTestResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_RunTestResponse.Merge(m, src)
+}
+func (m *RunTestResponse) XXX_Size() int {
+ return xxx_messageInfo_RunTestResponse.Size(m)
+}
+func (m *RunTestResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_RunTestResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_RunTestResponse proto.InternalMessageInfo
+
+func (m *RunTestResponse) GetState() RunTestResponse_State {
+ if m != nil {
+ return m.State
+ }
+ return RunTestResponse_STATE_UNSPECIFIED
+}
+
func init() {
+ proto.RegisterEnum("test_platform.phosphorus.RunTestResponse_State", RunTestResponse_State_name, RunTestResponse_State_value)
proto.RegisterType((*RunTestRequest)(nil), "test_platform.phosphorus.RunTestRequest")
proto.RegisterType((*RunTestRequest_Autotest)(nil), "test_platform.phosphorus.RunTestRequest.Autotest")
proto.RegisterMapType((map[string]string)(nil), "test_platform.phosphorus.RunTestRequest.Autotest.KeyvalsEntry")
proto.RegisterType((*RunTestRequest_Environment)(nil), "test_platform.phosphorus.RunTestRequest.Environment")
+ proto.RegisterType((*RunTestResponse)(nil), "test_platform.phosphorus.RunTestResponse")
}
func init() {
@@ -257,36 +346,42 @@
}
var fileDescriptor_c8a06e1d821d63d9 = []byte{
- // 481 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xdd, 0x6a, 0xdb, 0x30,
- 0x18, 0x5d, 0xe2, 0x24, 0x73, 0xe4, 0xac, 0x6c, 0xda, 0x2e, 0x8c, 0x77, 0xb1, 0xec, 0x97, 0x5c,
- 0xc9, 0x2c, 0x1b, 0xa3, 0xf4, 0x62, 0x90, 0xb4, 0x85, 0xc2, 0x60, 0x05, 0x51, 0xc6, 0xd8, 0x8d,
-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0xef, 0xc3, 0xa1, 0xf3, 0x88, 0xc8,
+ 0x85, 0xd2, 0x9e, 0x6b, 0x19, 0x2e, 0xd4, 0xc7, 0x0b, 0x68, 0x98, 0x3b, 0x7a, 0x0a, 0x47, 0x73,
+ 0x7f, 0xe4, 0x7b, 0xc1, 0xe2, 0x72, 0xfe, 0xd5, 0x9b, 0x4c, 0xcf, 0xa7, 0x9e, 0xdb, 0xdb, 0x43,
+ 0x07, 0xd0, 0x9e, 0x2f, 0x26, 0x13, 0xcf, 0x73, 0x3d, 0xb7, 0x57, 0x41, 0x00, 0xcd, 0xf3, 0xd1,
+ 0xf4, 0xb3, 0xe7, 0xf6, 0xaa, 0x1a, 0xf2, 0xa7, 0x5f, 0x3c, 0x37, 0x98, 0x2d, 0xfc, 0x5e, 0x0d,
+ 0x75, 0x60, 0x7f, 0x34, 0x9e, 0x61, 0xdf, 0x73, 0x7b, 0xf5, 0xb1, 0xfb, 0x63, 0x1c, 0x73, 0x7b,
+ 0xb9, 0x16, 0x3c, 0xa5, 0x79, 0x6a, 0x73, 0x11, 0x3b, 0xe5, 0x85, 0x4b, 0x87, 0xb2, 0x95, 0x08,
+ 0x8b, 0x0f, 0xed, 0xc4, 0xdc, 0xd9, 0xf5, 0x7f, 0xaf, 0x9a, 0x86, 0xf2, 0xee, 0x6f, 0x00, 0x00,
+ 0x00, 0xff, 0xff, 0x18, 0xd5, 0x9d, 0x33, 0x45, 0x04, 0x00, 0x00,
}
diff --git a/src/test_platform/phosphorus/prejob.proto b/src/test_platform/phosphorus/prejob.proto
index cbc762c..a596b75 100644
--- a/src/test_platform/phosphorus/prejob.proto
+++ b/src/test_platform/phosphorus/prejob.proto
@@ -33,3 +33,28 @@
google.protobuf.Timestamp deadline = 6;
}
+// PrejobResponse defines the output of `phosphorus prejob`.
+message PrejobResponse {
+ // Values should be consistent with https://aip.dev/216
+ enum State {
+ // Should not be used.
+ STATE_UNSPECIFIED = 0;
+ // The prejob succeeded.
+ //
+ // Some prejob failures may not be detectable during execution. These
+ // failures will be detected when parsing results off the prejob logs in a
+ // later step of test_runner.
+ SUCCEEDED = 1;
+ // The prejob failed.
+ FAILED = 2;
+ // The prejob hit the requested timeout.
+ TIMED_OUT = 3;
+ // The prejob was aborted externally.
+ ABORTED = 4;
+ }
+
+ // `phosphorus prejob` exits with exit code 0 unless there is an
+ // infrastructure failure. When the exit code is 0, `state` indicates the
+ // best known state of the prejob execution (see comments on State enum).
+ State state = 1;
+}
diff --git a/src/test_platform/phosphorus/runtest.proto b/src/test_platform/phosphorus/runtest.proto
index 582212d..6661df8 100644
--- a/src/test_platform/phosphorus/runtest.proto
+++ b/src/test_platform/phosphorus/runtest.proto
@@ -57,3 +57,28 @@
google.protobuf.Timestamp deadline = 5;
}
+// RunTestResponse defines the output of `phosphorus runtest`.
+message RunTestResponse {
+ // Values should be consistent with https://aip.dev/216
+ enum State {
+ // Should not be used.
+ STATE_UNSPECIFIED = 0;
+ // The test succeeded.
+ //
+ // Some test failures may not be detectable during execution. These
+ // failures will be detected when parsing results off the test logs in a
+ // later step of test_runner.
+ SUCCEEDED = 1;
+ // The test failed.
+ FAILED = 2;
+ // The test hit the requested timeout.
+ TIMED_OUT = 3;
+ // The test was aborted externally.
+ ABORTED = 4;
+ }
+
+ // `phosphorus runtest` exits with exit code 0 unless there is an
+ // infrastructure failure. When the exit code is 0, `state` indicates the
+ // best known state of the test execution (see comments on State enum).
+ State state = 1;
+}
\ No newline at end of file