/
state.pb.go
1560 lines (1396 loc) · 55.9 KB
/
state.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Copyright The TestGrid Authors.
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.
*/
// Backing state for a test results table of a TestGrid dashboard tab.
// Grid is the top-level message; updated and stored by the updater and
// tabulator.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.21.1
// source: state.proto
package state
import (
config "github.com/GoogleCloudPlatform/testgrid/pb/config"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Property struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Property map[string]string `protobuf:"bytes,1,rep,name=property,proto3" json:"property,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Property) Reset() {
*x = Property{}
if protoimpl.UnsafeEnabled {
mi := &file_state_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Property) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Property) ProtoMessage() {}
func (x *Property) ProtoReflect() protoreflect.Message {
mi := &file_state_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Property.ProtoReflect.Descriptor instead.
func (*Property) Descriptor() ([]byte, []int) {
return file_state_proto_rawDescGZIP(), []int{0}
}
func (x *Property) GetProperty() map[string]string {
if x != nil {
return x.Property
}
return nil
}
// A metric and its values for each test cycle.
type Metric struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of metric, such as duration
// Sparse encoding of values. Indices is a list of pairs of <index, count>
// that details columns with metric values. So given:
// Indices: [0, 2, 6, 4]
// Values: [0.1,0.2,6.1,6.2,6.3,6.4]
// Decoded 12-value equivalent is:
// [0.1, 0.2, nil, nil, nil, nil, 6.1, 6.2, 6.3, 6.4, nil, nil, ...]
Indices []int32 `protobuf:"varint,2,rep,packed,name=indices,proto3" json:"indices,omitempty"` // n=index of first value, n+1=count of filled values
Values []float64 `protobuf:"fixed64,3,rep,packed,name=values,proto3" json:"values,omitempty"` // only present for columns with a metric value
}
func (x *Metric) Reset() {
*x = Metric{}
if protoimpl.UnsafeEnabled {
mi := &file_state_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Metric) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Metric) ProtoMessage() {}
func (x *Metric) ProtoReflect() protoreflect.Message {
mi := &file_state_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Metric.ProtoReflect.Descriptor instead.
func (*Metric) Descriptor() ([]byte, []int) {
return file_state_proto_rawDescGZIP(), []int{1}
}
func (x *Metric) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Metric) GetIndices() []int32 {
if x != nil {
return x.Indices
}
return nil
}
func (x *Metric) GetValues() []float64 {
if x != nil {
return x.Values
}
return nil
}
type UpdatePhaseData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name for a part of the update cycle.
PhaseName string `protobuf:"bytes,1,opt,name=phase_name,json=phaseName,proto3" json:"phase_name,omitempty"`
// Time taken for a part of the update cycle, in seconds.
PhaseSeconds float64 `protobuf:"fixed64,2,opt,name=phase_seconds,json=phaseSeconds,proto3" json:"phase_seconds,omitempty"`
}
func (x *UpdatePhaseData) Reset() {
*x = UpdatePhaseData{}
if protoimpl.UnsafeEnabled {
mi := &file_state_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdatePhaseData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdatePhaseData) ProtoMessage() {}
func (x *UpdatePhaseData) ProtoReflect() protoreflect.Message {
mi := &file_state_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdatePhaseData.ProtoReflect.Descriptor instead.
func (*UpdatePhaseData) Descriptor() ([]byte, []int) {
return file_state_proto_rawDescGZIP(), []int{2}
}
func (x *UpdatePhaseData) GetPhaseName() string {
if x != nil {
return x.PhaseName
}
return ""
}
func (x *UpdatePhaseData) GetPhaseSeconds() float64 {
if x != nil {
return x.PhaseSeconds
}
return 0
}
// Info on time taken to update test results during the last update cycle.
type UpdateInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Metrics for how long parts of the update cycle take.
UpdatePhaseData []*UpdatePhaseData `protobuf:"bytes,1,rep,name=update_phase_data,json=updatePhaseData,proto3" json:"update_phase_data,omitempty"`
}
func (x *UpdateInfo) Reset() {
*x = UpdateInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_state_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateInfo) ProtoMessage() {}
func (x *UpdateInfo) ProtoReflect() protoreflect.Message {
mi := &file_state_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateInfo.ProtoReflect.Descriptor instead.
func (*UpdateInfo) Descriptor() ([]byte, []int) {
return file_state_proto_rawDescGZIP(), []int{3}
}
func (x *UpdateInfo) GetUpdatePhaseData() []*UpdatePhaseData {
if x != nil {
return x.UpdatePhaseData
}
return nil
}
// Info on a failing test row about the failure.
type AlertInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Number of results that have failed.
FailCount int32 `protobuf:"varint,1,opt,name=fail_count,json=failCount,proto3" json:"fail_count,omitempty"`
// The build ID the test first failed at.
FailBuildId string `protobuf:"bytes,2,opt,name=fail_build_id,json=failBuildId,proto3" json:"fail_build_id,omitempty"`
// The time the test first failed at.
FailTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=fail_time,json=failTime,proto3" json:"fail_time,omitempty"`
// The test ID for the first test failure.
FailTestId string `protobuf:"bytes,4,opt,name=fail_test_id,json=failTestId,proto3" json:"fail_test_id,omitempty"`
// The build ID the test last passed at.
PassBuildId string `protobuf:"bytes,5,opt,name=pass_build_id,json=passBuildId,proto3" json:"pass_build_id,omitempty"`
// The time the test last passed at.
PassTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=pass_time,json=passTime,proto3" json:"pass_time,omitempty"`
// A snippet explaining the failure.
FailureMessage string `protobuf:"bytes,7,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"`
// Link to search for build changes, internally a code-search link.
BuildLink string `protobuf:"bytes,8,opt,name=build_link,json=buildLink,proto3" json:"build_link,omitempty"`
// Text for option to search for build changes.
BuildLinkText string `protobuf:"bytes,9,opt,name=build_link_text,json=buildLinkText,proto3" json:"build_link_text,omitempty"`
// Text to display for link to search for build changes.
BuildUrlText string `protobuf:"bytes,10,opt,name=build_url_text,json=buildUrlText,proto3" json:"build_url_text,omitempty"`
// The build ID for the latest test failure. (Does not indicate the failure is
// 'over', just the latest test failure we found.)
LatestFailBuildId string `protobuf:"bytes,11,opt,name=latest_fail_build_id,json=latestFailBuildId,proto3" json:"latest_fail_build_id,omitempty"`
// The test ID for the latest test failure.
LatestFailTestId string `protobuf:"bytes,14,opt,name=latest_fail_test_id,json=latestFailTestId,proto3" json:"latest_fail_test_id,omitempty"`
// Maps (property name):(property value) for arbitrary alert properties.
Properties map[string]string `protobuf:"bytes,12,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// A list of IDs for issue hotlists related to this failure.
HotlistIds []string `protobuf:"bytes,13,rep,name=hotlist_ids,json=hotlistIds,proto3" json:"hotlist_ids,omitempty"`
// Dynamic email list, route email alerts to these instead of the configured
// defaults.
EmailAddresses []string `protobuf:"bytes,15,rep,name=email_addresses,json=emailAddresses,proto3" json:"email_addresses,omitempty"`
// Maps (custom column headers name):(custom column headers value) for arbitrary alert properties.
CustomColumnHeaders map[string]string `protobuf:"bytes,16,rep,name=custom_column_headers,json=customColumnHeaders,proto3" json:"custom_column_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *AlertInfo) Reset() {
*x = AlertInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_state_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AlertInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AlertInfo) ProtoMessage() {}
func (x *AlertInfo) ProtoReflect() protoreflect.Message {
mi := &file_state_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AlertInfo.ProtoReflect.Descriptor instead.
func (*AlertInfo) Descriptor() ([]byte, []int) {
return file_state_proto_rawDescGZIP(), []int{4}
}
func (x *AlertInfo) GetFailCount() int32 {
if x != nil {
return x.FailCount
}
return 0
}
func (x *AlertInfo) GetFailBuildId() string {
if x != nil {
return x.FailBuildId
}
return ""
}
func (x *AlertInfo) GetFailTime() *timestamppb.Timestamp {
if x != nil {
return x.FailTime
}
return nil
}
func (x *AlertInfo) GetFailTestId() string {
if x != nil {
return x.FailTestId
}
return ""
}
func (x *AlertInfo) GetPassBuildId() string {
if x != nil {
return x.PassBuildId
}
return ""
}
func (x *AlertInfo) GetPassTime() *timestamppb.Timestamp {
if x != nil {
return x.PassTime
}
return nil
}
func (x *AlertInfo) GetFailureMessage() string {
if x != nil {
return x.FailureMessage
}
return ""
}
func (x *AlertInfo) GetBuildLink() string {
if x != nil {
return x.BuildLink
}
return ""
}
func (x *AlertInfo) GetBuildLinkText() string {
if x != nil {
return x.BuildLinkText
}
return ""
}
func (x *AlertInfo) GetBuildUrlText() string {
if x != nil {
return x.BuildUrlText
}
return ""
}
func (x *AlertInfo) GetLatestFailBuildId() string {
if x != nil {
return x.LatestFailBuildId
}
return ""
}
func (x *AlertInfo) GetLatestFailTestId() string {
if x != nil {
return x.LatestFailTestId
}
return ""
}
func (x *AlertInfo) GetProperties() map[string]string {
if x != nil {
return x.Properties
}
return nil
}
func (x *AlertInfo) GetHotlistIds() []string {
if x != nil {
return x.HotlistIds
}
return nil
}
func (x *AlertInfo) GetEmailAddresses() []string {
if x != nil {
return x.EmailAddresses
}
return nil
}
func (x *AlertInfo) GetCustomColumnHeaders() map[string]string {
if x != nil {
return x.CustomColumnHeaders
}
return nil
}
// Info on default test metadata for a dashboard tab.
type TestMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the test with associated test metadata.
TestName string `protobuf:"bytes,1,opt,name=test_name,json=testName,proto3" json:"test_name,omitempty"`
// Default bug component.
BugComponent int32 `protobuf:"varint,2,opt,name=bug_component,json=bugComponent,proto3" json:"bug_component,omitempty"`
// Default owner.
Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
// Default list of cc's.
Cc []string `protobuf:"bytes,4,rep,name=cc,proto3" json:"cc,omitempty"`
// When present, only file a bug for failed tests with same error type.
// Otherwise, always file a bug.
ErrorType string `protobuf:"bytes,5,opt,name=error_type,json=errorType,proto3" json:"error_type,omitempty"`
}
func (x *TestMetadata) Reset() {
*x = TestMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_state_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestMetadata) ProtoMessage() {}
func (x *TestMetadata) ProtoReflect() protoreflect.Message {
mi := &file_state_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestMetadata.ProtoReflect.Descriptor instead.
func (*TestMetadata) Descriptor() ([]byte, []int) {
return file_state_proto_rawDescGZIP(), []int{5}
}
func (x *TestMetadata) GetTestName() string {
if x != nil {
return x.TestName
}
return ""
}
func (x *TestMetadata) GetBugComponent() int32 {
if x != nil {
return x.BugComponent
}
return 0
}
func (x *TestMetadata) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *TestMetadata) GetCc() []string {
if x != nil {
return x.Cc
}
return nil
}
func (x *TestMetadata) GetErrorType() string {
if x != nil {
return x.ErrorType
}
return ""
}
// TestGrid column headers. Does not contain the individual cells.
type Column struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Unique instance of the job, typically BUILD_NUMBER from prow or a guid
Build string `protobuf:"bytes,1,opt,name=build,proto3" json:"build,omitempty"`
// Name associated with the column (such as the run/invocation ID).No two
// columns should have the same build_id and name. The name field allows the
// display of multiple columns with the same build_id.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Milliseconds since start of epoch (python time.time() * 1000)
// TODO(#683): Use a timestamp, not this double
Started float64 `protobuf:"fixed64,3,opt,name=started,proto3" json:"started,omitempty"`
// Additional custom headers like commit, image used, etc.
Extra []string `protobuf:"bytes,4,rep,name=extra,proto3" json:"extra,omitempty"`
// Custom hotlist ids.
HotlistIds string `protobuf:"bytes,5,opt,name=hotlist_ids,json=hotlistIds,proto3" json:"hotlist_ids,omitempty"`
// An optional hint for the updater.
Hint string `protobuf:"bytes,6,opt,name=hint,proto3" json:"hint,omitempty"`
// Dynamic email list, route email alerts to these instead of the configured
// defaults.
EmailAddresses []string `protobuf:"bytes,7,rep,name=email_addresses,json=emailAddresses,proto3" json:"email_addresses,omitempty"`
// Status totals for the column.
// Only written in tab state, if a broken threshold is defined for columns.
Stats *Stats `protobuf:"bytes,8,opt,name=stats,proto3" json:"stats,omitempty"`
}
func (x *Column) Reset() {
*x = Column{}
if protoimpl.UnsafeEnabled {
mi := &file_state_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Column) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Column) ProtoMessage() {}
func (x *Column) ProtoReflect() protoreflect.Message {
mi := &file_state_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Column.ProtoReflect.Descriptor instead.
func (*Column) Descriptor() ([]byte, []int) {
return file_state_proto_rawDescGZIP(), []int{6}
}
func (x *Column) GetBuild() string {
if x != nil {
return x.Build
}
return ""
}
func (x *Column) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Column) GetStarted() float64 {
if x != nil {
return x.Started
}
return 0
}
func (x *Column) GetExtra() []string {
if x != nil {
return x.Extra
}
return nil
}
func (x *Column) GetHotlistIds() string {
if x != nil {
return x.HotlistIds
}
return ""
}
func (x *Column) GetHint() string {
if x != nil {
return x.Hint
}
return ""
}
func (x *Column) GetEmailAddresses() []string {
if x != nil {
return x.EmailAddresses
}
return nil
}
func (x *Column) GetStats() *Stats {
if x != nil {
return x.Stats
}
return nil
}
type Stats struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
FailCount int32 `protobuf:"varint,1,opt,name=fail_count,json=failCount,proto3" json:"fail_count,omitempty"`
PassCount int32 `protobuf:"varint,2,opt,name=pass_count,json=passCount,proto3" json:"pass_count,omitempty"`
TotalCount int32 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
// True if this column has any in-progress runs.
Pending bool `protobuf:"varint,4,opt,name=pending,proto3" json:"pending,omitempty"`
// True if a broken threshold is defined, and this column's fail/total ratio
// exceeds it.
Broken bool `protobuf:"varint,5,opt,name=broken,proto3" json:"broken,omitempty"`
}
func (x *Stats) Reset() {
*x = Stats{}
if protoimpl.UnsafeEnabled {
mi := &file_state_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Stats) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Stats) ProtoMessage() {}
func (x *Stats) ProtoReflect() protoreflect.Message {
mi := &file_state_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Stats.ProtoReflect.Descriptor instead.
func (*Stats) Descriptor() ([]byte, []int) {
return file_state_proto_rawDescGZIP(), []int{7}
}
func (x *Stats) GetFailCount() int32 {
if x != nil {
return x.FailCount
}
return 0
}
func (x *Stats) GetPassCount() int32 {
if x != nil {
return x.PassCount
}
return 0
}
func (x *Stats) GetTotalCount() int32 {
if x != nil {
return x.TotalCount
}
return 0
}
func (x *Stats) GetPending() bool {
if x != nil {
return x.Pending
}
return false
}
func (x *Stats) GetBroken() bool {
if x != nil {
return x.Broken
}
return false
}
// TestGrid rows
type Row struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Display name, which might process id to append/filter info.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// raw id for the row, such as the bazel target or golang package.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// Results for this row, run-length encoded to reduce size/improve
// performance. Thus (encoded -> decoded equivalent):
// [0, 3, 5, 4] -> [0, 0, 0, 5, 5, 5, 5]
// [5, 1] -> [5]
// [1, 5] -> [1, 1, 1, 1, 1]
// The decoded values are Result enums
Results []int32 `protobuf:"varint,3,rep,packed,name=results,proto3" json:"results,omitempty"`
// Test IDs for each test result in this test case.
// Must be present on every column, regardless of status.
CellIds []string `protobuf:"bytes,4,rep,name=cell_ids,json=cellIds,proto3" json:"cell_ids,omitempty"`
// Short description of the result, displayed on mouseover.
// Present for any column with a non-empty status (not NO_RESULT).
Messages []string `protobuf:"bytes,5,rep,name=messages,proto3" json:"messages,omitempty"`
// Names of metrics associated with this test case. Stored separate from
// metric info (which may be omitted).
Metric []string `protobuf:"bytes,7,rep,name=metric,proto3" json:"metric,omitempty"`
Metrics []*Metric `protobuf:"bytes,8,rep,name=metrics,proto3" json:"metrics,omitempty"` // Numerical performance/timing data, etc.
// Short string to place inside the cell (F for fail, etc)
// Present for any column with a non-empty status (not NO_RESULT).
Icons []string `protobuf:"bytes,9,rep,name=icons,proto3" json:"icons,omitempty"`
// IDs for issues associated with this row.
Issues []string `protobuf:"bytes,10,rep,name=issues,proto3" json:"issues,omitempty"`
// An alert for the failure if there's a recent failure for this row.
AlertInfo *AlertInfo `protobuf:"bytes,11,opt,name=alert_info,json=alertInfo,proto3" json:"alert_info,omitempty"`
// Values of a user-defined property found in cells for this row.
// TODO: Fold this into `properties` field.
UserProperty []string `protobuf:"bytes,12,rep,name=user_property,json=userProperty,proto3" json:"user_property,omitempty"`
// General key-value pairs associated with cells in this row.
// Present for any column with a non-empty status (not NO_RESULT).
Properties []*Property `protobuf:"bytes,13,rep,name=properties,proto3" json:"properties,omitempty"`
}
func (x *Row) Reset() {
*x = Row{}
if protoimpl.UnsafeEnabled {
mi := &file_state_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Row) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Row) ProtoMessage() {}
func (x *Row) ProtoReflect() protoreflect.Message {
mi := &file_state_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Row.ProtoReflect.Descriptor instead.
func (*Row) Descriptor() ([]byte, []int) {
return file_state_proto_rawDescGZIP(), []int{8}
}
func (x *Row) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Row) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Row) GetResults() []int32 {
if x != nil {
return x.Results
}
return nil
}
func (x *Row) GetCellIds() []string {
if x != nil {
return x.CellIds
}
return nil
}
func (x *Row) GetMessages() []string {
if x != nil {
return x.Messages
}
return nil
}
func (x *Row) GetMetric() []string {
if x != nil {
return x.Metric
}
return nil
}
func (x *Row) GetMetrics() []*Metric {
if x != nil {
return x.Metrics
}
return nil
}
func (x *Row) GetIcons() []string {
if x != nil {
return x.Icons
}
return nil
}
func (x *Row) GetIssues() []string {
if x != nil {
return x.Issues
}
return nil
}
func (x *Row) GetAlertInfo() *AlertInfo {
if x != nil {
return x.AlertInfo
}
return nil
}
func (x *Row) GetUserProperty() []string {
if x != nil {
return x.UserProperty
}
return nil
}
func (x *Row) GetProperties() []*Property {
if x != nil {
return x.Properties
}
return nil
}
// A single table of test results backing a dashboard tab.
type Grid struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A cycle of test results, not including the results. In the TestGrid client,
// the cycles define the columns.
Columns []*Column `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
// A test case with test results. In the TestGrid client, the cases define the
// rows (and the results define the individual cells).
Rows []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
// The latest configuration used to generate this test group.
Config *config.TestGroup `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
// Seconds since epoch for last time this cycle was updated.
LastTimeUpdated float64 `protobuf:"fixed64,6,opt,name=last_time_updated,json=lastTimeUpdated,proto3" json:"last_time_updated,omitempty"`
// Stored info on previous timing for parts of the update cycle.
UpdateInfo []*UpdateInfo `protobuf:"bytes,8,rep,name=update_info,json=updateInfo,proto3" json:"update_info,omitempty"`
// Stored info on default test metadata.
TestMetadata []*TestMetadata `protobuf:"bytes,9,rep,name=test_metadata,json=testMetadata,proto3" json:"test_metadata,omitempty"`
// Clusters of failures for a TestResultTable instance.
Cluster []*Cluster `protobuf:"bytes,10,rep,name=cluster,proto3" json:"cluster,omitempty"`
// Most recent timestamp that clusters have processed.
MostRecentClusterTimestamp float64 `protobuf:"fixed64,11,opt,name=most_recent_cluster_timestamp,json=mostRecentClusterTimestamp,proto3" json:"most_recent_cluster_timestamp,omitempty"`
}
func (x *Grid) Reset() {
*x = Grid{}
if protoimpl.UnsafeEnabled {
mi := &file_state_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Grid) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Grid) ProtoMessage() {}
func (x *Grid) ProtoReflect() protoreflect.Message {
mi := &file_state_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Grid.ProtoReflect.Descriptor instead.
func (*Grid) Descriptor() ([]byte, []int) {
return file_state_proto_rawDescGZIP(), []int{9}
}
func (x *Grid) GetColumns() []*Column {
if x != nil {
return x.Columns
}
return nil
}
func (x *Grid) GetRows() []*Row {
if x != nil {
return x.Rows
}
return nil
}
func (x *Grid) GetConfig() *config.TestGroup {
if x != nil {
return x.Config
}
return nil
}
func (x *Grid) GetLastTimeUpdated() float64 {
if x != nil {
return x.LastTimeUpdated
}
return 0
}
func (x *Grid) GetUpdateInfo() []*UpdateInfo {
if x != nil {
return x.UpdateInfo
}
return nil
}
func (x *Grid) GetTestMetadata() []*TestMetadata {
if x != nil {
return x.TestMetadata
}
return nil
}
func (x *Grid) GetCluster() []*Cluster {
if x != nil {
return x.Cluster
}