go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cv/internal/tryjob/task.pb.go (about) 1 // Copyright 2021 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.32.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/cv/internal/tryjob/task.proto 20 21 package tryjob 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28 ) 29 30 const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35 ) 36 37 // UpdateTryjobTask checks the status of a Tryjob and updates and saves the 38 // Datastore entity, and notifies Runs which care about this Tryjob. 39 // 40 // It does NOT involve deciding next actions to take based on changes in Tryjob 41 // state; e.g. it doesn't involve triggering retries or ending the Run; the 42 // Tryjob Executor is responsible for this, see also ExecuteTryjobsPayload. 43 // 44 // Queue: "tryjob-update". 45 type UpdateTryjobTask struct { 46 state protoimpl.MessageState 47 sizeCache protoimpl.SizeCache 48 unknownFields protoimpl.UnknownFields 49 50 // id is the Tryjob entity datastore ID. Internal to CV. 51 Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 52 // external_id is the ID that identifies the Tryjob in the backend. 53 // e.g. in the case of Buildbucket, it's the build ID. 54 ExternalId string `protobuf:"bytes,2,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` 55 } 56 57 func (x *UpdateTryjobTask) Reset() { 58 *x = UpdateTryjobTask{} 59 if protoimpl.UnsafeEnabled { 60 mi := &file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[0] 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 ms.StoreMessageInfo(mi) 63 } 64 } 65 66 func (x *UpdateTryjobTask) String() string { 67 return protoimpl.X.MessageStringOf(x) 68 } 69 70 func (*UpdateTryjobTask) ProtoMessage() {} 71 72 func (x *UpdateTryjobTask) ProtoReflect() protoreflect.Message { 73 mi := &file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[0] 74 if protoimpl.UnsafeEnabled && x != nil { 75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 76 if ms.LoadMessageInfo() == nil { 77 ms.StoreMessageInfo(mi) 78 } 79 return ms 80 } 81 return mi.MessageOf(x) 82 } 83 84 // Deprecated: Use UpdateTryjobTask.ProtoReflect.Descriptor instead. 85 func (*UpdateTryjobTask) Descriptor() ([]byte, []int) { 86 return file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescGZIP(), []int{0} 87 } 88 89 func (x *UpdateTryjobTask) GetId() int64 { 90 if x != nil { 91 return x.Id 92 } 93 return 0 94 } 95 96 func (x *UpdateTryjobTask) GetExternalId() string { 97 if x != nil { 98 return x.ExternalId 99 } 100 return "" 101 } 102 103 // CancelStaleTryjobs cancels all Tryjobs that are intended to verify the given 104 // CL, that are now stale because a new non-trivial patchset has been uploaded. 105 // 106 // Queue: "cancel-stale-tryjobs" 107 type CancelStaleTryjobsTask struct { 108 state protoimpl.MessageState 109 sizeCache protoimpl.SizeCache 110 unknownFields protoimpl.UnknownFields 111 112 // clid is the ID that identifies a CL entity. Internal to CV. 113 Clid int64 `protobuf:"varint,1,opt,name=clid,proto3" json:"clid,omitempty"` 114 // previous_min_equiv_patchset is the patchset that stale tryjobs will be 115 // running at. 116 PreviousMinEquivPatchset int32 `protobuf:"varint,2,opt,name=previous_min_equiv_patchset,json=previousMinEquivPatchset,proto3" json:"previous_min_equiv_patchset,omitempty"` 117 // current_min_equiv_patchset is the patchset at or after which the 118 // associated Tryjobs are no longer considered stale. 119 CurrentMinEquivPatchset int32 `protobuf:"varint,3,opt,name=current_min_equiv_patchset,json=currentMinEquivPatchset,proto3" json:"current_min_equiv_patchset,omitempty"` 120 } 121 122 func (x *CancelStaleTryjobsTask) Reset() { 123 *x = CancelStaleTryjobsTask{} 124 if protoimpl.UnsafeEnabled { 125 mi := &file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[1] 126 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 127 ms.StoreMessageInfo(mi) 128 } 129 } 130 131 func (x *CancelStaleTryjobsTask) String() string { 132 return protoimpl.X.MessageStringOf(x) 133 } 134 135 func (*CancelStaleTryjobsTask) ProtoMessage() {} 136 137 func (x *CancelStaleTryjobsTask) ProtoReflect() protoreflect.Message { 138 mi := &file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[1] 139 if protoimpl.UnsafeEnabled && x != nil { 140 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 141 if ms.LoadMessageInfo() == nil { 142 ms.StoreMessageInfo(mi) 143 } 144 return ms 145 } 146 return mi.MessageOf(x) 147 } 148 149 // Deprecated: Use CancelStaleTryjobsTask.ProtoReflect.Descriptor instead. 150 func (*CancelStaleTryjobsTask) Descriptor() ([]byte, []int) { 151 return file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescGZIP(), []int{1} 152 } 153 154 func (x *CancelStaleTryjobsTask) GetClid() int64 { 155 if x != nil { 156 return x.Clid 157 } 158 return 0 159 } 160 161 func (x *CancelStaleTryjobsTask) GetPreviousMinEquivPatchset() int32 { 162 if x != nil { 163 return x.PreviousMinEquivPatchset 164 } 165 return 0 166 } 167 168 func (x *CancelStaleTryjobsTask) GetCurrentMinEquivPatchset() int32 { 169 if x != nil { 170 return x.CurrentMinEquivPatchset 171 } 172 return 0 173 } 174 175 // ExecuteTryjobsPayload is the payload of the long-op task that invokes 176 // the Tryjob Executor. 177 // 178 // The payload contains the event happens outside so that Tryjob Executor could 179 // react on the event. 180 // 181 // Exactly one event should be provided. Not using oneof for the sake of 182 // simplicity. 183 type ExecuteTryjobsPayload struct { 184 state protoimpl.MessageState 185 sizeCache protoimpl.SizeCache 186 unknownFields protoimpl.UnknownFields 187 188 // RequirementChanged indicates the Tryjob Requirement of the Run has 189 // changed. 190 RequirementChanged bool `protobuf:"varint,1,opt,name=requirement_changed,json=requirementChanged,proto3" json:"requirement_changed,omitempty"` 191 // TryjobsUpdated contains IDs of all Tryjobs that have status updates. 192 TryjobsUpdated []int64 `protobuf:"varint,2,rep,packed,name=tryjobs_updated,json=tryjobsUpdated,proto3" json:"tryjobs_updated,omitempty"` 193 } 194 195 func (x *ExecuteTryjobsPayload) Reset() { 196 *x = ExecuteTryjobsPayload{} 197 if protoimpl.UnsafeEnabled { 198 mi := &file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[2] 199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 200 ms.StoreMessageInfo(mi) 201 } 202 } 203 204 func (x *ExecuteTryjobsPayload) String() string { 205 return protoimpl.X.MessageStringOf(x) 206 } 207 208 func (*ExecuteTryjobsPayload) ProtoMessage() {} 209 210 func (x *ExecuteTryjobsPayload) ProtoReflect() protoreflect.Message { 211 mi := &file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[2] 212 if protoimpl.UnsafeEnabled && x != nil { 213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 214 if ms.LoadMessageInfo() == nil { 215 ms.StoreMessageInfo(mi) 216 } 217 return ms 218 } 219 return mi.MessageOf(x) 220 } 221 222 // Deprecated: Use ExecuteTryjobsPayload.ProtoReflect.Descriptor instead. 223 func (*ExecuteTryjobsPayload) Descriptor() ([]byte, []int) { 224 return file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescGZIP(), []int{2} 225 } 226 227 func (x *ExecuteTryjobsPayload) GetRequirementChanged() bool { 228 if x != nil { 229 return x.RequirementChanged 230 } 231 return false 232 } 233 234 func (x *ExecuteTryjobsPayload) GetTryjobsUpdated() []int64 { 235 if x != nil { 236 return x.TryjobsUpdated 237 } 238 return nil 239 } 240 241 // ExecuteTryjobsResult is the result of Tryjob executor. 242 type ExecuteTryjobsResult struct { 243 state protoimpl.MessageState 244 sizeCache protoimpl.SizeCache 245 unknownFields protoimpl.UnknownFields 246 } 247 248 func (x *ExecuteTryjobsResult) Reset() { 249 *x = ExecuteTryjobsResult{} 250 if protoimpl.UnsafeEnabled { 251 mi := &file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[3] 252 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 253 ms.StoreMessageInfo(mi) 254 } 255 } 256 257 func (x *ExecuteTryjobsResult) String() string { 258 return protoimpl.X.MessageStringOf(x) 259 } 260 261 func (*ExecuteTryjobsResult) ProtoMessage() {} 262 263 func (x *ExecuteTryjobsResult) ProtoReflect() protoreflect.Message { 264 mi := &file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[3] 265 if protoimpl.UnsafeEnabled && x != nil { 266 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 267 if ms.LoadMessageInfo() == nil { 268 ms.StoreMessageInfo(mi) 269 } 270 return ms 271 } 272 return mi.MessageOf(x) 273 } 274 275 // Deprecated: Use ExecuteTryjobsResult.ProtoReflect.Descriptor instead. 276 func (*ExecuteTryjobsResult) Descriptor() ([]byte, []int) { 277 return file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescGZIP(), []int{3} 278 } 279 280 var File_go_chromium_org_luci_cv_internal_tryjob_task_proto protoreflect.FileDescriptor 281 282 var file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDesc = []byte{ 283 0x0a, 0x32, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 284 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 285 0x61, 0x6c, 0x2f, 0x74, 0x72, 0x79, 0x6a, 0x6f, 0x62, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 286 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x63, 0x76, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 287 0x6c, 0x2e, 0x74, 0x72, 0x79, 0x6a, 0x6f, 0x62, 0x22, 0x43, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 288 0x74, 0x65, 0x54, 0x72, 0x79, 0x6a, 0x6f, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 289 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 290 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 291 0x09, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x22, 0xa8, 0x01, 292 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x54, 0x72, 0x79, 293 0x6a, 0x6f, 0x62, 0x73, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6c, 0x69, 0x64, 294 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6c, 0x69, 0x64, 0x12, 0x3d, 0x0a, 0x1b, 295 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6d, 0x69, 0x6e, 0x5f, 0x65, 0x71, 0x75, 296 0x69, 0x76, 0x5f, 0x70, 0x61, 0x74, 0x63, 0x68, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 297 0x05, 0x52, 0x18, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4d, 0x69, 0x6e, 0x45, 0x71, 298 0x75, 0x69, 0x76, 0x50, 0x61, 0x74, 0x63, 0x68, 0x73, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x1a, 0x63, 299 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x69, 0x6e, 0x5f, 0x65, 0x71, 0x75, 0x69, 0x76, 300 0x5f, 0x70, 0x61, 0x74, 0x63, 0x68, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 301 0x17, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x69, 0x6e, 0x45, 0x71, 0x75, 0x69, 0x76, 302 0x50, 0x61, 0x74, 0x63, 0x68, 0x73, 0x65, 0x74, 0x22, 0x71, 0x0a, 0x15, 0x45, 0x78, 0x65, 0x63, 303 0x75, 0x74, 0x65, 0x54, 0x72, 0x79, 0x6a, 0x6f, 0x62, 0x73, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 304 0x64, 0x12, 0x2f, 0x0a, 0x13, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 305 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 306 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 307 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x79, 0x6a, 0x6f, 0x62, 0x73, 0x5f, 0x75, 0x70, 308 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0e, 0x74, 0x72, 0x79, 309 0x6a, 0x6f, 0x62, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x22, 0x16, 0x0a, 0x14, 0x45, 310 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x72, 0x79, 0x6a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 311 0x75, 0x6c, 0x74, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 312 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x69, 313 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x72, 0x79, 0x6a, 0x6f, 0x62, 0x3b, 0x74, 314 0x72, 0x79, 0x6a, 0x6f, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 315 } 316 317 var ( 318 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescOnce sync.Once 319 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescData = file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDesc 320 ) 321 322 func file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescGZIP() []byte { 323 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescOnce.Do(func() { 324 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescData) 325 }) 326 return file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDescData 327 } 328 329 var file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 330 var file_go_chromium_org_luci_cv_internal_tryjob_task_proto_goTypes = []interface{}{ 331 (*UpdateTryjobTask)(nil), // 0: cv.internal.tryjob.UpdateTryjobTask 332 (*CancelStaleTryjobsTask)(nil), // 1: cv.internal.tryjob.CancelStaleTryjobsTask 333 (*ExecuteTryjobsPayload)(nil), // 2: cv.internal.tryjob.ExecuteTryjobsPayload 334 (*ExecuteTryjobsResult)(nil), // 3: cv.internal.tryjob.ExecuteTryjobsResult 335 } 336 var file_go_chromium_org_luci_cv_internal_tryjob_task_proto_depIdxs = []int32{ 337 0, // [0:0] is the sub-list for method output_type 338 0, // [0:0] is the sub-list for method input_type 339 0, // [0:0] is the sub-list for extension type_name 340 0, // [0:0] is the sub-list for extension extendee 341 0, // [0:0] is the sub-list for field type_name 342 } 343 344 func init() { file_go_chromium_org_luci_cv_internal_tryjob_task_proto_init() } 345 func file_go_chromium_org_luci_cv_internal_tryjob_task_proto_init() { 346 if File_go_chromium_org_luci_cv_internal_tryjob_task_proto != nil { 347 return 348 } 349 if !protoimpl.UnsafeEnabled { 350 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 351 switch v := v.(*UpdateTryjobTask); i { 352 case 0: 353 return &v.state 354 case 1: 355 return &v.sizeCache 356 case 2: 357 return &v.unknownFields 358 default: 359 return nil 360 } 361 } 362 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 363 switch v := v.(*CancelStaleTryjobsTask); i { 364 case 0: 365 return &v.state 366 case 1: 367 return &v.sizeCache 368 case 2: 369 return &v.unknownFields 370 default: 371 return nil 372 } 373 } 374 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 375 switch v := v.(*ExecuteTryjobsPayload); i { 376 case 0: 377 return &v.state 378 case 1: 379 return &v.sizeCache 380 case 2: 381 return &v.unknownFields 382 default: 383 return nil 384 } 385 } 386 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 387 switch v := v.(*ExecuteTryjobsResult); i { 388 case 0: 389 return &v.state 390 case 1: 391 return &v.sizeCache 392 case 2: 393 return &v.unknownFields 394 default: 395 return nil 396 } 397 } 398 } 399 type x struct{} 400 out := protoimpl.TypeBuilder{ 401 File: protoimpl.DescBuilder{ 402 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 403 RawDescriptor: file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDesc, 404 NumEnums: 0, 405 NumMessages: 4, 406 NumExtensions: 0, 407 NumServices: 0, 408 }, 409 GoTypes: file_go_chromium_org_luci_cv_internal_tryjob_task_proto_goTypes, 410 DependencyIndexes: file_go_chromium_org_luci_cv_internal_tryjob_task_proto_depIdxs, 411 MessageInfos: file_go_chromium_org_luci_cv_internal_tryjob_task_proto_msgTypes, 412 }.Build() 413 File_go_chromium_org_luci_cv_internal_tryjob_task_proto = out.File 414 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_rawDesc = nil 415 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_goTypes = nil 416 file_go_chromium_org_luci_cv_internal_tryjob_task_proto_depIdxs = nil 417 }