diff --git a/api/stovepipe/proto/stovepipe.proto b/api/stovepipe/proto/stovepipe.proto index a998223bc..f34e15add 100644 --- a/api/stovepipe/proto/stovepipe.proto +++ b/api/stovepipe/proto/stovepipe.proto @@ -425,6 +425,61 @@ message ListOpenIssuesResponse { string next_page_token = 2; } +// IssueHistoryEvent is one immutable retained occurrence across requests. +message IssueHistoryEvent { + // "open" (including reopenings), "reported", or "closed". + string event = 1; + // Opaque source build identity. + string build_id = 2; + // Original occurrence timestamp in Unix milliseconds, not request ingest order. + int64 timestamp_ms = 3; + // Opening build for this occurrence; empty on legacy lifecycle records. + string first_seen_build_id = 4; + // Source request from the acceptance mapping; source-build retention is not required. + string request_id = 5; + // Validation task that identifies the issue. + string task_id = 6; + // Validation unit; empty identifies a task-wide issue. + string unit_id = 7; +} + +message ListIssueHistoryRequest { + // Required configured queue. + string queue = 1; + // Optional validation task. Empty selects all issues in the queue and requires an empty unit_id. + string task_id = 2; + // Exact validation unit when task_id is supplied; empty selects that task's task-wide issue. + string unit_id = 3; + // Maximum events to return. Zero selects 50; otherwise 1 through 200. + int32 page_size = 4; + // Opaque continuation bound to the issue filter and resolved acceptance-time window. + string page_token = 5; + oneof accepted_lower_bound { + // Inclusive request-acceptance timestamp in Unix milliseconds; omitted defaults to zero. + int64 accepted_at_or_after_ms = 6; + } + oneof accepted_upper_bound { + // Exclusive request-acceptance timestamp in Unix milliseconds; omitted defaults to server now. + int64 accepted_before_ms = 7; + } +} + +// History covers projected issue builds in the request window, not the complete retained log. +// Missing acceptance mappings or issue projections can leave gaps; empty does not prove no history. +message ListIssueHistoryResponse { + // Descending request-acceptance order, then ascending bytewise task/unit order. + // Each request contributes at most one event per issue. + // Original event timestamps are preserved; events are not sorted chronologically. + repeated IssueHistoryEvent events = 1; + // Continues after the last examined request/issue; pages can be empty with a continuation. + // Each call examines at most 200 requests and 200 issue summaries. Empty ends the observed request window. + string next_page_token = 2; + // Resolved inclusive request-acceptance window bound in Unix milliseconds. + int64 accepted_at_or_after_ms = 3; + // Resolved exclusive request-acceptance window bound in Unix milliseconds. + int64 accepted_before_ms = 4; +} + // RequestIssueSummary describes one accepted issue update, not the queue's open-issue set. message RequestIssueSummary { // Logical validation task. @@ -532,6 +587,8 @@ service Stovepipe { rpc GetQueueStatus(GetQueueStatusRequest) returns (GetQueueStatusResponse) {} // ListOpenIssues returns current open issues validated against their summaries. rpc ListOpenIssues(ListOpenIssuesRequest) returns (ListOpenIssuesResponse) {} + // ListIssueHistory returns retained issue occurrences across requests, optionally filtered to one issue. + rpc ListIssueHistory(ListIssueHistoryRequest) returns (ListIssueHistoryResponse) {} // GetIssuesByRequestID returns accepted issue results for one request. rpc GetIssuesByRequestID(GetIssuesByRequestIDRequest) returns (GetIssuesByRequestIDResponse) {} // ListRequestProjectsByIssue returns the projects affected by one request's issue. diff --git a/api/stovepipe/protopb/stovepipe.pb.go b/api/stovepipe/protopb/stovepipe.pb.go index 22272f7ca..3cd4bd879 100644 --- a/api/stovepipe/protopb/stovepipe.pb.go +++ b/api/stovepipe/protopb/stovepipe.pb.go @@ -2643,6 +2643,326 @@ func (x *ListOpenIssuesResponse) GetNextPageToken() string { return "" } +// IssueHistoryEvent is one immutable retained occurrence across requests. +type IssueHistoryEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + // "open" (including reopenings), "reported", or "closed". + Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` + // Opaque source build identity. + BuildId string `protobuf:"bytes,2,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` + // Original occurrence timestamp in Unix milliseconds, not request ingest order. + TimestampMs int64 `protobuf:"varint,3,opt,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"` + // Opening build for this occurrence; empty on legacy lifecycle records. + FirstSeenBuildId string `protobuf:"bytes,4,opt,name=first_seen_build_id,json=firstSeenBuildId,proto3" json:"first_seen_build_id,omitempty"` + // Source request from the acceptance mapping; source-build retention is not required. + RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Validation task that identifies the issue. + TaskId string `protobuf:"bytes,6,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + // Validation unit; empty identifies a task-wide issue. + UnitId string `protobuf:"bytes,7,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IssueHistoryEvent) Reset() { + *x = IssueHistoryEvent{} + mi := &file_stovepipe_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IssueHistoryEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IssueHistoryEvent) ProtoMessage() {} + +func (x *IssueHistoryEvent) ProtoReflect() protoreflect.Message { + mi := &file_stovepipe_proto_msgTypes[32] + 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 IssueHistoryEvent.ProtoReflect.Descriptor instead. +func (*IssueHistoryEvent) Descriptor() ([]byte, []int) { + return file_stovepipe_proto_rawDescGZIP(), []int{32} +} + +func (x *IssueHistoryEvent) GetEvent() string { + if x != nil { + return x.Event + } + return "" +} + +func (x *IssueHistoryEvent) GetBuildId() string { + if x != nil { + return x.BuildId + } + return "" +} + +func (x *IssueHistoryEvent) GetTimestampMs() int64 { + if x != nil { + return x.TimestampMs + } + return 0 +} + +func (x *IssueHistoryEvent) GetFirstSeenBuildId() string { + if x != nil { + return x.FirstSeenBuildId + } + return "" +} + +func (x *IssueHistoryEvent) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *IssueHistoryEvent) GetTaskId() string { + if x != nil { + return x.TaskId + } + return "" +} + +func (x *IssueHistoryEvent) GetUnitId() string { + if x != nil { + return x.UnitId + } + return "" +} + +type ListIssueHistoryRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Required configured queue. + Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` + // Optional validation task. Empty selects all issues in the queue and requires an empty unit_id. + TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + // Exact validation unit when task_id is supplied; empty selects that task's task-wide issue. + UnitId string `protobuf:"bytes,3,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` + // Maximum events to return. Zero selects 50; otherwise 1 through 200. + PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Opaque continuation bound to the issue filter and resolved acceptance-time window. + PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Types that are valid to be assigned to AcceptedLowerBound: + // + // *ListIssueHistoryRequest_AcceptedAtOrAfterMs + AcceptedLowerBound isListIssueHistoryRequest_AcceptedLowerBound `protobuf_oneof:"accepted_lower_bound"` + // Types that are valid to be assigned to AcceptedUpperBound: + // + // *ListIssueHistoryRequest_AcceptedBeforeMs + AcceptedUpperBound isListIssueHistoryRequest_AcceptedUpperBound `protobuf_oneof:"accepted_upper_bound"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListIssueHistoryRequest) Reset() { + *x = ListIssueHistoryRequest{} + mi := &file_stovepipe_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListIssueHistoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListIssueHistoryRequest) ProtoMessage() {} + +func (x *ListIssueHistoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_stovepipe_proto_msgTypes[33] + 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 ListIssueHistoryRequest.ProtoReflect.Descriptor instead. +func (*ListIssueHistoryRequest) Descriptor() ([]byte, []int) { + return file_stovepipe_proto_rawDescGZIP(), []int{33} +} + +func (x *ListIssueHistoryRequest) GetQueue() string { + if x != nil { + return x.Queue + } + return "" +} + +func (x *ListIssueHistoryRequest) GetTaskId() string { + if x != nil { + return x.TaskId + } + return "" +} + +func (x *ListIssueHistoryRequest) GetUnitId() string { + if x != nil { + return x.UnitId + } + return "" +} + +func (x *ListIssueHistoryRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListIssueHistoryRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListIssueHistoryRequest) GetAcceptedLowerBound() isListIssueHistoryRequest_AcceptedLowerBound { + if x != nil { + return x.AcceptedLowerBound + } + return nil +} + +func (x *ListIssueHistoryRequest) GetAcceptedAtOrAfterMs() int64 { + if x != nil { + if x, ok := x.AcceptedLowerBound.(*ListIssueHistoryRequest_AcceptedAtOrAfterMs); ok { + return x.AcceptedAtOrAfterMs + } + } + return 0 +} + +func (x *ListIssueHistoryRequest) GetAcceptedUpperBound() isListIssueHistoryRequest_AcceptedUpperBound { + if x != nil { + return x.AcceptedUpperBound + } + return nil +} + +func (x *ListIssueHistoryRequest) GetAcceptedBeforeMs() int64 { + if x != nil { + if x, ok := x.AcceptedUpperBound.(*ListIssueHistoryRequest_AcceptedBeforeMs); ok { + return x.AcceptedBeforeMs + } + } + return 0 +} + +type isListIssueHistoryRequest_AcceptedLowerBound interface { + isListIssueHistoryRequest_AcceptedLowerBound() +} + +type ListIssueHistoryRequest_AcceptedAtOrAfterMs struct { + // Inclusive request-acceptance timestamp in Unix milliseconds; omitted defaults to zero. + AcceptedAtOrAfterMs int64 `protobuf:"varint,6,opt,name=accepted_at_or_after_ms,json=acceptedAtOrAfterMs,proto3,oneof"` +} + +func (*ListIssueHistoryRequest_AcceptedAtOrAfterMs) isListIssueHistoryRequest_AcceptedLowerBound() {} + +type isListIssueHistoryRequest_AcceptedUpperBound interface { + isListIssueHistoryRequest_AcceptedUpperBound() +} + +type ListIssueHistoryRequest_AcceptedBeforeMs struct { + // Exclusive request-acceptance timestamp in Unix milliseconds; omitted defaults to server now. + AcceptedBeforeMs int64 `protobuf:"varint,7,opt,name=accepted_before_ms,json=acceptedBeforeMs,proto3,oneof"` +} + +func (*ListIssueHistoryRequest_AcceptedBeforeMs) isListIssueHistoryRequest_AcceptedUpperBound() {} + +// History covers projected issue builds in the request window, not the complete retained log. +// Missing acceptance mappings or issue projections can leave gaps; empty does not prove no history. +type ListIssueHistoryResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Descending request-acceptance order, then ascending bytewise task/unit order. + // Each request contributes at most one event per issue. + // Original event timestamps are preserved; events are not sorted chronologically. + Events []*IssueHistoryEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + // Continues after the last examined request/issue; pages can be empty with a continuation. + // Each call examines at most 200 requests and 200 issue summaries. Empty ends the observed request window. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + // Resolved inclusive request-acceptance window bound in Unix milliseconds. + AcceptedAtOrAfterMs int64 `protobuf:"varint,3,opt,name=accepted_at_or_after_ms,json=acceptedAtOrAfterMs,proto3" json:"accepted_at_or_after_ms,omitempty"` + // Resolved exclusive request-acceptance window bound in Unix milliseconds. + AcceptedBeforeMs int64 `protobuf:"varint,4,opt,name=accepted_before_ms,json=acceptedBeforeMs,proto3" json:"accepted_before_ms,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListIssueHistoryResponse) Reset() { + *x = ListIssueHistoryResponse{} + mi := &file_stovepipe_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListIssueHistoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListIssueHistoryResponse) ProtoMessage() {} + +func (x *ListIssueHistoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_stovepipe_proto_msgTypes[34] + 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 ListIssueHistoryResponse.ProtoReflect.Descriptor instead. +func (*ListIssueHistoryResponse) Descriptor() ([]byte, []int) { + return file_stovepipe_proto_rawDescGZIP(), []int{34} +} + +func (x *ListIssueHistoryResponse) GetEvents() []*IssueHistoryEvent { + if x != nil { + return x.Events + } + return nil +} + +func (x *ListIssueHistoryResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +func (x *ListIssueHistoryResponse) GetAcceptedAtOrAfterMs() int64 { + if x != nil { + return x.AcceptedAtOrAfterMs + } + return 0 +} + +func (x *ListIssueHistoryResponse) GetAcceptedBeforeMs() int64 { + if x != nil { + return x.AcceptedBeforeMs + } + return 0 +} + // RequestIssueSummary describes one accepted issue update, not the queue's open-issue set. type RequestIssueSummary struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -2662,7 +2982,7 @@ type RequestIssueSummary struct { func (x *RequestIssueSummary) Reset() { *x = RequestIssueSummary{} - mi := &file_stovepipe_proto_msgTypes[32] + mi := &file_stovepipe_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2674,7 +2994,7 @@ func (x *RequestIssueSummary) String() string { func (*RequestIssueSummary) ProtoMessage() {} func (x *RequestIssueSummary) ProtoReflect() protoreflect.Message { - mi := &file_stovepipe_proto_msgTypes[32] + mi := &file_stovepipe_proto_msgTypes[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2687,7 +3007,7 @@ func (x *RequestIssueSummary) ProtoReflect() protoreflect.Message { // Deprecated: Use RequestIssueSummary.ProtoReflect.Descriptor instead. func (*RequestIssueSummary) Descriptor() ([]byte, []int) { - return file_stovepipe_proto_rawDescGZIP(), []int{32} + return file_stovepipe_proto_rawDescGZIP(), []int{35} } func (x *RequestIssueSummary) GetTaskId() string { @@ -2741,7 +3061,7 @@ type GetIssuesByRequestIDRequest struct { func (x *GetIssuesByRequestIDRequest) Reset() { *x = GetIssuesByRequestIDRequest{} - mi := &file_stovepipe_proto_msgTypes[33] + mi := &file_stovepipe_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2753,7 +3073,7 @@ func (x *GetIssuesByRequestIDRequest) String() string { func (*GetIssuesByRequestIDRequest) ProtoMessage() {} func (x *GetIssuesByRequestIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_stovepipe_proto_msgTypes[33] + mi := &file_stovepipe_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2766,7 +3086,7 @@ func (x *GetIssuesByRequestIDRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetIssuesByRequestIDRequest.ProtoReflect.Descriptor instead. func (*GetIssuesByRequestIDRequest) Descriptor() ([]byte, []int) { - return file_stovepipe_proto_rawDescGZIP(), []int{33} + return file_stovepipe_proto_rawDescGZIP(), []int{36} } func (x *GetIssuesByRequestIDRequest) GetQueue() string { @@ -2814,7 +3134,7 @@ type GetIssuesByRequestIDResponse struct { func (x *GetIssuesByRequestIDResponse) Reset() { *x = GetIssuesByRequestIDResponse{} - mi := &file_stovepipe_proto_msgTypes[34] + mi := &file_stovepipe_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2826,7 +3146,7 @@ func (x *GetIssuesByRequestIDResponse) String() string { func (*GetIssuesByRequestIDResponse) ProtoMessage() {} func (x *GetIssuesByRequestIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_stovepipe_proto_msgTypes[34] + mi := &file_stovepipe_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2839,7 +3159,7 @@ func (x *GetIssuesByRequestIDResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetIssuesByRequestIDResponse.ProtoReflect.Descriptor instead. func (*GetIssuesByRequestIDResponse) Descriptor() ([]byte, []int) { - return file_stovepipe_proto_rawDescGZIP(), []int{34} + return file_stovepipe_proto_rawDescGZIP(), []int{37} } func (x *GetIssuesByRequestIDResponse) GetIssues() []*RequestIssueSummary { @@ -2878,7 +3198,7 @@ type ProjectIssueAttribution struct { func (x *ProjectIssueAttribution) Reset() { *x = ProjectIssueAttribution{} - mi := &file_stovepipe_proto_msgTypes[35] + mi := &file_stovepipe_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2890,7 +3210,7 @@ func (x *ProjectIssueAttribution) String() string { func (*ProjectIssueAttribution) ProtoMessage() {} func (x *ProjectIssueAttribution) ProtoReflect() protoreflect.Message { - mi := &file_stovepipe_proto_msgTypes[35] + mi := &file_stovepipe_proto_msgTypes[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2903,7 +3223,7 @@ func (x *ProjectIssueAttribution) ProtoReflect() protoreflect.Message { // Deprecated: Use ProjectIssueAttribution.ProtoReflect.Descriptor instead. func (*ProjectIssueAttribution) Descriptor() ([]byte, []int) { - return file_stovepipe_proto_rawDescGZIP(), []int{35} + return file_stovepipe_proto_rawDescGZIP(), []int{38} } func (x *ProjectIssueAttribution) GetTaskId() string { @@ -2947,7 +3267,7 @@ type ListRequestProjectsByIssueRequest struct { func (x *ListRequestProjectsByIssueRequest) Reset() { *x = ListRequestProjectsByIssueRequest{} - mi := &file_stovepipe_proto_msgTypes[36] + mi := &file_stovepipe_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2959,7 +3279,7 @@ func (x *ListRequestProjectsByIssueRequest) String() string { func (*ListRequestProjectsByIssueRequest) ProtoMessage() {} func (x *ListRequestProjectsByIssueRequest) ProtoReflect() protoreflect.Message { - mi := &file_stovepipe_proto_msgTypes[36] + mi := &file_stovepipe_proto_msgTypes[39] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2972,7 +3292,7 @@ func (x *ListRequestProjectsByIssueRequest) ProtoReflect() protoreflect.Message // Deprecated: Use ListRequestProjectsByIssueRequest.ProtoReflect.Descriptor instead. func (*ListRequestProjectsByIssueRequest) Descriptor() ([]byte, []int) { - return file_stovepipe_proto_rawDescGZIP(), []int{36} + return file_stovepipe_proto_rawDescGZIP(), []int{39} } func (x *ListRequestProjectsByIssueRequest) GetQueue() string { @@ -3035,7 +3355,7 @@ type ListRequestIssuesByProjectRequest struct { func (x *ListRequestIssuesByProjectRequest) Reset() { *x = ListRequestIssuesByProjectRequest{} - mi := &file_stovepipe_proto_msgTypes[37] + mi := &file_stovepipe_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3047,7 +3367,7 @@ func (x *ListRequestIssuesByProjectRequest) String() string { func (*ListRequestIssuesByProjectRequest) ProtoMessage() {} func (x *ListRequestIssuesByProjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_stovepipe_proto_msgTypes[37] + mi := &file_stovepipe_proto_msgTypes[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3060,7 +3380,7 @@ func (x *ListRequestIssuesByProjectRequest) ProtoReflect() protoreflect.Message // Deprecated: Use ListRequestIssuesByProjectRequest.ProtoReflect.Descriptor instead. func (*ListRequestIssuesByProjectRequest) Descriptor() ([]byte, []int) { - return file_stovepipe_proto_rawDescGZIP(), []int{37} + return file_stovepipe_proto_rawDescGZIP(), []int{40} } func (x *ListRequestIssuesByProjectRequest) GetQueue() string { @@ -3114,7 +3434,7 @@ type ListRequestProjectIssuesResponse struct { func (x *ListRequestProjectIssuesResponse) Reset() { *x = ListRequestProjectIssuesResponse{} - mi := &file_stovepipe_proto_msgTypes[38] + mi := &file_stovepipe_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3126,7 +3446,7 @@ func (x *ListRequestProjectIssuesResponse) String() string { func (*ListRequestProjectIssuesResponse) ProtoMessage() {} func (x *ListRequestProjectIssuesResponse) ProtoReflect() protoreflect.Message { - mi := &file_stovepipe_proto_msgTypes[38] + mi := &file_stovepipe_proto_msgTypes[41] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3139,7 +3459,7 @@ func (x *ListRequestProjectIssuesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListRequestProjectIssuesResponse.ProtoReflect.Descriptor instead. func (*ListRequestProjectIssuesResponse) Descriptor() ([]byte, []int) { - return file_stovepipe_proto_rawDescGZIP(), []int{38} + return file_stovepipe_proto_rawDescGZIP(), []int{41} } func (x *ListRequestProjectIssuesResponse) GetAttributions() []*ProjectIssueAttribution { @@ -3360,7 +3680,32 @@ const file_stovepipe_proto_rawDesc = "" + "page_token\x18\x03 \x01(\tR\tpageToken\"\x82\x01\n" + "\x16ListOpenIssuesResponse\x12@\n" + "\x06issues\x18\x01 \x03(\v2(.uber.submitqueue.stovepipe.IssueSummaryR\x06issues\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xa5\x01\n" + + "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xe7\x01\n" + + "\x11IssueHistoryEvent\x12\x14\n" + + "\x05event\x18\x01 \x01(\tR\x05event\x12\x19\n" + + "\bbuild_id\x18\x02 \x01(\tR\abuildId\x12!\n" + + "\ftimestamp_ms\x18\x03 \x01(\x03R\vtimestampMs\x12-\n" + + "\x13first_seen_build_id\x18\x04 \x01(\tR\x10firstSeenBuildId\x12\x1d\n" + + "\n" + + "request_id\x18\x05 \x01(\tR\trequestId\x12\x17\n" + + "\atask_id\x18\x06 \x01(\tR\x06taskId\x12\x17\n" + + "\aunit_id\x18\a \x01(\tR\x06unitId\"\xb5\x02\n" + + "\x17ListIssueHistoryRequest\x12\x14\n" + + "\x05queue\x18\x01 \x01(\tR\x05queue\x12\x17\n" + + "\atask_id\x18\x02 \x01(\tR\x06taskId\x12\x17\n" + + "\aunit_id\x18\x03 \x01(\tR\x06unitId\x12\x1b\n" + + "\tpage_size\x18\x04 \x01(\x05R\bpageSize\x12\x1d\n" + + "\n" + + "page_token\x18\x05 \x01(\tR\tpageToken\x126\n" + + "\x17accepted_at_or_after_ms\x18\x06 \x01(\x03H\x00R\x13acceptedAtOrAfterMs\x12.\n" + + "\x12accepted_before_ms\x18\a \x01(\x03H\x01R\x10acceptedBeforeMsB\x16\n" + + "\x14accepted_lower_boundB\x16\n" + + "\x14accepted_upper_bound\"\xed\x01\n" + + "\x18ListIssueHistoryResponse\x12E\n" + + "\x06events\x18\x01 \x03(\v2-.uber.submitqueue.stovepipe.IssueHistoryEventR\x06events\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\x124\n" + + "\x17accepted_at_or_after_ms\x18\x03 \x01(\x03R\x13acceptedAtOrAfterMs\x12,\n" + + "\x12accepted_before_ms\x18\x04 \x01(\x03R\x10acceptedBeforeMs\"\xa5\x01\n" + "\x13RequestIssueSummary\x12\x17\n" + "\atask_id\x18\x01 \x01(\tR\x06taskId\x12\x17\n" + "\aunit_id\x18\x02 \x01(\tR\x06unitId\x12\x12\n" + @@ -3406,7 +3751,7 @@ const file_stovepipe_proto_rawDesc = "" + "\x0fQueueEnablement\x12\x1c\n" + "\x18QUEUE_ENABLEMENT_UNKNOWN\x10\x00\x12\x1c\n" + "\x18QUEUE_ENABLEMENT_ENABLED\x10\x01\x12\x1d\n" + - "\x19QUEUE_ENABLEMENT_DISABLED\x10\x022\xac\f\n" + + "\x19QUEUE_ENABLEMENT_DISABLED\x10\x022\xad\r\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" + @@ -3416,7 +3761,8 @@ const file_stovepipe_proto_rawDesc = "" + "\x15GetProjectStatusByURI\x128.uber.submitqueue.stovepipe.GetProjectStatusByURIRequest\x1a9.uber.submitqueue.stovepipe.GetProjectStatusByURIResponse\"\x00\x12[\n" + "\x04List\x12'.uber.submitqueue.stovepipe.ListRequest\x1a(.uber.submitqueue.stovepipe.ListResponse\"\x00\x12y\n" + "\x0eGetQueueStatus\x121.uber.submitqueue.stovepipe.GetQueueStatusRequest\x1a2.uber.submitqueue.stovepipe.GetQueueStatusResponse\"\x00\x12y\n" + - "\x0eListOpenIssues\x121.uber.submitqueue.stovepipe.ListOpenIssuesRequest\x1a2.uber.submitqueue.stovepipe.ListOpenIssuesResponse\"\x00\x12\x8b\x01\n" + + "\x0eListOpenIssues\x121.uber.submitqueue.stovepipe.ListOpenIssuesRequest\x1a2.uber.submitqueue.stovepipe.ListOpenIssuesResponse\"\x00\x12\x7f\n" + + "\x10ListIssueHistory\x123.uber.submitqueue.stovepipe.ListIssueHistoryRequest\x1a4.uber.submitqueue.stovepipe.ListIssueHistoryResponse\"\x00\x12\x8b\x01\n" + "\x14GetIssuesByRequestID\x127.uber.submitqueue.stovepipe.GetIssuesByRequestIDRequest\x1a8.uber.submitqueue.stovepipe.GetIssuesByRequestIDResponse\"\x00\x12\x9b\x01\n" + "\x1aListRequestProjectsByIssue\x12=.uber.submitqueue.stovepipe.ListRequestProjectsByIssueRequest\x1a<.uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse\"\x00\x12\x9b\x01\n" + "\x1aListRequestIssuesByProject\x12=.uber.submitqueue.stovepipe.ListRequestIssuesByProjectRequest\x1a<.uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse\"\x00Be\n" + @@ -3435,7 +3781,7 @@ func file_stovepipe_proto_rawDescGZIP() []byte { } var file_stovepipe_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_stovepipe_proto_msgTypes = make([]protoimpl.MessageInfo, 39) +var file_stovepipe_proto_msgTypes = make([]protoimpl.MessageInfo, 42) var file_stovepipe_proto_goTypes = []any{ (QueueEnablement)(0), // 0: uber.submitqueue.stovepipe.QueueEnablement (*PingRequest)(nil), // 1: uber.submitqueue.stovepipe.PingRequest @@ -3470,13 +3816,16 @@ var file_stovepipe_proto_goTypes = []any{ (*IssueSummary)(nil), // 30: uber.submitqueue.stovepipe.IssueSummary (*ListOpenIssuesRequest)(nil), // 31: uber.submitqueue.stovepipe.ListOpenIssuesRequest (*ListOpenIssuesResponse)(nil), // 32: uber.submitqueue.stovepipe.ListOpenIssuesResponse - (*RequestIssueSummary)(nil), // 33: uber.submitqueue.stovepipe.RequestIssueSummary - (*GetIssuesByRequestIDRequest)(nil), // 34: uber.submitqueue.stovepipe.GetIssuesByRequestIDRequest - (*GetIssuesByRequestIDResponse)(nil), // 35: uber.submitqueue.stovepipe.GetIssuesByRequestIDResponse - (*ProjectIssueAttribution)(nil), // 36: uber.submitqueue.stovepipe.ProjectIssueAttribution - (*ListRequestProjectsByIssueRequest)(nil), // 37: uber.submitqueue.stovepipe.ListRequestProjectsByIssueRequest - (*ListRequestIssuesByProjectRequest)(nil), // 38: uber.submitqueue.stovepipe.ListRequestIssuesByProjectRequest - (*ListRequestProjectIssuesResponse)(nil), // 39: uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse + (*IssueHistoryEvent)(nil), // 33: uber.submitqueue.stovepipe.IssueHistoryEvent + (*ListIssueHistoryRequest)(nil), // 34: uber.submitqueue.stovepipe.ListIssueHistoryRequest + (*ListIssueHistoryResponse)(nil), // 35: uber.submitqueue.stovepipe.ListIssueHistoryResponse + (*RequestIssueSummary)(nil), // 36: uber.submitqueue.stovepipe.RequestIssueSummary + (*GetIssuesByRequestIDRequest)(nil), // 37: uber.submitqueue.stovepipe.GetIssuesByRequestIDRequest + (*GetIssuesByRequestIDResponse)(nil), // 38: uber.submitqueue.stovepipe.GetIssuesByRequestIDResponse + (*ProjectIssueAttribution)(nil), // 39: uber.submitqueue.stovepipe.ProjectIssueAttribution + (*ListRequestProjectsByIssueRequest)(nil), // 40: uber.submitqueue.stovepipe.ListRequestProjectsByIssueRequest + (*ListRequestIssuesByProjectRequest)(nil), // 41: uber.submitqueue.stovepipe.ListRequestIssuesByProjectRequest + (*ListRequestProjectIssuesResponse)(nil), // 42: uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse } var file_stovepipe_proto_depIdxs = []int32{ 0, // 0: uber.submitqueue.stovepipe.IngestRequest.enablement:type_name -> uber.submitqueue.stovepipe.QueueEnablement @@ -3505,37 +3854,40 @@ var file_stovepipe_proto_depIdxs = []int32{ 0, // 23: uber.submitqueue.stovepipe.QueueEnablementStatus.state:type_name -> uber.submitqueue.stovepipe.QueueEnablement 28, // 24: uber.submitqueue.stovepipe.GetQueueStatusResponse.enablement:type_name -> uber.submitqueue.stovepipe.QueueEnablementStatus 30, // 25: uber.submitqueue.stovepipe.ListOpenIssuesResponse.issues:type_name -> uber.submitqueue.stovepipe.IssueSummary - 33, // 26: uber.submitqueue.stovepipe.GetIssuesByRequestIDResponse.issues:type_name -> uber.submitqueue.stovepipe.RequestIssueSummary - 36, // 27: uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse.attributions:type_name -> uber.submitqueue.stovepipe.ProjectIssueAttribution - 1, // 28: uber.submitqueue.stovepipe.Stovepipe.Ping:input_type -> uber.submitqueue.stovepipe.PingRequest - 3, // 29: uber.submitqueue.stovepipe.Stovepipe.Ingest:input_type -> uber.submitqueue.stovepipe.IngestRequest - 5, // 30: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByID:input_type -> uber.submitqueue.stovepipe.GetRequestHistoryByIDRequest - 6, // 31: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByURI:input_type -> uber.submitqueue.stovepipe.GetRequestHistoryByURIRequest - 19, // 32: uber.submitqueue.stovepipe.Stovepipe.GetProjectStatusByID:input_type -> uber.submitqueue.stovepipe.GetProjectStatusByIDRequest - 20, // 33: uber.submitqueue.stovepipe.Stovepipe.GetProjectStatusByURI:input_type -> uber.submitqueue.stovepipe.GetProjectStatusByURIRequest - 25, // 34: uber.submitqueue.stovepipe.Stovepipe.List:input_type -> uber.submitqueue.stovepipe.ListRequest - 27, // 35: uber.submitqueue.stovepipe.Stovepipe.GetQueueStatus:input_type -> uber.submitqueue.stovepipe.GetQueueStatusRequest - 31, // 36: uber.submitqueue.stovepipe.Stovepipe.ListOpenIssues:input_type -> uber.submitqueue.stovepipe.ListOpenIssuesRequest - 34, // 37: uber.submitqueue.stovepipe.Stovepipe.GetIssuesByRequestID:input_type -> uber.submitqueue.stovepipe.GetIssuesByRequestIDRequest - 37, // 38: uber.submitqueue.stovepipe.Stovepipe.ListRequestProjectsByIssue:input_type -> uber.submitqueue.stovepipe.ListRequestProjectsByIssueRequest - 38, // 39: uber.submitqueue.stovepipe.Stovepipe.ListRequestIssuesByProject:input_type -> uber.submitqueue.stovepipe.ListRequestIssuesByProjectRequest - 2, // 40: uber.submitqueue.stovepipe.Stovepipe.Ping:output_type -> uber.submitqueue.stovepipe.PingResponse - 4, // 41: uber.submitqueue.stovepipe.Stovepipe.Ingest:output_type -> uber.submitqueue.stovepipe.IngestResponse - 17, // 42: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByID:output_type -> uber.submitqueue.stovepipe.GetRequestHistoryByIDResponse - 18, // 43: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByURI:output_type -> uber.submitqueue.stovepipe.GetRequestHistoryByURIResponse - 22, // 44: uber.submitqueue.stovepipe.Stovepipe.GetProjectStatusByID:output_type -> uber.submitqueue.stovepipe.GetProjectStatusByIDResponse - 23, // 45: uber.submitqueue.stovepipe.Stovepipe.GetProjectStatusByURI:output_type -> uber.submitqueue.stovepipe.GetProjectStatusByURIResponse - 26, // 46: uber.submitqueue.stovepipe.Stovepipe.List:output_type -> uber.submitqueue.stovepipe.ListResponse - 29, // 47: uber.submitqueue.stovepipe.Stovepipe.GetQueueStatus:output_type -> uber.submitqueue.stovepipe.GetQueueStatusResponse - 32, // 48: uber.submitqueue.stovepipe.Stovepipe.ListOpenIssues:output_type -> uber.submitqueue.stovepipe.ListOpenIssuesResponse - 35, // 49: uber.submitqueue.stovepipe.Stovepipe.GetIssuesByRequestID:output_type -> uber.submitqueue.stovepipe.GetIssuesByRequestIDResponse - 39, // 50: uber.submitqueue.stovepipe.Stovepipe.ListRequestProjectsByIssue:output_type -> uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse - 39, // 51: uber.submitqueue.stovepipe.Stovepipe.ListRequestIssuesByProject:output_type -> uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse - 40, // [40:52] is the sub-list for method output_type - 28, // [28:40] is the sub-list for method input_type - 28, // [28:28] is the sub-list for extension type_name - 28, // [28:28] is the sub-list for extension extendee - 0, // [0:28] is the sub-list for field type_name + 33, // 26: uber.submitqueue.stovepipe.ListIssueHistoryResponse.events:type_name -> uber.submitqueue.stovepipe.IssueHistoryEvent + 36, // 27: uber.submitqueue.stovepipe.GetIssuesByRequestIDResponse.issues:type_name -> uber.submitqueue.stovepipe.RequestIssueSummary + 39, // 28: uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse.attributions:type_name -> uber.submitqueue.stovepipe.ProjectIssueAttribution + 1, // 29: uber.submitqueue.stovepipe.Stovepipe.Ping:input_type -> uber.submitqueue.stovepipe.PingRequest + 3, // 30: uber.submitqueue.stovepipe.Stovepipe.Ingest:input_type -> uber.submitqueue.stovepipe.IngestRequest + 5, // 31: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByID:input_type -> uber.submitqueue.stovepipe.GetRequestHistoryByIDRequest + 6, // 32: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByURI:input_type -> uber.submitqueue.stovepipe.GetRequestHistoryByURIRequest + 19, // 33: uber.submitqueue.stovepipe.Stovepipe.GetProjectStatusByID:input_type -> uber.submitqueue.stovepipe.GetProjectStatusByIDRequest + 20, // 34: uber.submitqueue.stovepipe.Stovepipe.GetProjectStatusByURI:input_type -> uber.submitqueue.stovepipe.GetProjectStatusByURIRequest + 25, // 35: uber.submitqueue.stovepipe.Stovepipe.List:input_type -> uber.submitqueue.stovepipe.ListRequest + 27, // 36: uber.submitqueue.stovepipe.Stovepipe.GetQueueStatus:input_type -> uber.submitqueue.stovepipe.GetQueueStatusRequest + 31, // 37: uber.submitqueue.stovepipe.Stovepipe.ListOpenIssues:input_type -> uber.submitqueue.stovepipe.ListOpenIssuesRequest + 34, // 38: uber.submitqueue.stovepipe.Stovepipe.ListIssueHistory:input_type -> uber.submitqueue.stovepipe.ListIssueHistoryRequest + 37, // 39: uber.submitqueue.stovepipe.Stovepipe.GetIssuesByRequestID:input_type -> uber.submitqueue.stovepipe.GetIssuesByRequestIDRequest + 40, // 40: uber.submitqueue.stovepipe.Stovepipe.ListRequestProjectsByIssue:input_type -> uber.submitqueue.stovepipe.ListRequestProjectsByIssueRequest + 41, // 41: uber.submitqueue.stovepipe.Stovepipe.ListRequestIssuesByProject:input_type -> uber.submitqueue.stovepipe.ListRequestIssuesByProjectRequest + 2, // 42: uber.submitqueue.stovepipe.Stovepipe.Ping:output_type -> uber.submitqueue.stovepipe.PingResponse + 4, // 43: uber.submitqueue.stovepipe.Stovepipe.Ingest:output_type -> uber.submitqueue.stovepipe.IngestResponse + 17, // 44: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByID:output_type -> uber.submitqueue.stovepipe.GetRequestHistoryByIDResponse + 18, // 45: uber.submitqueue.stovepipe.Stovepipe.GetRequestHistoryByURI:output_type -> uber.submitqueue.stovepipe.GetRequestHistoryByURIResponse + 22, // 46: uber.submitqueue.stovepipe.Stovepipe.GetProjectStatusByID:output_type -> uber.submitqueue.stovepipe.GetProjectStatusByIDResponse + 23, // 47: uber.submitqueue.stovepipe.Stovepipe.GetProjectStatusByURI:output_type -> uber.submitqueue.stovepipe.GetProjectStatusByURIResponse + 26, // 48: uber.submitqueue.stovepipe.Stovepipe.List:output_type -> uber.submitqueue.stovepipe.ListResponse + 29, // 49: uber.submitqueue.stovepipe.Stovepipe.GetQueueStatus:output_type -> uber.submitqueue.stovepipe.GetQueueStatusResponse + 32, // 50: uber.submitqueue.stovepipe.Stovepipe.ListOpenIssues:output_type -> uber.submitqueue.stovepipe.ListOpenIssuesResponse + 35, // 51: uber.submitqueue.stovepipe.Stovepipe.ListIssueHistory:output_type -> uber.submitqueue.stovepipe.ListIssueHistoryResponse + 38, // 52: uber.submitqueue.stovepipe.Stovepipe.GetIssuesByRequestID:output_type -> uber.submitqueue.stovepipe.GetIssuesByRequestIDResponse + 42, // 53: uber.submitqueue.stovepipe.Stovepipe.ListRequestProjectsByIssue:output_type -> uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse + 42, // 54: uber.submitqueue.stovepipe.Stovepipe.ListRequestIssuesByProject:output_type -> uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse + 42, // [42:55] is the sub-list for method output_type + 29, // [29:42] is the sub-list for method input_type + 29, // [29:29] is the sub-list for extension type_name + 29, // [29:29] is the sub-list for extension extendee + 0, // [0:29] is the sub-list for field type_name } func init() { file_stovepipe_proto_init() } @@ -3574,13 +3926,17 @@ func file_stovepipe_proto_init() { (*ListRequest_AcceptedAtOrAfterMs)(nil), (*ListRequest_AcceptedBeforeMs)(nil), } + file_stovepipe_proto_msgTypes[33].OneofWrappers = []any{ + (*ListIssueHistoryRequest_AcceptedAtOrAfterMs)(nil), + (*ListIssueHistoryRequest_AcceptedBeforeMs)(nil), + } 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: 1, - NumMessages: 39, + NumMessages: 42, NumExtensions: 0, NumServices: 1, }, diff --git a/api/stovepipe/protopb/stovepipe.pb.yarpc.go b/api/stovepipe/protopb/stovepipe.pb.yarpc.go index 239831fc9..dad1e24fe 100644 --- a/api/stovepipe/protopb/stovepipe.pb.yarpc.go +++ b/api/stovepipe/protopb/stovepipe.pb.yarpc.go @@ -30,6 +30,7 @@ type StovepipeYARPCClient interface { List(context.Context, *ListRequest, ...yarpc.CallOption) (*ListResponse, error) GetQueueStatus(context.Context, *GetQueueStatusRequest, ...yarpc.CallOption) (*GetQueueStatusResponse, error) ListOpenIssues(context.Context, *ListOpenIssuesRequest, ...yarpc.CallOption) (*ListOpenIssuesResponse, error) + ListIssueHistory(context.Context, *ListIssueHistoryRequest, ...yarpc.CallOption) (*ListIssueHistoryResponse, error) GetIssuesByRequestID(context.Context, *GetIssuesByRequestIDRequest, ...yarpc.CallOption) (*GetIssuesByRequestIDResponse, error) ListRequestProjectsByIssue(context.Context, *ListRequestProjectsByIssueRequest, ...yarpc.CallOption) (*ListRequestProjectIssuesResponse, error) ListRequestIssuesByProject(context.Context, *ListRequestIssuesByProjectRequest, ...yarpc.CallOption) (*ListRequestProjectIssuesResponse, error) @@ -62,6 +63,7 @@ type StovepipeYARPCServer interface { List(context.Context, *ListRequest) (*ListResponse, error) GetQueueStatus(context.Context, *GetQueueStatusRequest) (*GetQueueStatusResponse, error) ListOpenIssues(context.Context, *ListOpenIssuesRequest) (*ListOpenIssuesResponse, error) + ListIssueHistory(context.Context, *ListIssueHistoryRequest) (*ListIssueHistoryResponse, error) GetIssuesByRequestID(context.Context, *GetIssuesByRequestIDRequest) (*GetIssuesByRequestIDResponse, error) ListRequestProjectsByIssue(context.Context, *ListRequestProjectsByIssueRequest) (*ListRequestProjectIssuesResponse, error) ListRequestIssuesByProject(context.Context, *ListRequestIssuesByProjectRequest) (*ListRequestProjectIssuesResponse, error) @@ -168,6 +170,16 @@ func buildStovepipeYARPCProcedures(params buildStovepipeYARPCProceduresParams) [ }, ), }, + { + MethodName: "ListIssueHistory", + Handler: v2.NewUnaryHandler( + v2.UnaryHandlerParams{ + Handle: handler.ListIssueHistory, + NewRequest: newStovepipeServiceListIssueHistoryYARPCRequest, + AnyResolver: params.AnyResolver, + }, + ), + }, { MethodName: "GetIssuesByRequestID", Handler: v2.NewUnaryHandler( @@ -418,6 +430,18 @@ func (c *_StovepipeYARPCCaller) ListOpenIssues(ctx context.Context, request *Lis return response, err } +func (c *_StovepipeYARPCCaller) ListIssueHistory(ctx context.Context, request *ListIssueHistoryRequest, options ...yarpc.CallOption) (*ListIssueHistoryResponse, error) { + responseMessage, err := c.streamClient.Call(ctx, "ListIssueHistory", request, newStovepipeServiceListIssueHistoryYARPCResponse, options...) + if responseMessage == nil { + return nil, err + } + response, ok := responseMessage.(*ListIssueHistoryResponse) + if !ok { + return nil, v2.CastError(emptyStovepipeServiceListIssueHistoryYARPCResponse, responseMessage) + } + return response, err +} + func (c *_StovepipeYARPCCaller) GetIssuesByRequestID(ctx context.Context, request *GetIssuesByRequestIDRequest, options ...yarpc.CallOption) (*GetIssuesByRequestIDResponse, error) { responseMessage, err := c.streamClient.Call(ctx, "GetIssuesByRequestID", request, newStovepipeServiceGetIssuesByRequestIDYARPCResponse, options...) if responseMessage == nil { @@ -602,6 +626,22 @@ func (h *_StovepipeYARPCHandler) ListOpenIssues(ctx context.Context, requestMess return response, err } +func (h *_StovepipeYARPCHandler) ListIssueHistory(ctx context.Context, requestMessage proto.Message) (proto.Message, error) { + var request *ListIssueHistoryRequest + var ok bool + if requestMessage != nil { + request, ok = requestMessage.(*ListIssueHistoryRequest) + if !ok { + return nil, v2.CastError(emptyStovepipeServiceListIssueHistoryYARPCRequest, requestMessage) + } + } + response, err := h.server.ListIssueHistory(ctx, request) + if response == nil { + return nil, err + } + return response, err +} + func (h *_StovepipeYARPCHandler) GetIssuesByRequestID(ctx context.Context, requestMessage proto.Message) (proto.Message, error) { var request *GetIssuesByRequestIDRequest var ok bool @@ -722,6 +762,14 @@ func newStovepipeServiceListOpenIssuesYARPCResponse() proto.Message { return &ListOpenIssuesResponse{} } +func newStovepipeServiceListIssueHistoryYARPCRequest() proto.Message { + return &ListIssueHistoryRequest{} +} + +func newStovepipeServiceListIssueHistoryYARPCResponse() proto.Message { + return &ListIssueHistoryResponse{} +} + func newStovepipeServiceGetIssuesByRequestIDYARPCRequest() proto.Message { return &GetIssuesByRequestIDRequest{} } @@ -765,6 +813,8 @@ var ( emptyStovepipeServiceGetQueueStatusYARPCResponse = &GetQueueStatusResponse{} emptyStovepipeServiceListOpenIssuesYARPCRequest = &ListOpenIssuesRequest{} emptyStovepipeServiceListOpenIssuesYARPCResponse = &ListOpenIssuesResponse{} + emptyStovepipeServiceListIssueHistoryYARPCRequest = &ListIssueHistoryRequest{} + emptyStovepipeServiceListIssueHistoryYARPCResponse = &ListIssueHistoryResponse{} emptyStovepipeServiceGetIssuesByRequestIDYARPCRequest = &GetIssuesByRequestIDRequest{} emptyStovepipeServiceGetIssuesByRequestIDYARPCResponse = &GetIssuesByRequestIDResponse{} emptyStovepipeServiceListRequestProjectsByIssueYARPCRequest = &ListRequestProjectsByIssueRequest{} @@ -776,154 +826,163 @@ var ( var yarpcFileDescriptorClosurefabdb6b3c0b09022 = [][]byte{ // stovepipe.proto []byte{ - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0x5f, 0x6f, 0x1b, 0xc7, - 0x11, 0xd7, 0x91, 0x14, 0x25, 0x8e, 0x28, 0x4a, 0x5e, 0xcb, 0x34, 0x4d, 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xc3, 0xf2, 0xf9, 0x6c, 0xc8, + 0xf1, 0x9e, 0x4b, 0xb8, 0xbe, 0x0d, 0x9f, 0xc1, 0x62, 0x9b, 0x9c, 0xe8, 0x02, 0x87, 0x19, 0x0e, + 0x38, 0xfc, 0xcd, 0x11, 0xe0, 0xb7, 0xc8, 0x49, 0x98, 0x90, 0x6d, 0x72, 0xb2, 0x1f, 0x22, 0xa0, + 0x16, 0x54, 0x23, 0x48, 0xdf, 0x67, 0x41, 0xee, 0x1f, 0x11, 0xd7, 0xc5, 0x56, 0x6d, 0xfe, 0x1c, + 0xd8, 0x2b, 0x21, 0x36, 0x87, 0xda, 0x17, 0x48, 0xa8, 0x0d, 0xb5, 0x94, 0x8c, 0xbe, 0x81, 0x16, + 0xce, 0x21, 0xa5, 0x9a, 0x90, 0x12, 0x99, 0xa7, 0x51, 0x86, 0x59, 0xd7, 0x38, 0xed, 0x3a, 0x86, + 0xa5, 0xde, 0x83, 0xcb, 0x43, 0x4a, 0x12, 0xab, 0xf3, 0x22, 0x10, 0xfb, 0x75, 0x9e, 0x7f, 0x37, + 0x2d, 0xf5, 0x76, 0x54, 0x0d, 0x23, 0x6f, 0xe4, 0x6d, 0xff, 0x00, 0xae, 0x0c, 0x4d, 0x70, 0xf4, + 0x7f, 0x30, 0xcf, 0xcb, 0x85, 0x85, 0x3b, 0x1e, 0x16, 0x35, 0x54, 0xd1, 0x80, 0x91, 0x1e, 0x71, + 0x8a, 0xfa, 0x5a, 0x89, 0x74, 0x4c, 0xa7, 0x2b, 0xba, 0x05, 0x28, 0x5e, 0x03, 0x74, 0xd3, 0x09, + 0x6c, 0xca, 0x31, 0xa6, 0xb5, 0xe5, 0x58, 0x22, 0x3f, 0x64, 0x74, 0xf4, 0x00, 0xae, 0xb4, 0x3c, + 0xe7, 0x08, 0xdb, 0x7a, 0x06, 0x53, 0x81, 0x33, 0x55, 0xc5, 0x86, 0xbd, 0x14, 0xab, 0xfa, 0x31, + 0xd4, 0x86, 0x65, 0x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0x38, 0x40, + 0xe2, 0xad, 0x79, 0x25, 0x7c, 0x06, 0x96, 0x87, 0xc5, 0xe1, 0x0b, 0x74, 0x64, 0xda, 0xc2, 0xc0, + 0x54, 0x9c, 0x78, 0x81, 0x2e, 0x0e, 0xbe, 0x40, 0x7f, 0xb7, 0x6e, 0x8e, 0x85, 0x5f, 0x69, 0x58, + 0xf8, 0xcd, 0xc6, 0xc3, 0x4f, 0xfd, 0x73, 0x01, 0x2e, 0x33, 0x73, 0xc7, 0x4f, 0x9b, 0xef, 0xdc, + 0xf1, 0x27, 0xf3, 0x09, 0x2a, 0x77, 0xde, 0xed, 0x52, 0x1a, 0xff, 0x76, 0x99, 0x1d, 0x76, 0xbb, + 0x8c, 0x7d, 0x43, 0xfc, 0x4b, 0x81, 0xda, 0xa0, 0xdd, 0x64, 0xa0, 0x6e, 0xa6, 0xe6, 0xe9, 0xdb, + 0x67, 0x06, 0x6a, 0xe6, 0x50, 0x3d, 0x62, 0xb4, 0xa2, 0x7b, 0xc3, 0x6d, 0x24, 0x22, 0x2e, 0xd3, + 0x42, 0xb7, 0x32, 0x2d, 0x24, 0x0a, 0xed, 0x80, 0x7d, 0xd4, 0xdf, 0x29, 0x70, 0x51, 0xc6, 0xc5, + 0x84, 0x05, 0x0f, 0xc1, 0xf4, 0x11, 0xb1, 0xc3, 0x18, 0xe1, 0xbf, 0x13, 0x39, 0x34, 0x9d, 0xcc, + 0xa1, 0x21, 0x09, 0x32, 0x93, 0x9d, 0x20, 0xea, 0x17, 0x62, 0x8e, 0x17, 0x95, 0xa3, 0x11, 0x86, + 0xf2, 0x84, 0x73, 0x7c, 0x22, 0x80, 0x8b, 0xb9, 0x01, 0x3c, 0x9d, 0xae, 0x67, 0xbf, 0x17, 0xb3, + 0x7a, 0x86, 0x42, 0x32, 0x58, 0x1e, 0xa7, 0xaa, 0xda, 0xda, 0x08, 0x9d, 0x45, 0x66, 0x71, 0xeb, + 0xdf, 0x24, 0x85, 0xc4, 0x4d, 0x92,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x34, 0xf1, 0xf5, + 0x7b, 0xe3, 0x31, 0xa5, 0x43, 0x7e, 0xa0, 0x6f, 0x39, 0x33, 0xe4, 0x87, 0xb5, 0x5e, 0x67, 0x86, + 0xfc, 0xd0, 0x16, 0x49, 0x9d, 0x42, 0xbf, 0x55, 0xa0, 0x3e, 0xbc, 0x69, 0x40, 0x3f, 0x1b, 0x31, + 0xf0, 0xb2, 0x9b, 0x8d, 0xfa, 0x07, 0xe3, 0xb1, 0x0f, 0x38, 0x2b, 0xa5, 0x5d, 0xaa, 0x13, 0x18, + 0x59, 0xbb, 0xec, 0x0e, 0x62, 0x52, 0xed, 0x1a, 0x18, 0xde, 0x32, 0x9d, 0x5e, 0x0e, 0x48, 0xa3, + 0x12, 0x5d, 0x67, 0x7b, 0x9e, 0x43, 0x9d, 0x3d, 0xe5, 0x93, 0x3b, 0x1d, 0x42, 0x0f, 0x83, 0xd6, + 0xaa, 0xe9, 0xf4, 0xd6, 0x18, 0xe3, 0x5a, 0x8c, 0x71, 0xcd, 0x70, 0xc9, 0x5a, 0xc4, 0xbc, 0xc6, + 0xff, 0x0c, 0xe8, 0xb6, 0x5a, 0x25, 0xfe, 0xe3, 0xee, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x28, + 0x46, 0x00, 0xce, 0x28, 0x28, 0x00, 0x00, }, } diff --git a/api/stovepipe/protopb/stovepipe_grpc.pb.go b/api/stovepipe/protopb/stovepipe_grpc.pb.go index 2ae4a18e7..784c909ed 100644 --- a/api/stovepipe/protopb/stovepipe_grpc.pb.go +++ b/api/stovepipe/protopb/stovepipe_grpc.pb.go @@ -43,6 +43,7 @@ const ( Stovepipe_List_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/List" Stovepipe_GetQueueStatus_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/GetQueueStatus" Stovepipe_ListOpenIssues_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/ListOpenIssues" + Stovepipe_ListIssueHistory_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/ListIssueHistory" Stovepipe_GetIssuesByRequestID_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/GetIssuesByRequestID" Stovepipe_ListRequestProjectsByIssue_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/ListRequestProjectsByIssue" Stovepipe_ListRequestIssuesByProject_FullMethodName = "/uber.submitqueue.stovepipe.Stovepipe/ListRequestIssuesByProject" @@ -73,6 +74,8 @@ type StovepipeClient interface { GetQueueStatus(ctx context.Context, in *GetQueueStatusRequest, opts ...grpc.CallOption) (*GetQueueStatusResponse, error) // ListOpenIssues returns current open issues validated against their summaries. ListOpenIssues(ctx context.Context, in *ListOpenIssuesRequest, opts ...grpc.CallOption) (*ListOpenIssuesResponse, error) + // ListIssueHistory returns retained issue occurrences across requests, optionally filtered to one issue. + ListIssueHistory(ctx context.Context, in *ListIssueHistoryRequest, opts ...grpc.CallOption) (*ListIssueHistoryResponse, error) // GetIssuesByRequestID returns accepted issue results for one request. GetIssuesByRequestID(ctx context.Context, in *GetIssuesByRequestIDRequest, opts ...grpc.CallOption) (*GetIssuesByRequestIDResponse, error) // ListRequestProjectsByIssue returns the projects affected by one request's issue. @@ -179,6 +182,16 @@ func (c *stovepipeClient) ListOpenIssues(ctx context.Context, in *ListOpenIssues return out, nil } +func (c *stovepipeClient) ListIssueHistory(ctx context.Context, in *ListIssueHistoryRequest, opts ...grpc.CallOption) (*ListIssueHistoryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListIssueHistoryResponse) + err := c.cc.Invoke(ctx, Stovepipe_ListIssueHistory_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *stovepipeClient) GetIssuesByRequestID(ctx context.Context, in *GetIssuesByRequestIDRequest, opts ...grpc.CallOption) (*GetIssuesByRequestIDResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetIssuesByRequestIDResponse) @@ -234,6 +247,8 @@ type StovepipeServer interface { GetQueueStatus(context.Context, *GetQueueStatusRequest) (*GetQueueStatusResponse, error) // ListOpenIssues returns current open issues validated against their summaries. ListOpenIssues(context.Context, *ListOpenIssuesRequest) (*ListOpenIssuesResponse, error) + // ListIssueHistory returns retained issue occurrences across requests, optionally filtered to one issue. + ListIssueHistory(context.Context, *ListIssueHistoryRequest) (*ListIssueHistoryResponse, error) // GetIssuesByRequestID returns accepted issue results for one request. GetIssuesByRequestID(context.Context, *GetIssuesByRequestIDRequest) (*GetIssuesByRequestIDResponse, error) // ListRequestProjectsByIssue returns the projects affected by one request's issue. @@ -277,6 +292,9 @@ func (UnimplementedStovepipeServer) GetQueueStatus(context.Context, *GetQueueSta func (UnimplementedStovepipeServer) ListOpenIssues(context.Context, *ListOpenIssuesRequest) (*ListOpenIssuesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOpenIssues not implemented") } +func (UnimplementedStovepipeServer) ListIssueHistory(context.Context, *ListIssueHistoryRequest) (*ListIssueHistoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListIssueHistory not implemented") +} func (UnimplementedStovepipeServer) GetIssuesByRequestID(context.Context, *GetIssuesByRequestIDRequest) (*GetIssuesByRequestIDResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetIssuesByRequestID not implemented") } @@ -469,6 +487,24 @@ func _Stovepipe_ListOpenIssues_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Stovepipe_ListIssueHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListIssueHistoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StovepipeServer).ListIssueHistory(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Stovepipe_ListIssueHistory_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StovepipeServer).ListIssueHistory(ctx, req.(*ListIssueHistoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Stovepipe_GetIssuesByRequestID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetIssuesByRequestIDRequest) if err := dec(in); err != nil { @@ -566,6 +602,10 @@ var Stovepipe_ServiceDesc = grpc.ServiceDesc{ MethodName: "ListOpenIssues", Handler: _Stovepipe_ListOpenIssues_Handler, }, + { + MethodName: "ListIssueHistory", + Handler: _Stovepipe_ListIssueHistory_Handler, + }, { MethodName: "GetIssuesByRequestID", Handler: _Stovepipe_GetIssuesByRequestID_Handler, diff --git a/doc/rfc/stovepipe/issue-history-api.md b/doc/rfc/stovepipe/issue-history-api.md new file mode 100644 index 000000000..ccbf62a7d --- /dev/null +++ b/doc/rfc/stovepipe/issue-history-api.md @@ -0,0 +1,7 @@ +# Issue history API + +Issue history scans accepted requests in descending acceptance-time order, reads their issue summaries, then retrieves the original events using each summary's task, unit, build, and event type. Omitting task and unit includes all issues in the queue; supplying a task selects its exact unit, with an empty unit selecting that task's task-wide issue. Events include task and unit IDs and follow ascending bytewise task/unit order within each request. Source request IDs come from acceptance mappings, so expired builds do not require extra reads or hide linked events. Original timestamps and opening-build references are preserved, not used to sort history. + +The request-acceptance window is inclusive at the lower bound and exclusive at the upper bound. Omitted bounds resolve to zero and server now on the first page; responses expose the resolved bounds and continuations keep them fixed. Event pages default to 50, with a maximum of 200. Each call examines at most 200 requests and 200 issue summaries and may return an empty page with a continuation after missing projections or logs. Continuations can resume within a request. All scans use existing primary-key order; there is no timestamp sort, new projection, or migration. + +Coverage is limited to retained acceptance mappings and the build currently referenced by each request's issue summary. Missing, incomplete, or older projections can omit events, including earlier builds from the same request. Empty results do not establish that an issue has no retained history. Pages are live, not snapshots: later reconciliation can change projections or add events behind a cursor, so restart the window to refresh coverage. diff --git a/service/stovepipe/server/handler/BUILD.bazel b/service/stovepipe/server/handler/BUILD.bazel index f3f853a3f..106936942 100644 --- a/service/stovepipe/server/handler/BUILD.bazel +++ b/service/stovepipe/server/handler/BUILD.bazel @@ -21,6 +21,7 @@ go_test( name = "go_default_test", srcs = [ "get_issues_by_request_id_test.go", + "issue_history_test.go", "list_open_issues_test.go", "list_test.go", "project_issues_test.go", diff --git a/service/stovepipe/server/handler/get_issues_by_request_id_test.go b/service/stovepipe/server/handler/get_issues_by_request_id_test.go index 9a10034d3..a93e61a28 100644 --- a/service/stovepipe/server/handler/get_issues_by_request_id_test.go +++ b/service/stovepipe/server/handler/get_issues_by_request_id_test.go @@ -43,7 +43,7 @@ func TestGetIssuesByRequestID(t *testing.T) { t.Run(tt.name, func(t *testing.T) { c := controllermock.NewMockGetIssuesByRequestIDController(gomock.NewController(t)) c.EXPECT().GetIssuesByRequestID(gomock.Any(), entity.GetIssuesByRequestIDRequest{Queue: "queue", RequestID: "12", PageSize: 10, PageToken: "token"}).Return(entity.GetIssuesByRequestIDResult{Status: entity.RequestIssuesStatusIncomplete, NextPageToken: "next"}, tt.err) - server := NewStovepipeServer(nil, nil, nil, nil, nil, nil, nil, c, nil) + server := NewStovepipeServer(nil, nil, nil, nil, nil, nil, nil, c, nil, nil) response, err := server.GetIssuesByRequestID(context.Background(), &pb.GetIssuesByRequestIDRequest{Queue: "queue", RequestId: "12", PageSize: 10, PageToken: "token"}) require.Equal(t, tt.code, status.Code(err)) if tt.err == nil { diff --git a/service/stovepipe/server/handler/issue_history_test.go b/service/stovepipe/server/handler/issue_history_test.go new file mode 100644 index 000000000..bf17fb91b --- /dev/null +++ b/service/stovepipe/server/handler/issue_history_test.go @@ -0,0 +1,76 @@ +// Copyright (c) 2026 Uber Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package handler + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + pb "github.com/uber/submitqueue/api/stovepipe/protopb" + "github.com/uber/submitqueue/stovepipe/controller" + controllermock "github.com/uber/submitqueue/stovepipe/controller/mock" + "github.com/uber/submitqueue/stovepipe/entity" + "go.uber.org/mock/gomock" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func TestListIssueHistory(t *testing.T) { + request := entity.ListIssueHistoryRequest{Queue: "queue", TaskID: "task", UnitID: "unit", PageSize: 2, PageToken: "token"} + result := entity.ListIssueHistoryResult{ + Events: []entity.IssueHistoryEntry{{ + Log: entity.IssueLog{Event: entity.IssueEventReported, BuildID: "build/2", TimestampMs: 100}, + RequestID: "12", + }}, + NextPageToken: "next", + AcceptedAtOrAfterMs: 100, + AcceptedBeforeMs: 200, + } + + for _, tt := range []struct { + name string + err error + code codes.Code + }{ + {name: "success", code: codes.OK}, + {name: "invalid request", err: controller.ErrInvalidRequest, code: codes.InvalidArgument}, + {name: "canceled", err: context.Canceled, code: codes.Canceled}, + {name: "deadline", err: context.DeadlineExceeded, code: codes.DeadlineExceeded}, + {name: "dependency failure", err: assert.AnError, code: codes.Unknown}, + } { + t.Run(tt.name, func(t *testing.T) { + ctx := context.Background() + c := controllermock.NewMockListIssueHistoryController(gomock.NewController(t)) + c.EXPECT().ListIssueHistory(ctx, request).Return(result, tt.err) + server := NewStovepipeServer(nil, nil, nil, nil, nil, nil, nil, nil, nil, c) + + response, err := server.ListIssueHistory(ctx, &pb.ListIssueHistoryRequest{Queue: "queue", TaskId: "task", UnitId: "unit", PageSize: 2, PageToken: "token"}) + require.Equal(t, tt.code, status.Code(err)) + if tt.err != nil { + require.Nil(t, response) + return + } + + require.Equal(t, &pb.ListIssueHistoryResponse{ + Events: []*pb.IssueHistoryEvent{{Event: "reported", BuildId: "build/2", TimestampMs: 100, RequestId: "12"}}, + NextPageToken: "next", + AcceptedAtOrAfterMs: 100, + AcceptedBeforeMs: 200, + }, response) + }) + } +} diff --git a/service/stovepipe/server/handler/list_test.go b/service/stovepipe/server/handler/list_test.go index 83af90b07..d9ac5e7ea 100644 --- a/service/stovepipe/server/handler/list_test.go +++ b/service/stovepipe/server/handler/list_test.go @@ -68,7 +68,7 @@ func TestList(t *testing.T) { }, req) return tt.result, tt.err }} - srv := NewStovepipeServer(nil, nil, nil, nil, fake, nil, nil, nil, nil) + srv := NewStovepipeServer(nil, nil, nil, nil, fake, nil, nil, nil, nil, nil) response, err := srv.List(ctx, &pb.ListRequest{ Queue: "queue", PageSize: 25, PageToken: "token", AcceptedLowerBound: &pb.ListRequest_AcceptedAtOrAfterMs{}, diff --git a/service/stovepipe/server/handler/project_issues_test.go b/service/stovepipe/server/handler/project_issues_test.go index c46071e68..d81063bc8 100644 --- a/service/stovepipe/server/handler/project_issues_test.go +++ b/service/stovepipe/server/handler/project_issues_test.go @@ -51,7 +51,7 @@ func TestProjectIssues(t *testing.T) { Attributions: []entity.ProjectIssueAttribution{{TaskID: "test", UnitID: "unit", Project: "app"}}, AttributionComplete: true, NextPageToken: "next", } - server := NewStovepipeServer(nil, nil, nil, nil, nil, nil, nil, nil, c) + server := NewStovepipeServer(nil, nil, nil, nil, nil, nil, nil, nil, c, nil) var got *pb.ListRequestProjectIssuesResponse var err error if byProject { diff --git a/service/stovepipe/server/handler/queue_status_test.go b/service/stovepipe/server/handler/queue_status_test.go index 6798cc1f5..bf76ef173 100644 --- a/service/stovepipe/server/handler/queue_status_test.go +++ b/service/stovepipe/server/handler/queue_status_test.go @@ -53,7 +53,7 @@ func TestGetQueueStatus(t *testing.T) { require.Equal(t, entity.GetQueueStatusRequest{Queue: "repo/main", ChangeURI: "C"}, req) return entity.GetQueueStatusResult{Queue: "repo/main", Enablement: entity.QueueState{Version: 1, State: entity.QueueEnablementDisabled}}, wantErr }} - server := NewStovepipeServer(nil, nil, nil, nil, nil, fake, nil, nil, nil) + server := NewStovepipeServer(nil, nil, nil, nil, nil, fake, nil, nil, nil, nil) response, err := server.GetQueueStatus(context.Background(), &pb.GetQueueStatusRequest{Queue: "repo/main", ChangeUri: "C"}) if wantErr != nil { require.Equal(t, tt.code, status.Code(err)) diff --git a/service/stovepipe/server/handler/server.go b/service/stovepipe/server/handler/server.go index 6a8e5d9c2..8d496c7d7 100644 --- a/service/stovepipe/server/handler/server.go +++ b/service/stovepipe/server/handler/server.go @@ -42,6 +42,7 @@ type StovepipeServer struct { requestIssuesController controller.GetIssuesByRequestIDController projectIssuesController controller.ProjectIssuesController queueStatusController controller.GetQueueStatusController + issueHistoryController controller.ListIssueHistoryController } // NewStovepipeServer creates a gRPC service handler from Stovepipe controllers. @@ -55,6 +56,7 @@ func NewStovepipeServer( openIssuesController controller.ListOpenIssuesController, requestIssuesController controller.GetIssuesByRequestIDController, projectIssuesController controller.ProjectIssuesController, + issueHistoryController controller.ListIssueHistoryController, ) *StovepipeServer { return &StovepipeServer{ pingController: pingController, @@ -66,6 +68,7 @@ func NewStovepipeServer( requestIssuesController: requestIssuesController, projectIssuesController: projectIssuesController, queueStatusController: queueStatusController, + issueHistoryController: issueHistoryController, } } @@ -215,3 +218,19 @@ func projectIssuesError(err error) error { return err } } + +func (s *StovepipeServer) ListIssueHistory(ctx context.Context, req *pb.ListIssueHistoryRequest) (*pb.ListIssueHistoryResponse, error) { + result, err := s.issueHistoryController.ListIssueHistory(ctx, mapper.ProtoToListIssueHistoryRequest(req)) + if err != nil { + switch { + case controller.IsInvalidRequest(err): + return nil, status.Error(codes.InvalidArgument, err.Error()) + case errors.Is(err, context.Canceled), errors.Is(err, context.DeadlineExceeded): + return nil, status.FromContextError(err).Err() + default: + return nil, err + } + } + + return mapper.ListIssueHistoryResultToProto(result), nil +} diff --git a/service/stovepipe/server/main.go b/service/stovepipe/server/main.go index 227b3e239..93977c95b 100644 --- a/service/stovepipe/server/main.go +++ b/service/stovepipe/server/main.go @@ -316,10 +316,11 @@ func run() error { openIssuesController := controller.NewListOpenIssuesController(logger.Sugar(), scope, storageFty, tenants) requestIssuesController := controller.NewGetIssuesByRequestIDController(logger.Sugar(), scope, storageFty, tenants) projectIssuesController := controller.NewProjectIssuesController(logger.Sugar(), scope, storageFty, tenants) + issueHistoryController := controller.NewListIssueHistoryController(logger.Sugar(), scope, storageFty, tenants) srv := handler.NewStovepipeServer( pingController, ingestController, requestHistoryController, projectStatusController, listController, queueStatusController, openIssuesController, - requestIssuesController, projectIssuesController, + requestIssuesController, projectIssuesController, issueHistoryController, ) pb.RegisterStovepipeServer(grpcServer, srv) diff --git a/service/stovepipe/server/mapper/BUILD.bazel b/service/stovepipe/server/mapper/BUILD.bazel index cca375816..71305f32f 100644 --- a/service/stovepipe/server/mapper/BUILD.bazel +++ b/service/stovepipe/server/mapper/BUILD.bazel @@ -5,6 +5,7 @@ go_library( srcs = [ "get_issues_by_request_id.go", "ingest.go", + "issue_history.go", "list.go", "list_open_issues.go", "project_issues.go", @@ -26,6 +27,7 @@ go_test( srcs = [ "get_issues_by_request_id_test.go", "ingest_test.go", + "issue_history_test.go", "list_open_issues_test.go", "list_test.go", "project_issues_test.go", diff --git a/service/stovepipe/server/mapper/issue_history.go b/service/stovepipe/server/mapper/issue_history.go new file mode 100644 index 000000000..0c1e37f05 --- /dev/null +++ b/service/stovepipe/server/mapper/issue_history.go @@ -0,0 +1,58 @@ +// Copyright (c) 2026 Uber Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mapper + +import ( + pb "github.com/uber/submitqueue/api/stovepipe/protopb" + "github.com/uber/submitqueue/stovepipe/entity" +) + +// ProtoToListIssueHistoryRequest preserves time-bound presence, leaving defaults and validation to the controller. +func ProtoToListIssueHistoryRequest(req *pb.ListIssueHistoryRequest) entity.ListIssueHistoryRequest { + return entity.ListIssueHistoryRequest{ + Queue: req.GetQueue(), + TaskID: req.GetTaskId(), + UnitID: req.GetUnitId(), + PageSize: req.GetPageSize(), + PageToken: req.GetPageToken(), + AcceptedAtOrAfterMs: req.GetAcceptedAtOrAfterMs(), + HasAcceptedAtOrAfterMs: req.GetAcceptedLowerBound() != nil, + AcceptedBeforeMs: req.GetAcceptedBeforeMs(), + HasAcceptedBeforeMs: req.GetAcceptedUpperBound() != nil, + } +} + +// ListIssueHistoryResultToProto preserves event order, original values, and the resolved request window. +func ListIssueHistoryResultToProto(result entity.ListIssueHistoryResult) *pb.ListIssueHistoryResponse { + events := make([]*pb.IssueHistoryEvent, len(result.Events)) + for i, entry := range result.Events { + events[i] = &pb.IssueHistoryEvent{ + TaskId: entry.Log.TaskID, + UnitId: entry.Log.UnitID, + Event: string(entry.Log.Event), + BuildId: entry.Log.BuildID, + TimestampMs: entry.Log.TimestampMs, + FirstSeenBuildId: entry.Log.FirstSeenBuildID, + RequestId: entry.RequestID, + } + } + + return &pb.ListIssueHistoryResponse{ + Events: events, + NextPageToken: result.NextPageToken, + AcceptedAtOrAfterMs: result.AcceptedAtOrAfterMs, + AcceptedBeforeMs: result.AcceptedBeforeMs, + } +} diff --git a/service/stovepipe/server/mapper/issue_history_test.go b/service/stovepipe/server/mapper/issue_history_test.go new file mode 100644 index 000000000..cbb46aeaf --- /dev/null +++ b/service/stovepipe/server/mapper/issue_history_test.go @@ -0,0 +1,118 @@ +// Copyright (c) 2026 Uber Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mapper + +import ( + "testing" + + "github.com/stretchr/testify/require" + pb "github.com/uber/submitqueue/api/stovepipe/protopb" + "github.com/uber/submitqueue/stovepipe/entity" +) + +func TestProtoToListIssueHistoryRequest(t *testing.T) { + for _, tt := range []struct { + name string + req *pb.ListIssueHistoryRequest + want entity.ListIssueHistoryRequest + }{ + {name: "nil request"}, + { + name: "omitted bounds", + req: &pb.ListIssueHistoryRequest{Queue: "queue", TaskId: "task"}, + want: entity.ListIssueHistoryRequest{Queue: "queue", TaskID: "task"}, + }, + { + name: "explicit zero lower bound", + req: &pb.ListIssueHistoryRequest{AcceptedLowerBound: &pb.ListIssueHistoryRequest_AcceptedAtOrAfterMs{}}, + want: entity.ListIssueHistoryRequest{HasAcceptedAtOrAfterMs: true}, + }, + { + name: "explicit zero upper bound", + req: &pb.ListIssueHistoryRequest{AcceptedUpperBound: &pb.ListIssueHistoryRequest_AcceptedBeforeMs{}}, + want: entity.ListIssueHistoryRequest{HasAcceptedBeforeMs: true}, + }, + { + name: "explicit window and pagination", + req: &pb.ListIssueHistoryRequest{ + Queue: "queue", + TaskId: "task", + UnitId: "unit", + PageSize: 2, + PageToken: "token", + AcceptedLowerBound: &pb.ListIssueHistoryRequest_AcceptedAtOrAfterMs{AcceptedAtOrAfterMs: 100}, + AcceptedUpperBound: &pb.ListIssueHistoryRequest_AcceptedBeforeMs{AcceptedBeforeMs: 200}, + }, + want: entity.ListIssueHistoryRequest{ + Queue: "queue", TaskID: "task", UnitID: "unit", PageSize: 2, PageToken: "token", + AcceptedAtOrAfterMs: 100, HasAcceptedAtOrAfterMs: true, AcceptedBeforeMs: 200, + HasAcceptedBeforeMs: true, + }, + }, + { + name: "invalid values reach controller unchanged", + req: &pb.ListIssueHistoryRequest{ + PageSize: -1, + AcceptedLowerBound: &pb.ListIssueHistoryRequest_AcceptedAtOrAfterMs{AcceptedAtOrAfterMs: -100}, + }, + want: entity.ListIssueHistoryRequest{PageSize: -1, AcceptedAtOrAfterMs: -100, HasAcceptedAtOrAfterMs: true}, + }, + } { + t.Run(tt.name, func(t *testing.T) { + require.Equal(t, tt.want, ProtoToListIssueHistoryRequest(tt.req)) + }) + } +} + +func TestListIssueHistoryResultToProto(t *testing.T) { + for _, tt := range []struct { + name string + result entity.ListIssueHistoryResult + want *pb.ListIssueHistoryResponse + }{ + { + name: "empty page", + want: &pb.ListIssueHistoryResponse{Events: []*pb.IssueHistoryEvent{}}, + }, + { + name: "original events and request window", + result: entity.ListIssueHistoryResult{ + Events: []entity.IssueHistoryEntry{ + { + Log: entity.IssueLog{TaskID: "test", UnitID: "unit", Event: entity.IssueEventReported, BuildID: "build/2", TimestampMs: 9007199254740993, FirstSeenBuildID: "build/1"}, + RequestID: "12", + }, + {Log: entity.IssueLog{Event: entity.IssueEventClosed, BuildID: "build/1", TimestampMs: 100}}, + }, + NextPageToken: "next", + AcceptedAtOrAfterMs: 100, + AcceptedBeforeMs: 200, + }, + want: &pb.ListIssueHistoryResponse{ + Events: []*pb.IssueHistoryEvent{ + {TaskId: "test", UnitId: "unit", Event: "reported", BuildId: "build/2", TimestampMs: 9007199254740993, FirstSeenBuildId: "build/1", RequestId: "12"}, + {Event: "closed", BuildId: "build/1", TimestampMs: 100}, + }, + NextPageToken: "next", + AcceptedAtOrAfterMs: 100, + AcceptedBeforeMs: 200, + }, + }, + } { + t.Run(tt.name, func(t *testing.T) { + require.Equal(t, tt.want, ListIssueHistoryResultToProto(tt.result)) + }) + } +} diff --git a/stovepipe/controller/BUILD.bazel b/stovepipe/controller/BUILD.bazel index 6d659e36d..67f966770 100644 --- a/stovepipe/controller/BUILD.bazel +++ b/stovepipe/controller/BUILD.bazel @@ -7,6 +7,7 @@ go_library( "get_queue_status.go", "ingest.go", "list.go", + "list_issue_history.go", "list_open_issues.go", "list_pagination.go", "ping.go", @@ -45,6 +46,7 @@ go_test( "ingest_full_test.go", "ingest_test.go", "list_consistency_test.go", + "list_issue_history_test.go", "list_open_issues_test.go", "list_pagination_test.go", "list_test.go", diff --git a/stovepipe/controller/list_issue_history.go b/stovepipe/controller/list_issue_history.go new file mode 100644 index 000000000..fc446285b --- /dev/null +++ b/stovepipe/controller/list_issue_history.go @@ -0,0 +1,371 @@ +// Copyright (c) 2026 Uber Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package controller + +//go:generate mockgen -source=list_issue_history.go -destination=mock/list_issue_history_mock.go -package=mock + +import ( + "context" + "encoding/base64" + "encoding/json" + "fmt" + "time" + + "github.com/uber-go/tally" + "github.com/uber/submitqueue/platform/base/id" + "github.com/uber/submitqueue/platform/metrics" + "github.com/uber/submitqueue/stovepipe/entity" + "github.com/uber/submitqueue/stovepipe/extension/storage" + "go.uber.org/zap" +) + +// ListIssueHistoryController reads retained issue occurrences across requests. +type ListIssueHistoryController interface { + ListIssueHistory(context.Context, entity.ListIssueHistoryRequest) (entity.ListIssueHistoryResult, error) +} + +type listIssueHistoryController struct { + logger *zap.SugaredLogger + scope tally.Scope + stores storage.Factory + configuredQueues map[string]struct{} + now func() time.Time +} + +const ( + issueHistoryPageTokenVersion = 1 + maxIssueHistoryRequests = 200 + maxIssueHistorySummaries = 200 +) + +type issueHistoryPageToken struct { + Version int `json:"version"` + Queue string `json:"queue"` + TaskID string `json:"task_id"` + UnitID string `json:"unit_id"` + AcceptedAtOrAfterMs int64 `json:"accepted_at_or_after_ms"` + AcceptedBeforeMs int64 `json:"accepted_before_ms"` + Before storage.RequestAcceptanceCursor `json:"before"` + AfterIssue storage.RequestIssueSummaryCursor `json:"after_issue"` +} + +// NewListIssueHistoryController restricts reads to configured queues. +func NewListIssueHistoryController(logger *zap.SugaredLogger, scope tally.Scope, stores storage.Factory, configuredQueues []string) ListIssueHistoryController { + queues := make(map[string]struct{}, len(configuredQueues)) + for _, queue := range configuredQueues { + queues[queue] = struct{}{} + } + + return &listIssueHistoryController{ + logger: logger, + scope: scope.SubScope("list_issue_history_controller"), + stores: stores, + configuredQueues: queues, + now: time.Now, + } +} + +func (c *listIssueHistoryController) ListIssueHistory(ctx context.Context, req entity.ListIssueHistoryRequest) (result entity.ListIssueHistoryResult, retErr error) { + op := metrics.Begin(c.scope, "list", metrics.StorageLatencyBuckets, metrics.TagsFromContext(ctx)...) + defer func() { op.Complete(retErr) }() + + if req.Queue == "" || len(req.Queue) > maxHistoryIdentifierBytes { + return result, fmt.Errorf("queue must be nonempty and at most %d bytes: %w", maxHistoryIdentifierBytes, ErrInvalidRequest) + } + if _, ok := c.configuredQueues[req.Queue]; !ok { + return result, fmt.Errorf("queue %q is not configured: %w", req.Queue, ErrInvalidRequest) + } + if len(req.TaskID) > maxHistoryIdentifierBytes { + return result, fmt.Errorf("task ID must be at most %d bytes: %w", maxHistoryIdentifierBytes, ErrInvalidRequest) + } + if len(req.UnitID) > 1024 { + return result, fmt.Errorf("unit ID must be at most 1024 bytes: %w", ErrInvalidRequest) + } + if req.TaskID == "" && req.UnitID != "" { + return result, fmt.Errorf("unit ID requires a task ID: %w", ErrInvalidRequest) + } + + token, err := resolveIssueHistoryPageToken(req, c.now().UnixMilli()) + if err != nil { + return result, err + } + + store, err := c.stores.For(storage.Config{QueueName: req.Queue}) + if err != nil { + return result, fmt.Errorf("resolve issue history storage: %w", err) + } + + bounds := storage.RequestAcceptanceRange{ + AcceptedAtOrAfterMs: token.AcceptedAtOrAfterMs, + AcceptedBeforeMs: token.AcceptedBeforeMs, + Before: token.Before, + } + + pageSize := int(req.PageSize) + if pageSize == 0 { + pageSize = defaultListPageSize + } + + scan, err := scanIssueHistoryPage(ctx, store, req.TaskID, req.UnitID, bounds, token.AfterIssue, pageSize) + if err != nil { + return result, err + } + + result.AcceptedAtOrAfterMs = token.AcceptedAtOrAfterMs + result.AcceptedBeforeMs = token.AcceptedBeforeMs + result.Events = scan.events + + if scan.hasMore { + token.Before = storage.RequestAcceptanceCursor{AcceptedAtMs: scan.last.AcceptedAtMs, RequestID: scan.last.RequestID} + token.AfterIssue = scan.afterIssue + data, err := json.Marshal(token) + if err != nil { + return entity.ListIssueHistoryResult{}, fmt.Errorf("encode issue history continuation: %w", err) + } + + result.NextPageToken = base64.RawURLEncoding.EncodeToString(data) + } + + c.logger.Debugw("issue history listed", + "queue", req.Queue, + "task_id", req.TaskID, + "unit_id", req.UnitID, + "event_count", len(result.Events), + "has_next_page", result.NextPageToken != "", + ) + return result, nil +} + +type issueHistoryPageScan struct { + events []entity.IssueHistoryEntry + last entity.RequestAcceptance // Last examined request, even if skipped. + afterIssue storage.RequestIssueSummaryCursor + hasMore bool +} + +func scanIssueHistoryPage(ctx context.Context, store storage.Storage, taskID, unitID string, bounds storage.RequestAcceptanceRange, afterIssue storage.RequestIssueSummaryCursor, pageSize int) (issueHistoryPageScan, error) { + scan := issueHistoryPageScan{ + events: make([]entity.IssueHistoryEntry, 0, pageSize), + afterIssue: afterIssue, + } + requests := store.GetRequestAcceptanceStore() + inspected := 0 + inspectedIssues := 0 + + for { + if err := ctx.Err(); err != nil { + return issueHistoryPageScan{}, err + } + + want := min(pageSize-len(scan.events), maxIssueHistoryRequests-inspected) + bounds.Limit = want + 1 + batch, err := requests.List(ctx, bounds) + if err != nil { + return issueHistoryPageScan{}, fmt.Errorf("read issue history requests: %w", err) + } + if scan.afterIssue.TaskID != "" { + // Before normally excludes this request; a partial issue page must resume within it first. + batch = append([]entity.RequestAcceptance{{RequestID: bounds.Before.RequestID, AcceptedAtMs: bounds.Before.AcceptedAtMs}}, batch...) + } + + for i, request := range batch[:min(len(batch), want)] { + if err := ctx.Err(); err != nil { + return issueHistoryPageScan{}, err + } + + scan.last = request + inspected++ + + requestScan, err := scanRequestIssueHistory(ctx, store, request.RequestID, taskID, unitID, + scan.afterIssue, pageSize-len(scan.events), maxIssueHistorySummaries-inspectedIssues) + if err != nil { + return issueHistoryPageScan{}, err + } + + scan.events = append(scan.events, requestScan.events...) + inspectedIssues += requestScan.inspected + scan.afterIssue = requestScan.resumeAfter + + if scan.afterIssue.TaskID != "" { + scan.hasMore = true + return scan, nil + } + if len(scan.events) == pageSize || inspectedIssues == maxIssueHistorySummaries { + scan.hasMore = len(batch) > i+1 + return scan, nil + } + } + + if err := ctx.Err(); err != nil { + return issueHistoryPageScan{}, err + } + if len(batch) <= want { + return scan, nil + } + if inspected == maxIssueHistoryRequests { + scan.hasMore = true + return scan, nil + } + + bounds.Before = storage.RequestAcceptanceCursor{AcceptedAtMs: scan.last.AcceptedAtMs, RequestID: scan.last.RequestID} + } +} + +type requestIssueHistoryScan struct { + events []entity.IssueHistoryEntry + inspected int + resumeAfter storage.RequestIssueSummaryCursor +} + +func scanRequestIssueHistory(ctx context.Context, store storage.Storage, requestID, taskID, unitID string, afterIssue storage.RequestIssueSummaryCursor, pageSize, budget int) (requestIssueHistoryScan, error) { + var scan requestIssueHistoryScan + summaries := store.GetRequestIssueSummaryStore() + logs := store.GetIssueLogStore() + position := afterIssue + + for { + if err := ctx.Err(); err != nil { + return requestIssueHistoryScan{}, err + } + + limit := min(pageSize-len(scan.events), budget-scan.inspected) + var rows []entity.RequestIssueSummary + if taskID == "" { + var err error + rows, err = summaries.List(ctx, requestID, storage.RequestIssueSummaryRange{After: position, Limit: limit + 1}) + if err != nil { + return requestIssueHistoryScan{}, fmt.Errorf("read request issue summaries: %w", err) + } + } else { + summary, err := summaries.Get(ctx, requestID, taskID, unitID) + if storage.IsNotFound(err) { + return scan, nil + } + if err != nil { + return requestIssueHistoryScan{}, fmt.Errorf("read request issue summary: %w", err) + } + rows = []entity.RequestIssueSummary{summary} + } + + for _, summary := range rows[:min(len(rows), limit)] { + if err := ctx.Err(); err != nil { + return requestIssueHistoryScan{}, err + } + + scan.inspected++ + position = storage.RequestIssueSummaryCursor{TaskID: summary.TaskID, UnitID: summary.UnitID} + + switch summary.Kind { + case entity.RequestIssueKindOpened, entity.RequestIssueKindReported, entity.RequestIssueKindClosed: + default: + continue + } + + logTask, logUnit := taskID, unitID + if taskID == "" { + logTask, logUnit = summary.TaskID, summary.UnitID + } + log, err := logs.Get(ctx, logTask, logUnit, summary.BuildID, entity.IssueEvent(summary.Kind)) + if storage.IsNotFound(err) { + continue + } + if err != nil { + return requestIssueHistoryScan{}, fmt.Errorf("read issue history: %w", err) + } + + scan.events = append(scan.events, entity.IssueHistoryEntry{Log: log, RequestID: requestID}) + } + + if err := ctx.Err(); err != nil { + return requestIssueHistoryScan{}, err + } + if len(rows) <= limit { + return scan, nil + } + if len(scan.events) == pageSize || scan.inspected == budget { + scan.resumeAfter = position + return scan, nil + } + } +} + +func resolveIssueHistoryPageToken(req entity.ListIssueHistoryRequest, nowMs int64) (issueHistoryPageToken, error) { + token := issueHistoryPageToken{ + Version: issueHistoryPageTokenVersion, + Queue: req.Queue, + TaskID: req.TaskID, + UnitID: req.UnitID, + AcceptedBeforeMs: nowMs, + } + if req.PageSize < 0 || req.PageSize > maxListPageSize { + return token, fmt.Errorf("invalid issue history page size: %w", ErrInvalidRequest) + } + + if req.PageToken == "" { + if req.HasAcceptedAtOrAfterMs { + token.AcceptedAtOrAfterMs = req.AcceptedAtOrAfterMs + } + if req.HasAcceptedBeforeMs { + token.AcceptedBeforeMs = req.AcceptedBeforeMs + } + + if token.AcceptedAtOrAfterMs < 0 || token.AcceptedBeforeMs <= token.AcceptedAtOrAfterMs { + return token, fmt.Errorf("invalid issue history request window: %w", ErrInvalidRequest) + } + + return token, nil + } + + data, err := base64.RawURLEncoding.Strict().DecodeString(req.PageToken) + if err != nil { + return token, fmt.Errorf("invalid issue history continuation: %w", ErrInvalidRequest) + } + + token = issueHistoryPageToken{} + if err := json.Unmarshal(data, &token); err != nil { + return token, fmt.Errorf("invalid issue history continuation: %w", ErrInvalidRequest) + } + + if token.Version != issueHistoryPageTokenVersion || + token.Queue != req.Queue || + token.TaskID != req.TaskID || + token.UnitID != req.UnitID || + (req.HasAcceptedAtOrAfterMs && req.AcceptedAtOrAfterMs != token.AcceptedAtOrAfterMs) || + (req.HasAcceptedBeforeMs && req.AcceptedBeforeMs != token.AcceptedBeforeMs) { + return token, fmt.Errorf("issue history continuation does not match the issue and request window: %w", ErrInvalidRequest) + } + + after := token.AfterIssue + if token.TaskID != "" && after.TaskID != "" { + return token, fmt.Errorf("exact-issue history cannot include an issue cursor: %w", ErrInvalidRequest) + } + if after.TaskID == "" && after.UnitID != "" { + return token, fmt.Errorf("issue history cursor requires a task ID: %w", ErrInvalidRequest) + } + if len(after.TaskID) > maxHistoryIdentifierBytes || len(after.UnitID) > 1024 { + return token, fmt.Errorf("issue history cursor exceeds identifier limits: %w", ErrInvalidRequest) + } + + if token.AcceptedAtOrAfterMs < 0 || + token.AcceptedBeforeMs <= token.AcceptedAtOrAfterMs || + token.Before.AcceptedAtMs <= 0 || + token.Before.AcceptedAtMs < token.AcceptedAtOrAfterMs || + token.Before.AcceptedAtMs >= token.AcceptedBeforeMs || + id.Validate(token.Before.RequestID) != nil { + return token, fmt.Errorf("invalid issue history request position: %w", ErrInvalidRequest) + } + + return token, nil +} diff --git a/stovepipe/controller/list_issue_history_test.go b/stovepipe/controller/list_issue_history_test.go new file mode 100644 index 000000000..f9a969bba --- /dev/null +++ b/stovepipe/controller/list_issue_history_test.go @@ -0,0 +1,511 @@ +// Copyright (c) 2026 Uber Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package controller + +import ( + "context" + "encoding/base64" + "encoding/json" + "fmt" + "strconv" + "strings" + "testing" + "time" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "github.com/uber-go/tally" + "github.com/uber/submitqueue/stovepipe/entity" + "github.com/uber/submitqueue/stovepipe/extension/storage" + storagemock "github.com/uber/submitqueue/stovepipe/extension/storage/mock" + "go.uber.org/mock/gomock" + "go.uber.org/zap" +) + +type issueHistoryFixture struct { + c *listIssueHistoryController + requests *storagemock.MockRequestAcceptanceStore + summaries *storagemock.MockRequestIssueSummaryStore + logs *storagemock.MockIssueLogStore +} + +func newIssueHistoryFixture(t *testing.T) issueHistoryFixture { + t.Helper() + + mocks := gomock.NewController(t) + factory := storagemock.NewMockFactory(mocks) + store := storagemock.NewMockStorage(mocks) + f := issueHistoryFixture{ + c: NewListIssueHistoryController(zap.NewNop().Sugar(), tally.NoopScope, factory, []string{"queue"}).(*listIssueHistoryController), + requests: storagemock.NewMockRequestAcceptanceStore(mocks), + summaries: storagemock.NewMockRequestIssueSummaryStore(mocks), + logs: storagemock.NewMockIssueLogStore(mocks), + } + f.c.now = func() time.Time { return time.UnixMilli(1000) } + factory.EXPECT().For(storage.Config{QueueName: "queue"}).Return(store, nil).AnyTimes() + store.EXPECT().GetRequestAcceptanceStore().Return(f.requests).AnyTimes() + store.EXPECT().GetRequestIssueSummaryStore().Return(f.summaries).AnyTimes() + store.EXPECT().GetIssueLogStore().Return(f.logs).AnyTimes() + + return f +} + +func TestIssueHistoryPagination(t *testing.T) { + f := newIssueHistoryFixture(t) + requests := []entity.RequestAcceptance{ + {Queue: "queue", RequestID: "3", AcceptedAtMs: 300}, + {Queue: "queue", RequestID: "2", AcceptedAtMs: 200}, + {Queue: "queue", RequestID: "1", AcceptedAtMs: 100}, + } + rows := []entity.IssueLog{ + {TaskID: "task", UnitID: "unit", BuildID: "a", Event: entity.IssueEventClosed, TimestampMs: 900, FirstSeenBuildID: "c"}, + {TaskID: "task", UnitID: "unit", BuildID: "b", Event: entity.IssueEventReported, TimestampMs: 100, FirstSeenBuildID: "c"}, + {TaskID: "task", UnitID: "unit", BuildID: "c", Event: entity.IssueEventOpened, TimestampMs: 5000, FirstSeenBuildID: "c"}, + } + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{AcceptedBeforeMs: 1000, Limit: 3}).Return(requests, nil) + for i, row := range rows { + f.summaries.EXPECT().Get(gomock.Any(), requests[i].RequestID, "task", "unit").Return(entity.RequestIssueSummary{BuildID: row.BuildID, Kind: entity.RequestIssueKind(row.Event)}, nil) + f.logs.EXPECT().Get(gomock.Any(), "task", "unit", row.BuildID, row.Event).Return(row, nil) + } + + req := entity.ListIssueHistoryRequest{Queue: "queue", TaskID: "task", UnitID: "unit", PageSize: 2} + + first, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.Equal(t, []entity.IssueHistoryEntry{{Log: rows[0], RequestID: "3"}, {Log: rows[1], RequestID: "2"}}, first.Events) + require.NotEmpty(t, first.NextPageToken) + require.EqualValues(t, 0, first.AcceptedAtOrAfterMs) + require.EqualValues(t, 1000, first.AcceptedBeforeMs) + f.c.now = func() time.Time { return time.UnixMilli(2000) } + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{ + AcceptedBeforeMs: 1000, Before: storage.RequestAcceptanceCursor{AcceptedAtMs: 200, RequestID: "2"}, Limit: 3, + }).Return(requests[2:], nil) + req.PageToken = first.NextPageToken + + last, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.Equal(t, []entity.IssueHistoryEntry{{Log: rows[2], RequestID: "1"}}, last.Events) + require.Empty(t, last.NextPageToken) + require.EqualValues(t, 1000, last.AcceptedBeforeMs) +} + +func TestIssueHistoryBoundsSkippedRequestWork(t *testing.T) { + for _, count := range []int{0, defaultListPageSize, defaultListPageSize + 1, maxIssueHistoryRequests, maxIssueHistoryRequests + 1} { + t.Run(strconv.Itoa(count), func(t *testing.T) { + f := newIssueHistoryFixture(t) + requests := make([]entity.RequestAcceptance, count) + for i := range requests { + requests[i] = entity.RequestAcceptance{Queue: "queue", RequestID: strconv.Itoa(900 - i), AcceptedAtMs: int64(900 - i)} + } + f.requests.EXPECT().List(gomock.Any(), gomock.Any()).DoAndReturn(func(_ context.Context, bounds storage.RequestAcceptanceRange) ([]entity.RequestAcceptance, error) { + start := 0 + if bounds.Before.AcceptedAtMs > 0 { + start = 901 - int(bounds.Before.AcceptedAtMs) + } + return requests[start:min(start+bounds.Limit, len(requests))], nil + }).AnyTimes() + f.summaries.EXPECT().Get(gomock.Any(), gomock.Any(), "task", "").Return(entity.RequestIssueSummary{}, storage.ErrNotFound).Times(count) + + req := entity.ListIssueHistoryRequest{Queue: "queue", TaskID: "task"} + + first, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.Empty(t, first.Events) + if count <= maxIssueHistoryRequests { + require.Empty(t, first.NextPageToken) + return + } + require.NotEmpty(t, first.NextPageToken) + + data, err := base64.RawURLEncoding.DecodeString(first.NextPageToken) + require.NoError(t, err) + var token issueHistoryPageToken + require.NoError(t, json.Unmarshal(data, &token)) + require.Equal(t, requests[maxIssueHistoryRequests-1].RequestID, token.Before.RequestID) + req.PageToken = first.NextPageToken + + last, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.Empty(t, last.Events) + require.Empty(t, last.NextPageToken) + }) + } +} + +func TestIssueHistoryFillsPageAcrossSkippedRequests(t *testing.T) { + f := newIssueHistoryFixture(t) + requests := []entity.RequestAcceptance{ + {Queue: "queue", RequestID: "5", AcceptedAtMs: 500}, + {Queue: "queue", RequestID: "4", AcceptedAtMs: 400}, + {Queue: "queue", RequestID: "3", AcceptedAtMs: 300}, + {Queue: "queue", RequestID: "2", AcceptedAtMs: 200}, + {Queue: "queue", RequestID: "1", AcceptedAtMs: 100}, + } + gomock.InOrder( + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{AcceptedBeforeMs: 1000, Limit: 3}).Return(requests[:3], nil), + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{AcceptedBeforeMs: 1000, Before: storage.RequestAcceptanceCursor{AcceptedAtMs: 400, RequestID: "4"}, Limit: 2}).Return(requests[2:4], nil), + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{AcceptedBeforeMs: 1000, Before: storage.RequestAcceptanceCursor{AcceptedAtMs: 300, RequestID: "3"}, Limit: 2}).Return(requests[3:], nil), + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{AcceptedBeforeMs: 1000, Before: storage.RequestAcceptanceCursor{AcceptedAtMs: 200, RequestID: "2"}, Limit: 3}).Return(requests[4:], nil), + ) + f.summaries.EXPECT().Get(gomock.Any(), "5", "task", "").Return(entity.RequestIssueSummary{}, storage.ErrNotFound) + for _, requestID := range []string{"4", "3", "2", "1"} { + f.summaries.EXPECT().Get(gomock.Any(), requestID, "task", "").Return(entity.RequestIssueSummary{BuildID: requestID, Kind: entity.RequestIssueKindReported}, nil) + if requestID == "3" { + f.logs.EXPECT().Get(gomock.Any(), "task", "", requestID, entity.IssueEventReported).Return(entity.IssueLog{}, storage.ErrNotFound) + } else { + f.logs.EXPECT().Get(gomock.Any(), "task", "", requestID, entity.IssueEventReported).Return(entity.IssueLog{BuildID: requestID, Event: entity.IssueEventReported}, nil) + } + } + + req := entity.ListIssueHistoryRequest{Queue: "queue", TaskID: "task", PageSize: 2} + + first, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.Equal(t, []entity.IssueHistoryEntry{ + {RequestID: "4", Log: entity.IssueLog{BuildID: "4", Event: entity.IssueEventReported}}, + {RequestID: "2", Log: entity.IssueLog{BuildID: "2", Event: entity.IssueEventReported}}, + }, first.Events) + require.NotEmpty(t, first.NextPageToken) + req.PageToken = first.NextPageToken + + last, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.Equal(t, []entity.IssueHistoryEntry{{RequestID: "1", Log: entity.IssueLog{BuildID: "1", Event: entity.IssueEventReported}}}, last.Events) + require.Empty(t, last.NextPageToken) +} + +func TestIssueHistoryExhaustsFullEventPage(t *testing.T) { + f := newIssueHistoryFixture(t) + requests := []entity.RequestAcceptance{{Queue: "queue", RequestID: "2", AcceptedAtMs: 200}, {Queue: "queue", RequestID: "1", AcceptedAtMs: 100}} + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{AcceptedBeforeMs: 1000, Limit: 3}).Return(requests, nil) + for _, request := range requests { + f.summaries.EXPECT().Get(gomock.Any(), request.RequestID, "task", "").Return(entity.RequestIssueSummary{Kind: entity.RequestIssueKindReported, BuildID: request.RequestID}, nil) + f.logs.EXPECT().Get(gomock.Any(), "task", "", request.RequestID, entity.IssueEventReported).Return(entity.IssueLog{BuildID: request.RequestID, Event: entity.IssueEventReported}, nil) + } + + result, err := f.c.ListIssueHistory(context.Background(), entity.ListIssueHistoryRequest{Queue: "queue", TaskID: "task", PageSize: 2}) + require.NoError(t, err) + require.Len(t, result.Events, 2) + require.Empty(t, result.NextPageToken) +} + +func TestIssueHistoryRequestWindowAndMissingProjections(t *testing.T) { + f := newIssueHistoryFixture(t) + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{AcceptedAtOrAfterMs: 100, AcceptedBeforeMs: 400, Limit: defaultListPageSize + 1}).Return([]entity.RequestAcceptance{ + {Queue: "queue", RequestID: "4", AcceptedAtMs: 350}, + {Queue: "queue", RequestID: "3", AcceptedAtMs: 300}, + {Queue: "queue", RequestID: "2", AcceptedAtMs: 200}, + {Queue: "queue", RequestID: "1", AcceptedAtMs: 100}, + }, nil) + f.summaries.EXPECT().Get(gomock.Any(), "4", "task", "").Return(entity.RequestIssueSummary{Kind: "unknown", BuildID: "unsupported"}, nil) + f.summaries.EXPECT().Get(gomock.Any(), "3", "task", "").Return(entity.RequestIssueSummary{}, storage.ErrNotFound) + f.summaries.EXPECT().Get(gomock.Any(), "2", "task", "").Return(entity.RequestIssueSummary{Kind: entity.RequestIssueKindOpened, BuildID: "missing"}, nil) + f.logs.EXPECT().Get(gomock.Any(), "task", "", "missing", entity.IssueEventOpened).Return(entity.IssueLog{}, storage.ErrNotFound) + f.summaries.EXPECT().Get(gomock.Any(), "1", "task", "").Return(entity.RequestIssueSummary{Kind: entity.RequestIssueKindOpened, BuildID: "build"}, nil) + log := entity.IssueLog{TaskID: "task", BuildID: "build", Event: entity.IssueEventOpened, TimestampMs: 900} + f.logs.EXPECT().Get(gomock.Any(), "task", "", "build", entity.IssueEventOpened).Return(log, nil) + + result, err := f.c.ListIssueHistory(context.Background(), entity.ListIssueHistoryRequest{ + Queue: "queue", TaskID: "task", HasAcceptedAtOrAfterMs: true, AcceptedAtOrAfterMs: 100, HasAcceptedBeforeMs: true, AcceptedBeforeMs: 400, + }) + require.NoError(t, err) + require.Equal(t, []entity.IssueHistoryEntry{{Log: log, RequestID: "1"}}, result.Events) + require.EqualValues(t, 100, result.AcceptedAtOrAfterMs) + require.EqualValues(t, 400, result.AcceptedBeforeMs) + require.Empty(t, result.NextPageToken) +} + +func TestIssueHistoryErrorsDoNotReturnPartialPages(t *testing.T) { + for _, stage := range []string{"requests", "summaries", "logs", "canceled"} { + t.Run(stage, func(t *testing.T) { + f := newIssueHistoryFixture(t) + var requestErr error + if stage == "requests" { + requestErr = assert.AnError + } + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{AcceptedBeforeMs: 1000, Limit: defaultListPageSize + 1}).Return([]entity.RequestAcceptance{ + {Queue: "queue", RequestID: "2", AcceptedAtMs: 200}, {Queue: "queue", RequestID: "1", AcceptedAtMs: 100}, + }, requestErr) + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() + if stage != "requests" { + f.summaries.EXPECT().Get(gomock.Any(), "2", "task", "").Return(entity.RequestIssueSummary{Kind: entity.RequestIssueKindOpened, BuildID: "first"}, nil) + f.logs.EXPECT().Get(gomock.Any(), "task", "", "first", entity.IssueEventOpened).DoAndReturn(func(context.Context, string, string, string, entity.IssueEvent) (entity.IssueLog, error) { + if stage == "canceled" { + cancel() + } + return entity.IssueLog{BuildID: "first", Event: entity.IssueEventOpened}, nil + }) + if stage != "canceled" { + var summaryErr error + if stage == "summaries" { + summaryErr = assert.AnError + } + f.summaries.EXPECT().Get(gomock.Any(), "1", "task", "").Return(entity.RequestIssueSummary{Kind: entity.RequestIssueKindOpened, BuildID: "second"}, summaryErr) + if stage == "logs" { + f.logs.EXPECT().Get(gomock.Any(), "task", "", "second", entity.IssueEventOpened).Return(entity.IssueLog{}, assert.AnError) + } + } + } + got, err := f.c.ListIssueHistory(ctx, entity.ListIssueHistoryRequest{Queue: "queue", TaskID: "task"}) + want := assert.AnError + if stage == "canceled" { + want = context.Canceled + } + require.ErrorIs(t, err, want) + require.Empty(t, got.Events) + require.Empty(t, got.NextPageToken) + }) + } +} + +func TestIssueHistoryStorageSelectionFailure(t *testing.T) { + factory := storagemock.NewMockFactory(gomock.NewController(t)) + factory.EXPECT().For(storage.Config{QueueName: "queue"}).Return(nil, assert.AnError) + c := NewListIssueHistoryController(zap.NewNop().Sugar(), tally.NoopScope, factory, []string{"queue"}) + _, err := c.ListIssueHistory(context.Background(), entity.ListIssueHistoryRequest{Queue: "queue", TaskID: "task"}) + require.ErrorIs(t, err, assert.AnError) +} + +func TestIssueHistoryInvalidRequests(t *testing.T) { + valid := issueHistoryPageToken{Version: issueHistoryPageTokenVersion, Queue: "queue", TaskID: "task", UnitID: "unit", AcceptedBeforeMs: 1000, + Before: storage.RequestAcceptanceCursor{AcceptedAtMs: 100, RequestID: "1"}} + for _, test := range []struct { + name string + change func(*issueHistoryPageToken) + }{ + {"queue", func(t *issueHistoryPageToken) { t.Queue = "other" }}, + {"task", func(t *issueHistoryPageToken) { t.TaskID = "other" }}, + {"unit", func(t *issueHistoryPageToken) { t.UnitID = "" }}, + {"version", func(t *issueHistoryPageToken) { t.Version = issueHistoryPageTokenVersion + 1 }}, + {"issue position with exact filter", func(t *issueHistoryPageToken) { t.AfterIssue.TaskID = "task" }}, + {"unit-only position with exact filter", func(t *issueHistoryPageToken) { t.AfterIssue.UnitID = "unit" }}, + {"negative window", func(t *issueHistoryPageToken) { t.AcceptedAtOrAfterMs = -1 }}, + {"empty window", func(t *issueHistoryPageToken) { t.AcceptedBeforeMs = 0 }}, + {"missing position", func(t *issueHistoryPageToken) { t.Before.AcceptedAtMs = 0 }}, + {"outside window", func(t *issueHistoryPageToken) { t.Before.AcceptedAtMs = 1000 }}, + {"before window", func(t *issueHistoryPageToken) { t.AcceptedAtOrAfterMs = 200 }}, + {"request id", func(t *issueHistoryPageToken) { t.Before.RequestID = "01" }}, + } { + t.Run(test.name, func(t *testing.T) { + token := valid + test.change(&token) + + data, err := json.Marshal(token) + require.NoError(t, err) + _, err = resolveIssueHistoryPageToken(entity.ListIssueHistoryRequest{Queue: "queue", TaskID: "task", UnitID: "unit", PageToken: base64.RawURLEncoding.EncodeToString(data)}, 1000) + require.ErrorIs(t, err, ErrInvalidRequest) + }) + } + + for _, position := range []storage.RequestIssueSummaryCursor{ + {UnitID: "unit"}, + {TaskID: strings.Repeat("t", maxHistoryIdentifierBytes+1)}, + {TaskID: "task", UnitID: strings.Repeat("u", 1025)}, + } { + token := valid + token.TaskID, token.UnitID = "", "" + token.AfterIssue = position + + data, err := json.Marshal(token) + require.NoError(t, err) + _, err = resolveIssueHistoryPageToken(entity.ListIssueHistoryRequest{Queue: "queue", PageToken: base64.RawURLEncoding.EncodeToString(data)}, 1000) + require.ErrorIs(t, err, ErrInvalidRequest) + } + + data, err := json.Marshal(valid) + require.NoError(t, err) + for _, req := range []entity.ListIssueHistoryRequest{ + {Queue: "queue", TaskID: "task", UnitID: "unit", PageToken: base64.RawURLEncoding.EncodeToString(data), HasAcceptedBeforeMs: true, AcceptedBeforeMs: 999}, + {Queue: "queue", TaskID: "task", UnitID: "unit", PageToken: base64.RawURLEncoding.EncodeToString(data), HasAcceptedAtOrAfterMs: true, AcceptedAtOrAfterMs: 1}, + {}, {Queue: "other", TaskID: "task"}, {Queue: "queue", UnitID: "unit"}, + {Queue: "queue", TaskID: strings.Repeat("t", 256)}, {Queue: "queue", TaskID: "task", UnitID: strings.Repeat("u", 1025)}, + {Queue: "queue", TaskID: "task", PageSize: -1}, {Queue: "queue", TaskID: "task", PageSize: 201}, + {Queue: "queue", TaskID: "task", PageToken: "bad!"}, + {Queue: "queue", TaskID: "task", PageToken: base64.RawURLEncoding.EncodeToString([]byte(`{"before":{"AcceptedAtMs":100,"RequestID":"1"}}`))}, + {Queue: "queue", TaskID: "task", PageToken: base64.RawURLEncoding.EncodeToString([]byte("not json"))}, + {Queue: "queue", TaskID: "task", HasAcceptedAtOrAfterMs: true, AcceptedAtOrAfterMs: -1}, + {Queue: "queue", TaskID: "task", HasAcceptedBeforeMs: true}, + } { + factory := storagemock.NewMockFactory(gomock.NewController(t)) + c := NewListIssueHistoryController(zap.NewNop().Sugar(), tally.NoopScope, factory, []string{"queue"}) + _, err := c.ListIssueHistory(context.Background(), req) + require.ErrorIs(t, err, ErrInvalidRequest) + } +} + +func TestIssueHistoryAcrossQueue(t *testing.T) { + for _, pageSize := range []int32{1, 2, 3, 4, 5} { + t.Run(strconv.Itoa(int(pageSize)), func(t *testing.T) { + f := newIssueHistoryFixture(t) + requests := []entity.RequestAcceptance{ + {RequestID: "3", AcceptedAtMs: 300}, + {RequestID: "2", AcceptedAtMs: 200}, + {RequestID: "1", AcceptedAtMs: 100}, + } + summaries := map[string][]entity.RequestIssueSummary{ + "3": { + {TaskID: "build", Kind: entity.RequestIssueKindOpened, BuildID: "newest"}, + {TaskID: "test", UnitID: "a", Kind: entity.RequestIssueKindReported, BuildID: "newest"}, + {TaskID: "test", UnitID: "b", Kind: entity.RequestIssueKindClosed, BuildID: "newest"}, + }, + "1": {{TaskID: "test", UnitID: "a", Kind: entity.RequestIssueKindOpened, BuildID: "oldest"}}, + } + f.requests.EXPECT().List(gomock.Any(), gomock.Any()).DoAndReturn(func(_ context.Context, bounds storage.RequestAcceptanceRange) ([]entity.RequestAcceptance, error) { + var rows []entity.RequestAcceptance + for _, request := range requests { + if bounds.Before.RequestID == "" || request.AcceptedAtMs < bounds.Before.AcceptedAtMs { + rows = append(rows, request) + } + } + return rows[:min(len(rows), bounds.Limit)], nil + }).AnyTimes() + f.summaries.EXPECT().List(gomock.Any(), gomock.Any(), gomock.Any()).DoAndReturn(func(_ context.Context, requestID string, bounds storage.RequestIssueSummaryRange) ([]entity.RequestIssueSummary, error) { + var rows []entity.RequestIssueSummary + for _, summary := range summaries[requestID] { + if summary.TaskID > bounds.After.TaskID || (summary.TaskID == bounds.After.TaskID && summary.UnitID > bounds.After.UnitID) { + rows = append(rows, summary) + } + } + return rows[:min(len(rows), bounds.Limit)], nil + }).AnyTimes() + f.logs.EXPECT().Get(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).DoAndReturn(func(_ context.Context, taskID, unitID, buildID string, event entity.IssueEvent) (entity.IssueLog, error) { + return entity.IssueLog{TaskID: taskID, UnitID: unitID, BuildID: buildID, Event: event}, nil + }).AnyTimes() + + var want, got []entity.IssueHistoryEntry + for _, request := range requests { + for _, summary := range summaries[request.RequestID] { + want = append(want, entity.IssueHistoryEntry{ + RequestID: request.RequestID, + Log: entity.IssueLog{TaskID: summary.TaskID, UnitID: summary.UnitID, BuildID: summary.BuildID, Event: entity.IssueEvent(summary.Kind)}, + }) + } + } + + req := entity.ListIssueHistoryRequest{Queue: "queue", PageSize: pageSize} + for calls := 0; ; calls++ { + require.Less(t, calls, len(want)+1) + result, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.LessOrEqual(t, len(result.Events), int(pageSize)) + got = append(got, result.Events...) + if result.NextPageToken == "" { + break + } + req.PageToken = result.NextPageToken + } + require.Equal(t, want, got) + }) + } +} + +func TestIssueHistoryRefillsWithinRequest(t *testing.T) { + for _, remaining := range []int{0, 1, 2} { + t.Run(strconv.Itoa(remaining), func(t *testing.T) { + f := newIssueHistoryFixture(t) + rows := []entity.RequestIssueSummary{ + {TaskID: "a", Kind: entity.RequestIssueKindReported, BuildID: "build"}, + {TaskID: "b", Kind: "unknown", BuildID: "build"}, + {TaskID: "c", Kind: entity.RequestIssueKindReported, BuildID: "build"}, + {TaskID: "d", Kind: entity.RequestIssueKindReported, BuildID: "build"}, + {TaskID: "e", Kind: entity.RequestIssueKindReported, BuildID: "build"}, + } + for _, task := range []string{"f", "g"}[:remaining] { + rows = append(rows, entity.RequestIssueSummary{TaskID: task, Kind: entity.RequestIssueKindReported, BuildID: "build"}) + } + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{AcceptedBeforeMs: 1000, Limit: 3}). + Return([]entity.RequestAcceptance{{RequestID: "1", AcceptedAtMs: 100}}, nil) + gomock.InOrder( + f.summaries.EXPECT().List(gomock.Any(), "1", storage.RequestIssueSummaryRange{Limit: 3}).Return(rows[:3], nil), + f.summaries.EXPECT().List(gomock.Any(), "1", storage.RequestIssueSummaryRange{After: storage.RequestIssueSummaryCursor{TaskID: "b"}, Limit: 3}).Return(rows[2:5], nil), + f.summaries.EXPECT().List(gomock.Any(), "1", storage.RequestIssueSummaryRange{After: storage.RequestIssueSummaryCursor{TaskID: "d"}, Limit: 2}).Return(rows[4:min(len(rows), 6)], nil), + ) + for _, task := range []string{"a", "d"} { + f.logs.EXPECT().Get(gomock.Any(), task, "", "build", entity.IssueEventReported).Return(entity.IssueLog{}, storage.ErrNotFound) + } + var want []entity.IssueHistoryEntry + for _, task := range []string{"c", "e"} { + log := entity.IssueLog{TaskID: task, BuildID: "build", Event: entity.IssueEventReported} + f.logs.EXPECT().Get(gomock.Any(), task, "", "build", entity.IssueEventReported).Return(log, nil) + want = append(want, entity.IssueHistoryEntry{Log: log, RequestID: "1"}) + } + + req := entity.ListIssueHistoryRequest{Queue: "queue", PageSize: 2} + first, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.Equal(t, want, first.Events) + if remaining == 0 { + require.Empty(t, first.NextPageToken) + return + } + require.NotEmpty(t, first.NextPageToken) + + req.PageToken = first.NextPageToken + f.requests.EXPECT().List(gomock.Any(), storage.RequestAcceptanceRange{ + AcceptedBeforeMs: 1000, Before: storage.RequestAcceptanceCursor{AcceptedAtMs: 100, RequestID: "1"}, Limit: 3, + }).Return(nil, nil) + f.summaries.EXPECT().List(gomock.Any(), "1", storage.RequestIssueSummaryRange{After: storage.RequestIssueSummaryCursor{TaskID: "e"}, Limit: 3}).Return(rows[5:], nil) + var wantLast []entity.IssueHistoryEntry + for _, row := range rows[5:] { + log := entity.IssueLog{TaskID: row.TaskID, BuildID: "build", Event: entity.IssueEventReported} + f.logs.EXPECT().Get(gomock.Any(), row.TaskID, "", "build", entity.IssueEventReported).Return(log, nil) + wantLast = append(wantLast, entity.IssueHistoryEntry{Log: log, RequestID: "1"}) + } + + last, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.Equal(t, wantLast, last.Events) + require.Empty(t, last.NextPageToken) + }) + } +} + +func TestIssueHistoryBoundsQueueSummaryWork(t *testing.T) { + for _, pageSize := range []int32{1, maxListPageSize} { + t.Run(strconv.Itoa(int(pageSize)), func(t *testing.T) { + f := newIssueHistoryFixture(t) + f.requests.EXPECT().List(gomock.Any(), gomock.Any()).Return([]entity.RequestAcceptance{{RequestID: "1", AcceptedAtMs: 100}}, nil) + rows := make([]entity.RequestIssueSummary, maxIssueHistorySummaries+1) + for i := range rows { + rows[i] = entity.RequestIssueSummary{TaskID: fmt.Sprintf("task-%03d", i), Kind: entity.RequestIssueKindReported, BuildID: "build"} + } + f.summaries.EXPECT().List(gomock.Any(), "1", gomock.Any()).DoAndReturn(func(_ context.Context, _ string, bounds storage.RequestIssueSummaryRange) ([]entity.RequestIssueSummary, error) { + batch := rows + for len(batch) > 0 && batch[0].TaskID <= bounds.After.TaskID { + batch = batch[1:] + } + return batch[:min(len(batch), bounds.Limit)], nil + }).AnyTimes() + f.logs.EXPECT().Get(gomock.Any(), gomock.Any(), "", "build", entity.IssueEventReported).Return(entity.IssueLog{}, storage.ErrNotFound).Times(maxIssueHistorySummaries) + + req := entity.ListIssueHistoryRequest{Queue: "queue", PageSize: pageSize} + first, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.Empty(t, first.Events) + require.NotEmpty(t, first.NextPageToken) + + req.PageToken = first.NextPageToken + f.requests.EXPECT().List(gomock.Any(), gomock.Any()).Return(nil, nil) + log := entity.IssueLog{TaskID: rows[maxIssueHistorySummaries].TaskID, BuildID: "build", Event: entity.IssueEventReported} + f.logs.EXPECT().Get(gomock.Any(), log.TaskID, "", "build", entity.IssueEventReported).Return(log, nil) + + last, err := f.c.ListIssueHistory(context.Background(), req) + require.NoError(t, err) + require.Equal(t, []entity.IssueHistoryEntry{{Log: log, RequestID: "1"}}, last.Events) + require.Empty(t, last.NextPageToken) + }) + } +} diff --git a/stovepipe/controller/mock/BUILD.bazel b/stovepipe/controller/mock/BUILD.bazel index 2f86dc6eb..04c0ebc0b 100644 --- a/stovepipe/controller/mock/BUILD.bazel +++ b/stovepipe/controller/mock/BUILD.bazel @@ -4,6 +4,7 @@ go_library( name = "go_default_library", srcs = [ "get_issues_by_request_id_mock.go", + "list_issue_history_mock.go", "list_open_issues_mock.go", "project_issues_mock.go", "project_status_mock.go", diff --git a/stovepipe/controller/mock/list_issue_history_mock.go b/stovepipe/controller/mock/list_issue_history_mock.go new file mode 100644 index 000000000..76d4bdaa0 --- /dev/null +++ b/stovepipe/controller/mock/list_issue_history_mock.go @@ -0,0 +1,57 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: list_issue_history.go +// +// Generated by this command: +// +// mockgen -source=list_issue_history.go -destination=mock/list_issue_history_mock.go -package=mock +// + +// Package mock is a generated GoMock package. +package mock + +import ( + context "context" + reflect "reflect" + + entity "github.com/uber/submitqueue/stovepipe/entity" + gomock "go.uber.org/mock/gomock" +) + +// MockListIssueHistoryController is a mock of ListIssueHistoryController interface. +type MockListIssueHistoryController struct { + ctrl *gomock.Controller + recorder *MockListIssueHistoryControllerMockRecorder + isgomock struct{} +} + +// MockListIssueHistoryControllerMockRecorder is the mock recorder for MockListIssueHistoryController. +type MockListIssueHistoryControllerMockRecorder struct { + mock *MockListIssueHistoryController +} + +// NewMockListIssueHistoryController creates a new mock instance. +func NewMockListIssueHistoryController(ctrl *gomock.Controller) *MockListIssueHistoryController { + mock := &MockListIssueHistoryController{ctrl: ctrl} + mock.recorder = &MockListIssueHistoryControllerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockListIssueHistoryController) EXPECT() *MockListIssueHistoryControllerMockRecorder { + return m.recorder +} + +// ListIssueHistory mocks base method. +func (m *MockListIssueHistoryController) ListIssueHistory(arg0 context.Context, arg1 entity.ListIssueHistoryRequest) (entity.ListIssueHistoryResult, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIssueHistory", arg0, arg1) + ret0, _ := ret[0].(entity.ListIssueHistoryResult) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIssueHistory indicates an expected call of ListIssueHistory. +func (mr *MockListIssueHistoryControllerMockRecorder) ListIssueHistory(arg0, arg1 any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIssueHistory", reflect.TypeOf((*MockListIssueHistoryController)(nil).ListIssueHistory), arg0, arg1) +} diff --git a/stovepipe/entity/BUILD.bazel b/stovepipe/entity/BUILD.bazel index 1dad63104..3d91d30ab 100644 --- a/stovepipe/entity/BUILD.bazel +++ b/stovepipe/entity/BUILD.bazel @@ -7,6 +7,7 @@ go_library( "build_issue.go", "get_issues_by_request_id.go", "ingest.go", + "issue_history.go", "issue_log.go", "issue_repair.go", "issue_state.go", diff --git a/stovepipe/entity/issue_history.go b/stovepipe/entity/issue_history.go new file mode 100644 index 000000000..9622f26d2 --- /dev/null +++ b/stovepipe/entity/issue_history.go @@ -0,0 +1,58 @@ +// Copyright (c) 2026 Uber Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package entity + +// ListIssueHistoryRequest selects retained issue occurrences within a queue. +type ListIssueHistoryRequest struct { + // Queue identifies the configured queue. + Queue string + // TaskID optionally selects one issue; empty includes all issues and requires an empty UnitID. + TaskID string + // UnitID selects the exact unit within TaskID; empty means that task's task-wide issue. + UnitID string + // PageSize is the maximum number of events; zero selects the default. + PageSize int32 + // PageToken is the opaque continuation bound to this issue filter and request window. + PageToken string + // AcceptedAtOrAfterMs is the inclusive request-acceptance bound in Unix milliseconds when supplied. + AcceptedAtOrAfterMs int64 + // HasAcceptedAtOrAfterMs distinguishes an explicit lower bound from the default zero. + HasAcceptedAtOrAfterMs bool + // AcceptedBeforeMs is the exclusive request-acceptance bound in Unix milliseconds when supplied. + AcceptedBeforeMs int64 + // HasAcceptedBeforeMs distinguishes an explicit upper bound from server now on the first page. + HasAcceptedBeforeMs bool +} + +// IssueHistoryEntry combines an immutable occurrence with its source request. +type IssueHistoryEntry struct { + // Log is the retained issue occurrence. + Log IssueLog + // RequestID identifies the accepted request whose issue projection references this build. + RequestID string +} + +// ListIssueHistoryResult is one page of retained occurrences, not complete coverage. +type ListIssueHistoryResult struct { + // Events follow descending request-acceptance order, then ascending bytewise task/unit order. + Events []IssueHistoryEntry + // NextPageToken continues after the last examined request/issue, including skipped projections or logs. + // Pages can be empty with a continuation; an empty token ends the observed request window. + NextPageToken string + // AcceptedAtOrAfterMs is the inclusive request-acceptance window bound in Unix milliseconds. + AcceptedAtOrAfterMs int64 + // AcceptedBeforeMs is the exclusive request-acceptance window bound in Unix milliseconds. + AcceptedBeforeMs int64 +} diff --git a/stovepipe/extension/storage/README.md b/stovepipe/extension/storage/README.md index 02193e0ee..eb2775d4e 100644 --- a/stovepipe/extension/storage/README.md +++ b/stovepipe/extension/storage/README.md @@ -119,3 +119,7 @@ The issue-tracking table must include the notification, cursor, `finalize`, and The request-issue summary store retains one materialized result per request, task, and unit in its bound queue. Opened includes reopened issues; reported means this request observed an already-open issue again; closed means this request actually closed it. Issues merely left open because closure was suppressed are not reported results. Reads use a bounded request-prefix scan in task/unit order. These results describe the request's accepted updates, not the queue's full open-issue set. Issue history retains openings, repeat reports, and closures. Events use open, reported, and closed; reported events do not change lifecycle projections. New occurrences retain the opening build reference so request projections can be reconstructed without current issue state. Deploy the additive opening-reference column before updated writers. Existing lifecycle records may have an empty reference and continue using the opening supplied to lifecycle materialization. + +### Browsing retained issue history + +History pages scan request acceptances, read each request's selected issue result, and fetch its original event with the existing exact-key lookup. Pages pin the acceptance-time window and advance after examined requests, including missing projections or logs. Coverage is limited to retained mappings and projected results; an empty page can still have a continuation. No new projection or timestamp sort is required. diff --git a/web/api/src/gen/api/stovepipe/proto/stovepipe_pb.ts b/web/api/src/gen/api/stovepipe/proto/stovepipe_pb.ts index 3fab6e4ba..256c33e00 100644 --- a/web/api/src/gen/api/stovepipe/proto/stovepipe_pb.ts +++ b/web/api/src/gen/api/stovepipe/proto/stovepipe_pb.ts @@ -24,7 +24,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file api/stovepipe/proto/stovepipe.proto. */ export const file_api_stovepipe_proto_stovepipe: GenFile = /*@__PURE__*/ - fileDesc("CiNhcGkvc3RvdmVwaXBlL3Byb3RvL3N0b3ZlcGlwZS5wcm90bxIadWJlci5zdWJtaXRxdWV1ZS5zdG92ZXBpcGUiHgoLUGluZ1JlcXVlc3QSDwoHbWVzc2FnZRgBIAEoCSJaCgxQaW5nUmVzcG9uc2USDwoHbWVzc2FnZRgBIAEoCRIUCgxzZXJ2aWNlX25hbWUYAiABKAkSEQoJdGltZXN0YW1wGAMgASgDEhAKCGhvc3RuYW1lGAQgASgJInMKDUluZ2VzdFJlcXVlc3QSDQoFcXVldWUYASABKAkSPwoK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WJlci5zdWJtaXRxdWV1ZS5zdG92ZXBpcGUuR2V0SXNzdWVzQnlSZXF1ZXN0SURSZXF1ZXN0GjgudWJlci5zdWJtaXRxdWV1ZS5zdG92ZXBpcGUuR2V0SXNzdWVzQnlSZXF1ZXN0SURSZXNwb25zZSIAEpsBChpMaXN0UmVxdWVzdFByb2plY3RzQnlJc3N1ZRI9LnViZXIuc3VibWl0cXVldWUuc3RvdmVwaXBlLkxpc3RSZXF1ZXN0UHJvamVjdHNCeUlzc3VlUmVxdWVzdBo8LnViZXIuc3VibWl0cXVldWUuc3RvdmVwaXBlLkxpc3RSZXF1ZXN0UHJvamVjdElzc3Vlc1Jlc3BvbnNlIgASmwEKGkxpc3RSZXF1ZXN0SXNzdWVzQnlQcm9qZWN0Ej0udWJlci5zdWJtaXRxdWV1ZS5zdG92ZXBpcGUuTGlzdFJlcXVlc3RJc3N1ZXNCeVByb2plY3RSZXF1ZXN0GjwudWJlci5zdWJtaXRxdWV1ZS5zdG92ZXBpcGUuTGlzdFJlcXVlc3RQcm9qZWN0SXNzdWVzUmVzcG9uc2UiAEJlCh5jb20udWJlci5zdWJtaXRxdWV1ZS5zdG92ZXBpcGVCDlN0b3ZlcGlwZVByb3RvUAFaMWdpdGh1Yi5jb20vdWJlci9zdWJtaXRxdWV1ZS9hcGkvc3RvdmVwaXBlL3Byb3RvcGJiBnByb3RvMw"); /** * PingRequest is the request for the Ping method @@ -1397,6 +1397,188 @@ export type ListOpenIssuesResponse = Message<"uber.submitqueue.stovepipe.ListOpe export const ListOpenIssuesResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_api_stovepipe_proto_stovepipe, 31); +/** + * IssueHistoryEvent is one immutable retained occurrence across requests. + * + * @generated from message uber.submitqueue.stovepipe.IssueHistoryEvent + */ +export type IssueHistoryEvent = Message<"uber.submitqueue.stovepipe.IssueHistoryEvent"> & { + /** + * "open" (including reopenings), "reported", or "closed". + * + * @generated from field: string event = 1; + */ + event: string; + + /** + * Opaque source build identity. + * + * @generated from field: string build_id = 2; + */ + buildId: string; + + /** + * Original occurrence timestamp in Unix milliseconds, not request ingest order. + * + * @generated from field: int64 timestamp_ms = 3; + */ + timestampMs: bigint; + + /** + * Opening build for this occurrence; empty on legacy lifecycle records. + * + * @generated from field: string first_seen_build_id = 4; + */ + firstSeenBuildId: string; + + /** + * Source request from the acceptance mapping; source-build retention is not required. + * + * @generated from field: string request_id = 5; + */ + requestId: string; + + /** + * Validation task that identifies the issue. + * + * @generated from field: string task_id = 6; + */ + taskId: string; + + /** + * Validation unit; empty identifies a task-wide issue. + * + * @generated from field: string unit_id = 7; + */ + unitId: string; +}; + +/** + * Describes the message uber.submitqueue.stovepipe.IssueHistoryEvent. + * Use `create(IssueHistoryEventSchema)` to create a new message. + */ +export const IssueHistoryEventSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_api_stovepipe_proto_stovepipe, 32); + +/** + * @generated from message uber.submitqueue.stovepipe.ListIssueHistoryRequest + */ +export type ListIssueHistoryRequest = Message<"uber.submitqueue.stovepipe.ListIssueHistoryRequest"> & { + /** + * Required configured queue. + * + * @generated from field: string queue = 1; + */ + queue: string; + + /** + * Optional validation task. Empty selects all issues in the queue and requires an empty unit_id. + * + * @generated from field: string task_id = 2; + */ + taskId: string; + + /** + * Exact validation unit when task_id is supplied; empty selects that task's task-wide issue. + * + * @generated from field: string unit_id = 3; + */ + unitId: string; + + /** + * Maximum events to return. Zero selects 50; otherwise 1 through 200. + * + * @generated from field: int32 page_size = 4; + */ + pageSize: number; + + /** + * Opaque continuation bound to the issue filter and resolved acceptance-time window. + * + * @generated from field: string page_token = 5; + */ + pageToken: string; + + /** + * @generated from oneof uber.submitqueue.stovepipe.ListIssueHistoryRequest.accepted_lower_bound + */ + acceptedLowerBound: { + /** + * Inclusive request-acceptance timestamp in Unix milliseconds; omitted defaults to zero. + * + * @generated from field: int64 accepted_at_or_after_ms = 6; + */ + value: bigint; + case: "acceptedAtOrAfterMs"; + } | { case: undefined; value?: undefined }; + + /** + * @generated from oneof uber.submitqueue.stovepipe.ListIssueHistoryRequest.accepted_upper_bound + */ + acceptedUpperBound: { + /** + * Exclusive request-acceptance timestamp in Unix milliseconds; omitted defaults to server now. + * + * @generated from field: int64 accepted_before_ms = 7; + */ + value: bigint; + case: "acceptedBeforeMs"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message uber.submitqueue.stovepipe.ListIssueHistoryRequest. + * Use `create(ListIssueHistoryRequestSchema)` to create a new message. + */ +export const ListIssueHistoryRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_api_stovepipe_proto_stovepipe, 33); + +/** + * History covers projected issue builds in the request window, not the complete retained log. + * Missing acceptance mappings or issue projections can leave gaps; empty does not prove no history. + * + * @generated from message uber.submitqueue.stovepipe.ListIssueHistoryResponse + */ +export type ListIssueHistoryResponse = Message<"uber.submitqueue.stovepipe.ListIssueHistoryResponse"> & { + /** + * Descending request-acceptance order, then ascending bytewise task/unit order. + * Each request contributes at most one event per issue. + * Original event timestamps are preserved; events are not sorted chronologically. + * + * @generated from field: repeated uber.submitqueue.stovepipe.IssueHistoryEvent events = 1; + */ + events: IssueHistoryEvent[]; + + /** + * Continues after the last examined request/issue; pages can be empty with a continuation. + * Each call examines at most 200 requests and 200 issue summaries. Empty ends the observed request window. + * + * @generated from field: string next_page_token = 2; + */ + nextPageToken: string; + + /** + * Resolved inclusive request-acceptance window bound in Unix milliseconds. + * + * @generated from field: int64 accepted_at_or_after_ms = 3; + */ + acceptedAtOrAfterMs: bigint; + + /** + * Resolved exclusive request-acceptance window bound in Unix milliseconds. + * + * @generated from field: int64 accepted_before_ms = 4; + */ + acceptedBeforeMs: bigint; +}; + +/** + * Describes the message uber.submitqueue.stovepipe.ListIssueHistoryResponse. + * Use `create(ListIssueHistoryResponseSchema)` to create a new message. + */ +export const ListIssueHistoryResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_api_stovepipe_proto_stovepipe, 34); + /** * RequestIssueSummary describes one accepted issue update, not the queue's open-issue set. * @@ -1444,7 +1626,7 @@ export type RequestIssueSummary = Message<"uber.submitqueue.stovepipe.RequestIss * Use `create(RequestIssueSummarySchema)` to create a new message. */ export const RequestIssueSummarySchema: GenMessage = /*@__PURE__*/ - messageDesc(file_api_stovepipe_proto_stovepipe, 32); + messageDesc(file_api_stovepipe_proto_stovepipe, 35); /** * @generated from message uber.submitqueue.stovepipe.GetIssuesByRequestIDRequest @@ -1484,7 +1666,7 @@ export type GetIssuesByRequestIDRequest = Message<"uber.submitqueue.stovepipe.Ge * Use `create(GetIssuesByRequestIDRequestSchema)` to create a new message. */ export const GetIssuesByRequestIDRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_api_stovepipe_proto_stovepipe, 33); + messageDesc(file_api_stovepipe_proto_stovepipe, 36); /** * Completed and abandoned results are stable; in-progress pages are not a snapshot. @@ -1521,7 +1703,7 @@ export type GetIssuesByRequestIDResponse = Message<"uber.submitqueue.stovepipe.G * Use `create(GetIssuesByRequestIDResponseSchema)` to create a new message. */ export const GetIssuesByRequestIDResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_api_stovepipe_proto_stovepipe, 34); + messageDesc(file_api_stovepipe_proto_stovepipe, 37); /** * ProjectIssueAttribution is one historical issue/project association within a request. @@ -1556,7 +1738,7 @@ export type ProjectIssueAttribution = Message<"uber.submitqueue.stovepipe.Projec * Use `create(ProjectIssueAttributionSchema)` to create a new message. */ export const ProjectIssueAttributionSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_api_stovepipe_proto_stovepipe, 35); + messageDesc(file_api_stovepipe_proto_stovepipe, 38); /** * @generated from message uber.submitqueue.stovepipe.ListRequestProjectsByIssueRequest @@ -1610,7 +1792,7 @@ export type ListRequestProjectsByIssueRequest = Message<"uber.submitqueue.stovep * Use `create(ListRequestProjectsByIssueRequestSchema)` to create a new message. */ export const ListRequestProjectsByIssueRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_api_stovepipe_proto_stovepipe, 36); + messageDesc(file_api_stovepipe_proto_stovepipe, 39); /** * @generated from message uber.submitqueue.stovepipe.ListRequestIssuesByProjectRequest @@ -1657,7 +1839,7 @@ export type ListRequestIssuesByProjectRequest = Message<"uber.submitqueue.stovep * Use `create(ListRequestIssuesByProjectRequestSchema)` to create a new message. */ export const ListRequestIssuesByProjectRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_api_stovepipe_proto_stovepipe, 37); + messageDesc(file_api_stovepipe_proto_stovepipe, 40); /** * @generated from message uber.submitqueue.stovepipe.ListRequestProjectIssuesResponse @@ -1692,7 +1874,7 @@ export type ListRequestProjectIssuesResponse = Message<"uber.submitqueue.stovepi * Use `create(ListRequestProjectIssuesResponseSchema)` to create a new message. */ export const ListRequestProjectIssuesResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_api_stovepipe_proto_stovepipe, 38); + messageDesc(file_api_stovepipe_proto_stovepipe, 41); /** * QueueEnablement is independent of validation results and execution controls. @@ -1821,6 +2003,16 @@ export const Stovepipe: GenService<{ input: typeof ListOpenIssuesRequestSchema; output: typeof ListOpenIssuesResponseSchema; }, + /** + * ListIssueHistory returns retained issue occurrences across requests, optionally filtered to one issue. + * + * @generated from rpc uber.submitqueue.stovepipe.Stovepipe.ListIssueHistory + */ + listIssueHistory: { + methodKind: "unary"; + input: typeof ListIssueHistoryRequestSchema; + output: typeof ListIssueHistoryResponseSchema; + }, /** * GetIssuesByRequestID returns accepted issue results for one request. *