diff --git a/api/stovepipe/proto/stovepipe.proto b/api/stovepipe/proto/stovepipe.proto index 6da7ead7..951f45d2 100644 --- a/api/stovepipe/proto/stovepipe.proto +++ b/api/stovepipe/proto/stovepipe.proto @@ -107,6 +107,52 @@ message GetRequestHistoryByURIResponse { repeated RequestHistory histories = 1; } +// GetProjectStatusByURIRequest selects the validation status for an exact commit URI. +message GetProjectStatusByURIRequest { + // Logical queue containing the validation request. + string queue = 1; + // Exact VCS-agnostic URI of the commit under validation. + string change_uri = 2; + // Required consumer-defined project IDs whose recorded results are requested. + repeated string projects = 3; + // Maximum projects to return when projects is empty. Zero selects the server default. + int32 page_size = 4; + // Opaque continuation token for full project-result pagination when projects is empty. + string page_token = 5; +} + +// ProjectValidation contains one reported project and its recorded result, if any. +message ProjectValidation { + // Stable consumer-defined project identifier. + string project = 1; + // Breakage degree on [0.0, 1.0]. Zero is green; absence means no result is recorded yet. + optional double breakage_degree = 2; +} + +// GetProjectStatusByURIResponse contains the selected validation's current projection. +message GetProjectStatusByURIResponse { + // Globally unique identifier of the validation request. + string request_id = 1; + // Logical queue containing the validation request. + string queue = 2; + // VCS-agnostic URI of the commit under validation. + string change_uri = 3; + // Baseline URI for incremental validation. Empty for a full build. + string base_uri = 4; + // Stable public lifecycle state of the validation request. + string request_state = 5; + // Unix millisecond timestamp of the newest durable lifecycle or result record. + int64 updated_at_ms = 10; + // Whole-repository breakage degree. Absent until the result is durable. + optional double repository_breakage_degree = 6; + // True after the implementation has durably finished producing relevant project results. + bool project_results_complete = 7; + // Recorded results for requested projects, or one full-result page when none are requested. + repeated ProjectValidation projects = 8; + // Opaque continuation token for another full-result page. Empty on the final page. + string next_page_token = 9; +} + // Stovepipe provides the Stovepipe API. service Stovepipe { // Ping returns a response indicating the service is alive @@ -118,4 +164,6 @@ service Stovepipe { rpc GetRequestHistoryByID(GetRequestHistoryByIDRequest) returns (GetRequestHistoryByIDResponse) {} // GetRequestHistoryByURI returns retained histories for an exact commit URI. rpc GetRequestHistoryByURI(GetRequestHistoryByURIRequest) returns (GetRequestHistoryByURIResponse) {} + // GetProjectStatusByURI returns the current validation status for an exact commit URI. + rpc GetProjectStatusByURI(GetProjectStatusByURIRequest) returns (GetProjectStatusByURIResponse) {} } diff --git a/api/stovepipe/protopb/stovepipe.pb.go b/api/stovepipe/protopb/stovepipe.pb.go index c7556c88..d6725600 100644 --- a/api/stovepipe/protopb/stovepipe.pb.go +++ b/api/stovepipe/protopb/stovepipe.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v5.29.3 // source: stovepipe.proto @@ -621,6 +621,270 @@ func (x *GetRequestHistoryByURIResponse) GetHistories() []*RequestHistory { return nil } +// GetProjectStatusByURIRequest selects the validation status for an exact commit URI. +type GetProjectStatusByURIRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Logical queue containing the validation request. + Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` + // Exact VCS-agnostic URI of the commit under validation. + ChangeUri string `protobuf:"bytes,2,opt,name=change_uri,json=changeUri,proto3" json:"change_uri,omitempty"` + // Required consumer-defined project IDs whose recorded results are requested. + Projects []string `protobuf:"bytes,3,rep,name=projects,proto3" json:"projects,omitempty"` + // Maximum projects to return when projects is empty. Zero selects the server default. + PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Opaque continuation token for full project-result pagination when projects is empty. + PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetProjectStatusByURIRequest) Reset() { + *x = GetProjectStatusByURIRequest{} + mi := &file_stovepipe_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetProjectStatusByURIRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectStatusByURIRequest) ProtoMessage() {} + +func (x *GetProjectStatusByURIRequest) ProtoReflect() protoreflect.Message { + mi := &file_stovepipe_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProjectStatusByURIRequest.ProtoReflect.Descriptor instead. +func (*GetProjectStatusByURIRequest) Descriptor() ([]byte, []int) { + return file_stovepipe_proto_rawDescGZIP(), []int{10} +} + +func (x *GetProjectStatusByURIRequest) GetQueue() string { + if x != nil { + return x.Queue + } + return "" +} + +func (x *GetProjectStatusByURIRequest) GetChangeUri() string { + if x != nil { + return x.ChangeUri + } + return "" +} + +func (x *GetProjectStatusByURIRequest) GetProjects() []string { + if x != nil { + return x.Projects + } + return nil +} + +func (x *GetProjectStatusByURIRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *GetProjectStatusByURIRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +// ProjectValidation contains one reported project and its recorded result, if any. +type ProjectValidation struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Stable consumer-defined project identifier. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Breakage degree on [0.0, 1.0]. Zero is green; absence means no result is recorded yet. + BreakageDegree *float64 `protobuf:"fixed64,2,opt,name=breakage_degree,json=breakageDegree,proto3,oneof" json:"breakage_degree,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ProjectValidation) Reset() { + *x = ProjectValidation{} + mi := &file_stovepipe_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ProjectValidation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectValidation) ProtoMessage() {} + +func (x *ProjectValidation) ProtoReflect() protoreflect.Message { + mi := &file_stovepipe_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectValidation.ProtoReflect.Descriptor instead. +func (*ProjectValidation) Descriptor() ([]byte, []int) { + return file_stovepipe_proto_rawDescGZIP(), []int{11} +} + +func (x *ProjectValidation) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *ProjectValidation) GetBreakageDegree() float64 { + if x != nil && x.BreakageDegree != nil { + return *x.BreakageDegree + } + return 0 +} + +// GetProjectStatusByURIResponse contains the selected validation's current projection. +type GetProjectStatusByURIResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Globally unique identifier of the validation request. + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Logical queue containing the validation request. + Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` + // VCS-agnostic URI of the commit under validation. + ChangeUri string `protobuf:"bytes,3,opt,name=change_uri,json=changeUri,proto3" json:"change_uri,omitempty"` + // Baseline URI for incremental validation. Empty for a full build. + BaseUri string `protobuf:"bytes,4,opt,name=base_uri,json=baseUri,proto3" json:"base_uri,omitempty"` + // Stable public lifecycle state of the validation request. + RequestState string `protobuf:"bytes,5,opt,name=request_state,json=requestState,proto3" json:"request_state,omitempty"` + // Unix millisecond timestamp of the newest durable lifecycle or result record. + UpdatedAtMs int64 `protobuf:"varint,10,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"` + // Whole-repository breakage degree. Absent until the result is durable. + RepositoryBreakageDegree *float64 `protobuf:"fixed64,6,opt,name=repository_breakage_degree,json=repositoryBreakageDegree,proto3,oneof" json:"repository_breakage_degree,omitempty"` + // True after the implementation has durably finished producing relevant project results. + ProjectResultsComplete bool `protobuf:"varint,7,opt,name=project_results_complete,json=projectResultsComplete,proto3" json:"project_results_complete,omitempty"` + // Recorded results for requested projects, or one full-result page when none are requested. + Projects []*ProjectValidation `protobuf:"bytes,8,rep,name=projects,proto3" json:"projects,omitempty"` + // Opaque continuation token for another full-result page. Empty on the final page. + NextPageToken string `protobuf:"bytes,9,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetProjectStatusByURIResponse) Reset() { + *x = GetProjectStatusByURIResponse{} + mi := &file_stovepipe_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetProjectStatusByURIResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectStatusByURIResponse) ProtoMessage() {} + +func (x *GetProjectStatusByURIResponse) ProtoReflect() protoreflect.Message { + mi := &file_stovepipe_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProjectStatusByURIResponse.ProtoReflect.Descriptor instead. +func (*GetProjectStatusByURIResponse) Descriptor() ([]byte, []int) { + return file_stovepipe_proto_rawDescGZIP(), []int{12} +} + +func (x *GetProjectStatusByURIResponse) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *GetProjectStatusByURIResponse) GetQueue() string { + if x != nil { + return x.Queue + } + return "" +} + +func (x *GetProjectStatusByURIResponse) GetChangeUri() string { + if x != nil { + return x.ChangeUri + } + return "" +} + +func (x *GetProjectStatusByURIResponse) GetBaseUri() string { + if x != nil { + return x.BaseUri + } + return "" +} + +func (x *GetProjectStatusByURIResponse) GetRequestState() string { + if x != nil { + return x.RequestState + } + return "" +} + +func (x *GetProjectStatusByURIResponse) GetUpdatedAtMs() int64 { + if x != nil { + return x.UpdatedAtMs + } + return 0 +} + +func (x *GetProjectStatusByURIResponse) GetRepositoryBreakageDegree() float64 { + if x != nil && x.RepositoryBreakageDegree != nil { + return *x.RepositoryBreakageDegree + } + return 0 +} + +func (x *GetProjectStatusByURIResponse) GetProjectResultsComplete() bool { + if x != nil { + return x.ProjectResultsComplete + } + return false +} + +func (x *GetProjectStatusByURIResponse) GetProjects() []*ProjectValidation { + if x != nil { + return x.Projects + } + return nil +} + +func (x *GetProjectStatusByURIResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + var File_stovepipe_proto protoreflect.FileDescriptor const file_stovepipe_proto_rawDesc = "" + @@ -659,12 +923,40 @@ const file_stovepipe_proto_rawDesc = "" + "\x1dGetRequestHistoryByIDResponse\x12@\n" + "\x06events\x18\x01 \x03(\v2(.uber.submitqueue.stovepipe.HistoryEventR\x06events\"j\n" + "\x1eGetRequestHistoryByURIResponse\x12H\n" + - "\thistories\x18\x01 \x03(\v2*.uber.submitqueue.stovepipe.RequestHistoryR\thistories2\xf0\x03\n" + + "\thistories\x18\x01 \x03(\v2*.uber.submitqueue.stovepipe.RequestHistoryR\thistories\"\xab\x01\n" + + "\x1cGetProjectStatusByURIRequest\x12\x14\n" + + "\x05queue\x18\x01 \x01(\tR\x05queue\x12\x1d\n" + + "\n" + + "change_uri\x18\x02 \x01(\tR\tchangeUri\x12\x1a\n" + + "\bprojects\x18\x03 \x03(\tR\bprojects\x12\x1b\n" + + "\tpage_size\x18\x04 \x01(\x05R\bpageSize\x12\x1d\n" + + "\n" + + "page_token\x18\x05 \x01(\tR\tpageToken\"o\n" + + "\x11ProjectValidation\x12\x18\n" + + "\aproject\x18\x01 \x01(\tR\aproject\x12,\n" + + "\x0fbreakage_degree\x18\x02 \x01(\x01H\x00R\x0ebreakageDegree\x88\x01\x01B\x12\n" + + "\x10_breakage_degree\"\xe6\x03\n" + + "\x1dGetProjectStatusByURIResponse\x12\x1d\n" + + "\n" + + "request_id\x18\x01 \x01(\tR\trequestId\x12\x14\n" + + "\x05queue\x18\x02 \x01(\tR\x05queue\x12\x1d\n" + + "\n" + + "change_uri\x18\x03 \x01(\tR\tchangeUri\x12\x19\n" + + "\bbase_uri\x18\x04 \x01(\tR\abaseUri\x12#\n" + + "\rrequest_state\x18\x05 \x01(\tR\frequestState\x12\"\n" + + "\rupdated_at_ms\x18\n" + + " \x01(\x03R\vupdatedAtMs\x12A\n" + + "\x1arepository_breakage_degree\x18\x06 \x01(\x01H\x00R\x18repositoryBreakageDegree\x88\x01\x01\x128\n" + + "\x18project_results_complete\x18\a \x01(\bR\x16projectResultsComplete\x12I\n" + + "\bprojects\x18\b \x03(\v2-.uber.submitqueue.stovepipe.ProjectValidationR\bprojects\x12&\n" + + "\x0fnext_page_token\x18\t \x01(\tR\rnextPageTokenB\x1d\n" + + "\x1b_repository_breakage_degree2\x81\x05\n" + "\tStovepipe\x12[\n" + "\x04Ping\x12'.uber.submitqueue.stovepipe.PingRequest\x1a(.uber.submitqueue.stovepipe.PingResponse\"\x00\x12a\n" + "\x06Ingest\x12).uber.submitqueue.stovepipe.IngestRequest\x1a*.uber.submitqueue.stovepipe.IngestResponse\"\x00\x12\x8e\x01\n" + "\x15GetRequestHistoryByID\x128.uber.submitqueue.stovepipe.GetRequestHistoryByIDRequest\x1a9.uber.submitqueue.stovepipe.GetRequestHistoryByIDResponse\"\x00\x12\x91\x01\n" + - "\x16GetRequestHistoryByURI\x129.uber.submitqueue.stovepipe.GetRequestHistoryByURIRequest\x1a:.uber.submitqueue.stovepipe.GetRequestHistoryByURIResponse\"\x00Be\n" + + "\x16GetRequestHistoryByURI\x129.uber.submitqueue.stovepipe.GetRequestHistoryByURIRequest\x1a:.uber.submitqueue.stovepipe.GetRequestHistoryByURIResponse\"\x00\x12\x8e\x01\n" + + "\x15GetProjectStatusByURI\x128.uber.submitqueue.stovepipe.GetProjectStatusByURIRequest\x1a9.uber.submitqueue.stovepipe.GetProjectStatusByURIResponse\"\x00Be\n" + "\x1ecom.uber.submitqueue.stovepipeB\x0eStovepipeProtoP\x01Z1github.com/uber/submitqueue/api/stovepipe/protopbb\x06proto3" var ( @@ -679,7 +971,7 @@ func file_stovepipe_proto_rawDescGZIP() []byte { return file_stovepipe_proto_rawDescData } -var file_stovepipe_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_stovepipe_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_stovepipe_proto_goTypes = []any{ (*PingRequest)(nil), // 0: uber.submitqueue.stovepipe.PingRequest (*PingResponse)(nil), // 1: uber.submitqueue.stovepipe.PingResponse @@ -691,24 +983,30 @@ var file_stovepipe_proto_goTypes = []any{ (*RequestHistory)(nil), // 7: uber.submitqueue.stovepipe.RequestHistory (*GetRequestHistoryByIDResponse)(nil), // 8: uber.submitqueue.stovepipe.GetRequestHistoryByIDResponse (*GetRequestHistoryByURIResponse)(nil), // 9: uber.submitqueue.stovepipe.GetRequestHistoryByURIResponse + (*GetProjectStatusByURIRequest)(nil), // 10: uber.submitqueue.stovepipe.GetProjectStatusByURIRequest + (*ProjectValidation)(nil), // 11: uber.submitqueue.stovepipe.ProjectValidation + (*GetProjectStatusByURIResponse)(nil), // 12: uber.submitqueue.stovepipe.GetProjectStatusByURIResponse } var file_stovepipe_proto_depIdxs = []int32{ - 6, // 0: uber.submitqueue.stovepipe.RequestHistory.events:type_name -> uber.submitqueue.stovepipe.HistoryEvent - 6, // 1: uber.submitqueue.stovepipe.GetRequestHistoryByIDResponse.events:type_name -> uber.submitqueue.stovepipe.HistoryEvent - 7, // 2: uber.submitqueue.stovepipe.GetRequestHistoryByURIResponse.histories:type_name -> uber.submitqueue.stovepipe.RequestHistory - 0, // 3: uber.submitqueue.stovepipe.Stovepipe.Ping:input_type -> uber.submitqueue.stovepipe.PingRequest - 2, // 4: uber.submitqueue.stovepipe.Stovepipe.Ingest:input_type -> uber.submitqueue.stovepipe.IngestRequest - 4, // 5: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByID:input_type -> uber.submitqueue.stovepipe.GetRequestHistoryByIDRequest - 5, // 6: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByURI:input_type -> uber.submitqueue.stovepipe.GetRequestHistoryByURIRequest - 1, // 7: uber.submitqueue.stovepipe.Stovepipe.Ping:output_type -> uber.submitqueue.stovepipe.PingResponse - 3, // 8: uber.submitqueue.stovepipe.Stovepipe.Ingest:output_type -> uber.submitqueue.stovepipe.IngestResponse - 8, // 9: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByID:output_type -> uber.submitqueue.stovepipe.GetRequestHistoryByIDResponse - 9, // 10: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByURI:output_type -> uber.submitqueue.stovepipe.GetRequestHistoryByURIResponse - 7, // [7:11] is the sub-list for method output_type - 3, // [3:7] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 6, // 0: uber.submitqueue.stovepipe.RequestHistory.events:type_name -> uber.submitqueue.stovepipe.HistoryEvent + 6, // 1: uber.submitqueue.stovepipe.GetRequestHistoryByIDResponse.events:type_name -> uber.submitqueue.stovepipe.HistoryEvent + 7, // 2: uber.submitqueue.stovepipe.GetRequestHistoryByURIResponse.histories:type_name -> uber.submitqueue.stovepipe.RequestHistory + 11, // 3: uber.submitqueue.stovepipe.GetProjectStatusByURIResponse.projects:type_name -> uber.submitqueue.stovepipe.ProjectValidation + 0, // 4: uber.submitqueue.stovepipe.Stovepipe.Ping:input_type -> uber.submitqueue.stovepipe.PingRequest + 2, // 5: uber.submitqueue.stovepipe.Stovepipe.Ingest:input_type -> uber.submitqueue.stovepipe.IngestRequest + 4, // 6: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByID:input_type -> uber.submitqueue.stovepipe.GetRequestHistoryByIDRequest + 5, // 7: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByURI:input_type -> uber.submitqueue.stovepipe.GetRequestHistoryByURIRequest + 10, // 8: uber.submitqueue.stovepipe.Stovepipe.GetProjectStatusByURI:input_type -> uber.submitqueue.stovepipe.GetProjectStatusByURIRequest + 1, // 9: uber.submitqueue.stovepipe.Stovepipe.Ping:output_type -> uber.submitqueue.stovepipe.PingResponse + 3, // 10: uber.submitqueue.stovepipe.Stovepipe.Ingest:output_type -> uber.submitqueue.stovepipe.IngestResponse + 8, // 11: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByID:output_type -> uber.submitqueue.stovepipe.GetRequestHistoryByIDResponse + 9, // 12: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByURI:output_type -> uber.submitqueue.stovepipe.GetRequestHistoryByURIResponse + 12, // 13: uber.submitqueue.stovepipe.Stovepipe.GetProjectStatusByURI:output_type -> uber.submitqueue.stovepipe.GetProjectStatusByURIResponse + 9, // [9:14] is the sub-list for method output_type + 4, // [4:9] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_stovepipe_proto_init() } @@ -720,13 +1018,15 @@ func file_stovepipe_proto_init() { (*HistoryEvent_RequestState)(nil), (*HistoryEvent_Event)(nil), } + file_stovepipe_proto_msgTypes[11].OneofWrappers = []any{} + file_stovepipe_proto_msgTypes[12].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_stovepipe_proto_rawDesc), len(file_stovepipe_proto_rawDesc)), NumEnums: 0, - NumMessages: 10, + NumMessages: 13, NumExtensions: 0, NumServices: 1, }, diff --git a/api/stovepipe/protopb/stovepipe.pb.yarpc.go b/api/stovepipe/protopb/stovepipe.pb.yarpc.go index 6fc49d53..351649b4 100644 --- a/api/stovepipe/protopb/stovepipe.pb.yarpc.go +++ b/api/stovepipe/protopb/stovepipe.pb.yarpc.go @@ -25,6 +25,7 @@ type StovepipeYARPCClient interface { Ingest(context.Context, *IngestRequest, ...yarpc.CallOption) (*IngestResponse, error) GetRequestHistoryByID(context.Context, *GetRequestHistoryByIDRequest, ...yarpc.CallOption) (*GetRequestHistoryByIDResponse, error) GetRequestHistoryByURI(context.Context, *GetRequestHistoryByURIRequest, ...yarpc.CallOption) (*GetRequestHistoryByURIResponse, error) + GetProjectStatusByURI(context.Context, *GetProjectStatusByURIRequest, ...yarpc.CallOption) (*GetProjectStatusByURIResponse, error) } func newStovepipeYARPCClient(clientConfig transport.ClientConfig, anyResolver v2.AnyResolver, options ...v2.ClientOption) StovepipeYARPCClient { @@ -49,6 +50,7 @@ type StovepipeYARPCServer interface { Ingest(context.Context, *IngestRequest) (*IngestResponse, error) GetRequestHistoryByID(context.Context, *GetRequestHistoryByIDRequest) (*GetRequestHistoryByIDResponse, error) GetRequestHistoryByURI(context.Context, *GetRequestHistoryByURIRequest) (*GetRequestHistoryByURIResponse, error) + GetProjectStatusByURI(context.Context, *GetProjectStatusByURIRequest) (*GetProjectStatusByURIResponse, error) } type buildStovepipeYARPCProceduresParams struct { @@ -102,6 +104,16 @@ func buildStovepipeYARPCProcedures(params buildStovepipeYARPCProceduresParams) [ }, ), }, + { + MethodName: "GetProjectStatusByURI", + Handler: v2.NewUnaryHandler( + v2.UnaryHandlerParams{ + Handle: handler.GetProjectStatusByURI, + NewRequest: newStovepipeServiceGetProjectStatusByURIYARPCRequest, + AnyResolver: params.AnyResolver, + }, + ), + }, }, OnewayHandlerParams: []v2.BuildProceduresOnewayHandlerParams{}, StreamHandlerParams: []v2.BuildProceduresStreamHandlerParams{}, @@ -262,6 +274,18 @@ func (c *_StovepipeYARPCCaller) GetRequestHistoryByURI(ctx context.Context, requ return response, err } +func (c *_StovepipeYARPCCaller) GetProjectStatusByURI(ctx context.Context, request *GetProjectStatusByURIRequest, options ...yarpc.CallOption) (*GetProjectStatusByURIResponse, error) { + responseMessage, err := c.streamClient.Call(ctx, "GetProjectStatusByURI", request, newStovepipeServiceGetProjectStatusByURIYARPCResponse, options...) + if responseMessage == nil { + return nil, err + } + response, ok := responseMessage.(*GetProjectStatusByURIResponse) + if !ok { + return nil, v2.CastError(emptyStovepipeServiceGetProjectStatusByURIYARPCResponse, responseMessage) + } + return response, err +} + type _StovepipeYARPCHandler struct { server StovepipeYARPCServer } @@ -330,6 +354,22 @@ func (h *_StovepipeYARPCHandler) GetRequestHistoryByURI(ctx context.Context, req return response, err } +func (h *_StovepipeYARPCHandler) GetProjectStatusByURI(ctx context.Context, requestMessage proto.Message) (proto.Message, error) { + var request *GetProjectStatusByURIRequest + var ok bool + if requestMessage != nil { + request, ok = requestMessage.(*GetProjectStatusByURIRequest) + if !ok { + return nil, v2.CastError(emptyStovepipeServiceGetProjectStatusByURIYARPCRequest, requestMessage) + } + } + response, err := h.server.GetProjectStatusByURI(ctx, request) + if response == nil { + return nil, err + } + return response, err +} + func newStovepipeServicePingYARPCRequest() proto.Message { return &PingRequest{} } @@ -362,6 +402,14 @@ func newStovepipeServiceGetRequestHistoryByURIYARPCResponse() proto.Message { return &GetRequestHistoryByURIResponse{} } +func newStovepipeServiceGetProjectStatusByURIYARPCRequest() proto.Message { + return &GetProjectStatusByURIRequest{} +} + +func newStovepipeServiceGetProjectStatusByURIYARPCResponse() proto.Message { + return &GetProjectStatusByURIResponse{} +} + var ( emptyStovepipeServicePingYARPCRequest = &PingRequest{} emptyStovepipeServicePingYARPCResponse = &PingResponse{} @@ -371,47 +419,69 @@ var ( emptyStovepipeServiceGetRequestHistoryByIDYARPCResponse = &GetRequestHistoryByIDResponse{} emptyStovepipeServiceGetRequestHistoryByURIYARPCRequest = &GetRequestHistoryByURIRequest{} emptyStovepipeServiceGetRequestHistoryByURIYARPCResponse = &GetRequestHistoryByURIResponse{} + emptyStovepipeServiceGetProjectStatusByURIYARPCRequest = &GetProjectStatusByURIRequest{} + emptyStovepipeServiceGetProjectStatusByURIYARPCResponse = &GetProjectStatusByURIResponse{} ) var yarpcFileDescriptorClosurefabdb6b3c0b09022 = [][]byte{ // stovepipe.proto []byte{ - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x5d, 0x8f, 0xd2, 0x40, - 0x14, 0xa5, 0x74, 0x61, 0xb7, 0x97, 0x0f, 0xcd, 0x44, 0x37, 0xd8, 0xec, 0x6e, 0xb0, 0x09, 0x59, - 0xdc, 0x87, 0x12, 0xd7, 0x17, 0xf5, 0xc9, 0x10, 0xcd, 0xc2, 0x83, 0x86, 0x94, 0xf8, 0xa2, 0x0f, - 0xa4, 0xb4, 0x37, 0x30, 0x26, 0xed, 0x94, 0xce, 0x94, 0x64, 0x7f, 0x80, 0xaf, 0x26, 0xfe, 0x23, - 0x7f, 0x92, 0x3f, 0xc1, 0x74, 0x3a, 0x2d, 0xb0, 0x81, 0xaa, 0xbc, 0xcd, 0x1c, 0xce, 0x39, 0xf7, - 0xce, 0x99, 0xb9, 0x14, 0x1e, 0x71, 0xc1, 0xd6, 0x18, 0xd1, 0x08, 0xed, 0x28, 0x66, 0x82, 0x11, - 0x33, 0x99, 0x63, 0x6c, 0xf3, 0x64, 0x1e, 0x50, 0xb1, 0x4a, 0x30, 0x41, 0xbb, 0x60, 0x58, 0xd7, - 0xd0, 0x98, 0xd0, 0x70, 0xe1, 0xe0, 0x2a, 0x41, 0x2e, 0x48, 0x07, 0x4e, 0x03, 0xe4, 0xdc, 0x5d, - 0x60, 0x47, 0xeb, 0x6a, 0x7d, 0xc3, 0xc9, 0xb7, 0xd6, 0x77, 0x0d, 0x9a, 0x19, 0x93, 0x47, 0x2c, - 0xe4, 0x78, 0x98, 0x4a, 0x9e, 0x43, 0x93, 0x63, 0xbc, 0xa6, 0x1e, 0xce, 0x42, 0x37, 0xc0, 0x4e, - 0x55, 0xfe, 0xdc, 0x50, 0xd8, 0x27, 0x37, 0x40, 0x72, 0x01, 0x86, 0xa0, 0x01, 0x72, 0xe1, 0x06, - 0x51, 0x47, 0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x15, 0x0e, 0xb6, - 0x84, 0x03, 0x37, 0xa2, 0x83, 0x42, 0x3c, 0x90, 0x1f, 0x84, 0x68, 0x3e, 0xaf, 0xcb, 0xc5, 0xab, - 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x29, 0x24, 0x96, 0x5e, 0x2c, 0x06, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4d, 0x73, 0xdb, 0x44, + 0x18, 0xb6, 0xe2, 0x3a, 0xb6, 0xde, 0x38, 0x4e, 0xd9, 0x81, 0x8c, 0xea, 0xd6, 0x9d, 0x20, 0x26, + 0xd4, 0x74, 0xc0, 0x1e, 0xca, 0xa5, 0x70, 0xa2, 0xa6, 0x4c, 0xed, 0x43, 0x19, 0x8f, 0x42, 0x39, + 0xc0, 0x41, 0xb3, 0x96, 0xde, 0x71, 0xb6, 0x8d, 0xb4, 0x8a, 0x76, 0x95, 0xa1, 0xbd, 0x71, 0x60, + 0xa6, 0x27, 0x66, 0xf8, 0x3b, 0x9c, 0xf8, 0x35, 0xfc, 0x0e, 0x66, 0x3f, 0x24, 0x27, 0xae, 0xad, + 0xb4, 0xb9, 0x69, 0x9f, 0xf7, 0x73, 0x9f, 0x7d, 0xf6, 0x5d, 0xc1, 0x81, 0x90, 0xfc, 0x02, 0x33, + 0x96, 0xe1, 0x28, 0xcb, 0xb9, 0xe4, 0xa4, 0x5f, 0x2c, 0x30, 0x1f, 0x89, 0x62, 0x91, 0x30, 0x79, + 0x5e, 0x60, 0x81, 0xa3, 0xca, 0xc3, 0x7f, 0x00, 0x7b, 0x73, 0x96, 0x2e, 0x03, 0x3c, 0x2f, 0x50, + 0x48, 0xe2, 0x41, 0x3b, 0x41, 0x21, 0xe8, 0x12, 0x3d, 0xe7, 0xc8, 0x19, 0xba, 0x41, 0xb9, 0xf4, + 0xff, 0x74, 0xa0, 0x6b, 0x3c, 0x45, 0xc6, 0x53, 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xff, 0xac, + 0xda, 0x1e, 0xfe, 0xd4, 0x09, 0x00, 0x00, }, } diff --git a/api/stovepipe/protopb/stovepipe_grpc.pb.go b/api/stovepipe/protopb/stovepipe_grpc.pb.go index 3387135f..1ceefa4c 100644 --- a/api/stovepipe/protopb/stovepipe_grpc.pb.go +++ b/api/stovepipe/protopb/stovepipe_grpc.pb.go @@ -38,6 +38,7 @@ const ( Stovepipe_Ingest_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/Ingest" Stovepipe_GetRequestHistoryByID_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/GetRequestHistoryByID" Stovepipe_GetRequestHistoryByURI_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/GetRequestHistoryByURI" + Stovepipe_GetProjectStatusByURI_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/GetProjectStatusByURI" ) // StovepipeClient is the client API for Stovepipe service. @@ -55,6 +56,8 @@ type StovepipeClient interface { GetRequestHistoryByID(ctx context.Context, in *GetRequestHistoryByIDRequest, opts ...grpc.CallOption) (*GetRequestHistoryByIDResponse, error) // GetRequestHistoryByURI returns retained histories for an exact commit URI. GetRequestHistoryByURI(ctx context.Context, in *GetRequestHistoryByURIRequest, opts ...grpc.CallOption) (*GetRequestHistoryByURIResponse, error) + // GetProjectStatusByURI returns the current validation status for an exact commit URI. + GetProjectStatusByURI(ctx context.Context, in *GetProjectStatusByURIRequest, opts ...grpc.CallOption) (*GetProjectStatusByURIResponse, error) } type stovepipeClient struct { @@ -105,6 +108,16 @@ func (c *stovepipeClient) GetRequestHistoryByURI(ctx context.Context, in *GetReq return out, nil } +func (c *stovepipeClient) GetProjectStatusByURI(ctx context.Context, in *GetProjectStatusByURIRequest, opts ...grpc.CallOption) (*GetProjectStatusByURIResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetProjectStatusByURIResponse) + err := c.cc.Invoke(ctx, Stovepipe_GetProjectStatusByURI_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + // StovepipeServer is the server API for Stovepipe service. // All implementations must embed UnimplementedStovepipeServer // for forward compatibility. @@ -120,6 +133,8 @@ type StovepipeServer interface { GetRequestHistoryByID(context.Context, *GetRequestHistoryByIDRequest) (*GetRequestHistoryByIDResponse, error) // GetRequestHistoryByURI returns retained histories for an exact commit URI. GetRequestHistoryByURI(context.Context, *GetRequestHistoryByURIRequest) (*GetRequestHistoryByURIResponse, error) + // GetProjectStatusByURI returns the current validation status for an exact commit URI. + GetProjectStatusByURI(context.Context, *GetProjectStatusByURIRequest) (*GetProjectStatusByURIResponse, error) mustEmbedUnimplementedStovepipeServer() } @@ -142,6 +157,9 @@ func (UnimplementedStovepipeServer) GetRequestHistoryByID(context.Context, *GetR func (UnimplementedStovepipeServer) GetRequestHistoryByURI(context.Context, *GetRequestHistoryByURIRequest) (*GetRequestHistoryByURIResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRequestHistoryByURI not implemented") } +func (UnimplementedStovepipeServer) GetProjectStatusByURI(context.Context, *GetProjectStatusByURIRequest) (*GetProjectStatusByURIResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectStatusByURI not implemented") +} func (UnimplementedStovepipeServer) mustEmbedUnimplementedStovepipeServer() {} func (UnimplementedStovepipeServer) testEmbeddedByValue() {} @@ -235,6 +253,24 @@ func _Stovepipe_GetRequestHistoryByURI_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } +func _Stovepipe_GetProjectStatusByURI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectStatusByURIRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StovepipeServer).GetProjectStatusByURI(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Stovepipe_GetProjectStatusByURI_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StovepipeServer).GetProjectStatusByURI(ctx, req.(*GetProjectStatusByURIRequest)) + } + return interceptor(ctx, in, info, handler) +} + // Stovepipe_ServiceDesc is the grpc.ServiceDesc for Stovepipe service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -258,6 +294,10 @@ var Stovepipe_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetRequestHistoryByURI", Handler: _Stovepipe_GetRequestHistoryByURI_Handler, }, + { + MethodName: "GetProjectStatusByURI", + Handler: _Stovepipe_GetProjectStatusByURI_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "stovepipe.proto",