/
action.pb.go
1459 lines (1309 loc) · 56.7 KB
/
action.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/action.proto
package resultstore
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Indicates how/where this Action was executed.
type ExecutionStrategy int32
const (
// The action did not indicate how it was executed.
ExecutionStrategy_EXECUTION_STRATEGY_UNSPECIFIED ExecutionStrategy = 0
// The action was executed in some other form.
ExecutionStrategy_OTHER_ENVIRONMENT ExecutionStrategy = 1
// The action used a remote build service.
ExecutionStrategy_REMOTE_SERVICE ExecutionStrategy = 2
// The action was executed locally, in parallel with other actions.
ExecutionStrategy_LOCAL_PARALLEL ExecutionStrategy = 3
// The action was executed locally, without parallelism.
ExecutionStrategy_LOCAL_SEQUENTIAL ExecutionStrategy = 4
)
var ExecutionStrategy_name = map[int32]string{
0: "EXECUTION_STRATEGY_UNSPECIFIED",
1: "OTHER_ENVIRONMENT",
2: "REMOTE_SERVICE",
3: "LOCAL_PARALLEL",
4: "LOCAL_SEQUENTIAL",
}
var ExecutionStrategy_value = map[string]int32{
"EXECUTION_STRATEGY_UNSPECIFIED": 0,
"OTHER_ENVIRONMENT": 1,
"REMOTE_SERVICE": 2,
"LOCAL_PARALLEL": 3,
"LOCAL_SEQUENTIAL": 4,
}
func (x ExecutionStrategy) String() string {
return proto.EnumName(ExecutionStrategy_name, int32(x))
}
func (ExecutionStrategy) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{0}
}
// Most build systems cache build results to speed up incremental builds.
// Some also cache test results too. This indicates whether the test results
// were found in a cache, and where that cache was located.
type TestCaching int32
const (
// The implicit default enum value. Should never be set.
TestCaching_TEST_CACHING_UNSPECIFIED TestCaching = 0
// The test result was found in a local cache, so it wasn't run again.
TestCaching_LOCAL_CACHE_HIT TestCaching = 1
// The test result was found in a remote cache, so it wasn't run again.
TestCaching_REMOTE_CACHE_HIT TestCaching = 2
// The test result was not found in any cache, so it had to be run again.
TestCaching_CACHE_MISS TestCaching = 3
)
var TestCaching_name = map[int32]string{
0: "TEST_CACHING_UNSPECIFIED",
1: "LOCAL_CACHE_HIT",
2: "REMOTE_CACHE_HIT",
3: "CACHE_MISS",
}
var TestCaching_value = map[string]int32{
"TEST_CACHING_UNSPECIFIED": 0,
"LOCAL_CACHE_HIT": 1,
"REMOTE_CACHE_HIT": 2,
"CACHE_MISS": 3,
}
func (x TestCaching) String() string {
return proto.EnumName(TestCaching_name, int32(x))
}
func (TestCaching) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{1}
}
// Errors in file post-processing are categorized using this enum.
type FileProcessingErrorType int32
const (
// Type unspecified or not listed here.
FileProcessingErrorType_FILE_PROCESSING_ERROR_TYPE_UNSPECIFIED FileProcessingErrorType = 0
// A read error occurred trying to read the file.
FileProcessingErrorType_GENERIC_READ_ERROR FileProcessingErrorType = 1
// There was an error trying to parse the file.
FileProcessingErrorType_GENERIC_PARSE_ERROR FileProcessingErrorType = 2
// File is exceeds size limit.
FileProcessingErrorType_FILE_TOO_LARGE FileProcessingErrorType = 3
// The result of parsing the file exceeded size limit.
FileProcessingErrorType_OUTPUT_TOO_LARGE FileProcessingErrorType = 4
// Read access to the file was denied by file system.
FileProcessingErrorType_ACCESS_DENIED FileProcessingErrorType = 5
// Deadline exceeded trying to read the file.
FileProcessingErrorType_DEADLINE_EXCEEDED FileProcessingErrorType = 6
// File not found.
FileProcessingErrorType_NOT_FOUND FileProcessingErrorType = 7
)
var FileProcessingErrorType_name = map[int32]string{
0: "FILE_PROCESSING_ERROR_TYPE_UNSPECIFIED",
1: "GENERIC_READ_ERROR",
2: "GENERIC_PARSE_ERROR",
3: "FILE_TOO_LARGE",
4: "OUTPUT_TOO_LARGE",
5: "ACCESS_DENIED",
6: "DEADLINE_EXCEEDED",
7: "NOT_FOUND",
}
var FileProcessingErrorType_value = map[string]int32{
"FILE_PROCESSING_ERROR_TYPE_UNSPECIFIED": 0,
"GENERIC_READ_ERROR": 1,
"GENERIC_PARSE_ERROR": 2,
"FILE_TOO_LARGE": 3,
"OUTPUT_TOO_LARGE": 4,
"ACCESS_DENIED": 5,
"DEADLINE_EXCEEDED": 6,
"NOT_FOUND": 7,
}
func (x FileProcessingErrorType) String() string {
return proto.EnumName(FileProcessingErrorType_name, int32(x))
}
func (FileProcessingErrorType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{2}
}
// An action that happened as part of a configured target. This action could be
// a build, a test, or another type of action.
// Each parent ConfiguredTarget resource should have at least one Action as its
// child resource before the invocation is finalized. ResultStore is a tool to
// store build & test results. ConfiguredTarget proto by itself does not contain
// enough fields to fully represent such results. For a simple build, at least
// one build action is required to represent the build result.
type Action struct {
// The resource name. Its format must be:
// invocations/${INVOCATION_ID}/targets/${TARGET_ID}/configuredTargets/${CONFIG_ID}/actions/${ACTION_ID}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource ID components that identify the Action. They must match the
// resource name after proper encoding.
Id *Action_Id `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The status of the action.
StatusAttributes *StatusAttributes `protobuf:"bytes,3,opt,name=status_attributes,json=statusAttributes,proto3" json:"status_attributes,omitempty"`
// The timing of the whole action. For TestActions, the start time may be
// before the test actually started, and the duration may last until after the
// test actually finished.
Timing *Timing `protobuf:"bytes,4,opt,name=timing,proto3" json:"timing,omitempty"`
// The type of the action. The type of an action may not change over the
// lifetime of the invocation. If one of these fields is to be set, it must be
// set in the CreateAction method. It may be set to an empty message that is
// populated in later methods or post-processing. A generic "untyped" action
// can be created by not setting any of these fields. An untyped action will
// be untyped for the lifetime of the invocation.
//
// Types that are valid to be assigned to ActionType:
// *Action_BuildAction
// *Action_TestAction
ActionType isAction_ActionType `protobuf_oneof:"action_type"`
// General attributes of the action.
ActionAttributes *ActionAttributes `protobuf:"bytes,5,opt,name=action_attributes,json=actionAttributes,proto3" json:"action_attributes,omitempty"`
// A list of resources that this action depended upon. May be used to provide
// the cause of a build failure in the case of a failed build action.
ActionDependencies []*Dependency `protobuf:"bytes,14,rep,name=action_dependencies,json=actionDependencies,proto3" json:"action_dependencies,omitempty"`
// Arbitrary name-value pairs.
// This is implemented as a multi-map. Multiple properties are allowed with
// the same key. Properties will be returned in lexicographical order by key.
Properties []*Property `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty"`
// A list of file references for action level files.
// The file IDs must be unique within this list. Duplicate file IDs will
// result in an error. Files will be returned in lexicographical order by ID.
// Files with the following reserved file IDs cause specific post-processing
// or have special handling:
//
// For build actions:
// stdout: The stdout of the action
// stderr: The stderr of the action
// baseline.lcov: Baseline coverage file to be parsed by the server. This
// uses a stripped down implementation of the LCOV standard.
// http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php
//
// For test actions:
// test.xml: The test suite / test case data in XML format.
// test.log: The combined stdout and stderr of the test process.
// test.lcov: Coverage file to be parsed by the server. This uses a stripped
// down implementation of the LCOV standard.
// http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php
Files []*File `protobuf:"bytes,8,rep,name=files,proto3" json:"files,omitempty"`
// Coverage data was collected while running the build or test action. This
// usually includes line coverage, and may also include branch coverage.
// For test actions, this is usually only for the source files which were
// actually executed by that particular action.
// For build actions, this is the baseline coverage, which captures the
// instrumented files and lines, without any lines being executed. This
// ensures files that are never covered at all are included.
Coverage *ActionCoverage `protobuf:"bytes,11,opt,name=coverage,proto3" json:"coverage,omitempty"`
// ResultStore will read and parse Files with reserved IDs listed above. Read
// and parse errors for all these Files are reported here.
// This is implemented as a map, with one FileProcessingErrors for each file.
// Typically produced when parsing Files, but may also be provided directly
// by clients.
FileProcessingErrors []*FileProcessingErrors `protobuf:"bytes,13,rep,name=file_processing_errors,json=fileProcessingErrors,proto3" json:"file_processing_errors,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Action) Reset() { *m = Action{} }
func (m *Action) String() string { return proto.CompactTextString(m) }
func (*Action) ProtoMessage() {}
func (*Action) Descriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{0}
}
func (m *Action) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Action.Unmarshal(m, b)
}
func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Action.Marshal(b, m, deterministic)
}
func (m *Action) XXX_Merge(src proto.Message) {
xxx_messageInfo_Action.Merge(m, src)
}
func (m *Action) XXX_Size() int {
return xxx_messageInfo_Action.Size(m)
}
func (m *Action) XXX_DiscardUnknown() {
xxx_messageInfo_Action.DiscardUnknown(m)
}
var xxx_messageInfo_Action proto.InternalMessageInfo
func (m *Action) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Action) GetId() *Action_Id {
if m != nil {
return m.Id
}
return nil
}
func (m *Action) GetStatusAttributes() *StatusAttributes {
if m != nil {
return m.StatusAttributes
}
return nil
}
func (m *Action) GetTiming() *Timing {
if m != nil {
return m.Timing
}
return nil
}
type isAction_ActionType interface {
isAction_ActionType()
}
type Action_BuildAction struct {
BuildAction *BuildAction `protobuf:"bytes,9,opt,name=build_action,json=buildAction,proto3,oneof"`
}
type Action_TestAction struct {
TestAction *TestAction `protobuf:"bytes,10,opt,name=test_action,json=testAction,proto3,oneof"`
}
func (*Action_BuildAction) isAction_ActionType() {}
func (*Action_TestAction) isAction_ActionType() {}
func (m *Action) GetActionType() isAction_ActionType {
if m != nil {
return m.ActionType
}
return nil
}
func (m *Action) GetBuildAction() *BuildAction {
if x, ok := m.GetActionType().(*Action_BuildAction); ok {
return x.BuildAction
}
return nil
}
func (m *Action) GetTestAction() *TestAction {
if x, ok := m.GetActionType().(*Action_TestAction); ok {
return x.TestAction
}
return nil
}
func (m *Action) GetActionAttributes() *ActionAttributes {
if m != nil {
return m.ActionAttributes
}
return nil
}
func (m *Action) GetActionDependencies() []*Dependency {
if m != nil {
return m.ActionDependencies
}
return nil
}
func (m *Action) GetProperties() []*Property {
if m != nil {
return m.Properties
}
return nil
}
func (m *Action) GetFiles() []*File {
if m != nil {
return m.Files
}
return nil
}
func (m *Action) GetCoverage() *ActionCoverage {
if m != nil {
return m.Coverage
}
return nil
}
func (m *Action) GetFileProcessingErrors() []*FileProcessingErrors {
if m != nil {
return m.FileProcessingErrors
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Action) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Action_OneofMarshaler, _Action_OneofUnmarshaler, _Action_OneofSizer, []interface{}{
(*Action_BuildAction)(nil),
(*Action_TestAction)(nil),
}
}
func _Action_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Action)
// action_type
switch x := m.ActionType.(type) {
case *Action_BuildAction:
b.EncodeVarint(9<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BuildAction); err != nil {
return err
}
case *Action_TestAction:
b.EncodeVarint(10<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TestAction); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Action.ActionType has unexpected type %T", x)
}
return nil
}
func _Action_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Action)
switch tag {
case 9: // action_type.build_action
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildAction)
err := b.DecodeMessage(msg)
m.ActionType = &Action_BuildAction{msg}
return true, err
case 10: // action_type.test_action
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TestAction)
err := b.DecodeMessage(msg)
m.ActionType = &Action_TestAction{msg}
return true, err
default:
return false, nil
}
}
func _Action_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Action)
// action_type
switch x := m.ActionType.(type) {
case *Action_BuildAction:
s := proto.Size(x.BuildAction)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Action_TestAction:
s := proto.Size(x.TestAction)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// The resource ID components that identify the Action.
type Action_Id struct {
// The Invocation ID.
InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
// The Target ID.
TargetId string `protobuf:"bytes,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
// The Configuration ID.
ConfigurationId string `protobuf:"bytes,3,opt,name=configuration_id,json=configurationId,proto3" json:"configuration_id,omitempty"`
// The Action ID.
ActionId string `protobuf:"bytes,4,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Action_Id) Reset() { *m = Action_Id{} }
func (m *Action_Id) String() string { return proto.CompactTextString(m) }
func (*Action_Id) ProtoMessage() {}
func (*Action_Id) Descriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{0, 0}
}
func (m *Action_Id) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Action_Id.Unmarshal(m, b)
}
func (m *Action_Id) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Action_Id.Marshal(b, m, deterministic)
}
func (m *Action_Id) XXX_Merge(src proto.Message) {
xxx_messageInfo_Action_Id.Merge(m, src)
}
func (m *Action_Id) XXX_Size() int {
return xxx_messageInfo_Action_Id.Size(m)
}
func (m *Action_Id) XXX_DiscardUnknown() {
xxx_messageInfo_Action_Id.DiscardUnknown(m)
}
var xxx_messageInfo_Action_Id proto.InternalMessageInfo
func (m *Action_Id) GetInvocationId() string {
if m != nil {
return m.InvocationId
}
return ""
}
func (m *Action_Id) GetTargetId() string {
if m != nil {
return m.TargetId
}
return ""
}
func (m *Action_Id) GetConfigurationId() string {
if m != nil {
return m.ConfigurationId
}
return ""
}
func (m *Action_Id) GetActionId() string {
if m != nil {
return m.ActionId
}
return ""
}
// A build action, such as building a java library.
type BuildAction struct {
// The type of the action. This is intended to be a clue as to how the output
// of the action should be parsed. For example "javac" for a Java compile
// action.
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// The "primary" input artifact processed by this action. E.g., the .cc file
// of a C++ compile action. Empty string ("") if the action has no input
// artifacts or no "primary" input artifact.
PrimaryInputPath string `protobuf:"bytes,2,opt,name=primary_input_path,json=primaryInputPath,proto3" json:"primary_input_path,omitempty"`
// The "primary" output artifact processed by this action. E.g., the .o file
// of a C++ compile action. Empty string ("") if the action has no output
// artifacts or no "primary" output artifact.
PrimaryOutputPath string `protobuf:"bytes,3,opt,name=primary_output_path,json=primaryOutputPath,proto3" json:"primary_output_path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildAction) Reset() { *m = BuildAction{} }
func (m *BuildAction) String() string { return proto.CompactTextString(m) }
func (*BuildAction) ProtoMessage() {}
func (*BuildAction) Descriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{1}
}
func (m *BuildAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildAction.Unmarshal(m, b)
}
func (m *BuildAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildAction.Marshal(b, m, deterministic)
}
func (m *BuildAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildAction.Merge(m, src)
}
func (m *BuildAction) XXX_Size() int {
return xxx_messageInfo_BuildAction.Size(m)
}
func (m *BuildAction) XXX_DiscardUnknown() {
xxx_messageInfo_BuildAction.DiscardUnknown(m)
}
var xxx_messageInfo_BuildAction proto.InternalMessageInfo
func (m *BuildAction) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *BuildAction) GetPrimaryInputPath() string {
if m != nil {
return m.PrimaryInputPath
}
return ""
}
func (m *BuildAction) GetPrimaryOutputPath() string {
if m != nil {
return m.PrimaryOutputPath
}
return ""
}
// A test action, such as running a JUnit4 test binary.
type TestAction struct {
// Timing data for execution of the test action.
TestTiming *TestTiming `protobuf:"bytes,1,opt,name=test_timing,json=testTiming,proto3" json:"test_timing,omitempty"`
// If the test is divided up into shards to improve performance, set this to
// indicate which shard this test action is for. Value must be in interval
// [0, total_shard_count). Defaults to 0, which is appropriate if all test
// cases are run in the same process.
ShardNumber int32 `protobuf:"varint,2,opt,name=shard_number,json=shardNumber,proto3" json:"shard_number,omitempty"`
// If the user requested that every test be run multiple times, as is often
// done to measure flakiness, set this to indicate which run this test action
// is for. Value must be in interval [0, total_run_count). Defaults to 0,
// which is appropriate if multiple runs were not requested.
RunNumber int32 `protobuf:"varint,3,opt,name=run_number,json=runNumber,proto3" json:"run_number,omitempty"`
// If flaky tests are automatically retried, set this to indicate which
// attempt this test action is for. (e.g. 0 for the first attempt, 1 for
// second, and so on). Defaults to 0, which is appropriate if this is only
// attempt.
AttemptNumber int32 `protobuf:"varint,4,opt,name=attempt_number,json=attemptNumber,proto3" json:"attempt_number,omitempty"`
// A tree of test suites and test cases that were run by this test action.
// Each test case has its own status information, including stack traces.
// Typically produced by parsing an XML Log, but may also be provided directly
// by clients.
TestSuite *TestSuite `protobuf:"bytes,5,opt,name=test_suite,json=testSuite,proto3" json:"test_suite,omitempty"`
// Warnings for this test action.
Warnings []*TestWarning `protobuf:"bytes,8,rep,name=warnings,proto3" json:"warnings,omitempty"`
// Estimated memory consumption of the test action, in bytes. A default value
// of 0 means there is no memory consumption estimate specified.
EstimatedMemoryBytes int64 `protobuf:"varint,10,opt,name=estimated_memory_bytes,json=estimatedMemoryBytes,proto3" json:"estimated_memory_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestAction) Reset() { *m = TestAction{} }
func (m *TestAction) String() string { return proto.CompactTextString(m) }
func (*TestAction) ProtoMessage() {}
func (*TestAction) Descriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{2}
}
func (m *TestAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestAction.Unmarshal(m, b)
}
func (m *TestAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestAction.Marshal(b, m, deterministic)
}
func (m *TestAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestAction.Merge(m, src)
}
func (m *TestAction) XXX_Size() int {
return xxx_messageInfo_TestAction.Size(m)
}
func (m *TestAction) XXX_DiscardUnknown() {
xxx_messageInfo_TestAction.DiscardUnknown(m)
}
var xxx_messageInfo_TestAction proto.InternalMessageInfo
func (m *TestAction) GetTestTiming() *TestTiming {
if m != nil {
return m.TestTiming
}
return nil
}
func (m *TestAction) GetShardNumber() int32 {
if m != nil {
return m.ShardNumber
}
return 0
}
func (m *TestAction) GetRunNumber() int32 {
if m != nil {
return m.RunNumber
}
return 0
}
func (m *TestAction) GetAttemptNumber() int32 {
if m != nil {
return m.AttemptNumber
}
return 0
}
func (m *TestAction) GetTestSuite() *TestSuite {
if m != nil {
return m.TestSuite
}
return nil
}
func (m *TestAction) GetWarnings() []*TestWarning {
if m != nil {
return m.Warnings
}
return nil
}
func (m *TestAction) GetEstimatedMemoryBytes() int64 {
if m != nil {
return m.EstimatedMemoryBytes
}
return 0
}
// General attributes of an action
type ActionAttributes struct {
// Strategy used for executing the action.
ExecutionStrategy ExecutionStrategy `protobuf:"varint,1,opt,name=execution_strategy,json=executionStrategy,proto3,enum=google.devtools.resultstore.v2.ExecutionStrategy" json:"execution_strategy,omitempty"`
// Exit code of the process that ran the action. A non-zero value means
// failure.
ExitCode int32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
// Where the action was run.
Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
// Information about the input files used in all actions under this configured
// target.
InputFileInfo *InputFileInfo `protobuf:"bytes,4,opt,name=input_file_info,json=inputFileInfo,proto3" json:"input_file_info,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ActionAttributes) Reset() { *m = ActionAttributes{} }
func (m *ActionAttributes) String() string { return proto.CompactTextString(m) }
func (*ActionAttributes) ProtoMessage() {}
func (*ActionAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{3}
}
func (m *ActionAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ActionAttributes.Unmarshal(m, b)
}
func (m *ActionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ActionAttributes.Marshal(b, m, deterministic)
}
func (m *ActionAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ActionAttributes.Merge(m, src)
}
func (m *ActionAttributes) XXX_Size() int {
return xxx_messageInfo_ActionAttributes.Size(m)
}
func (m *ActionAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_ActionAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_ActionAttributes proto.InternalMessageInfo
func (m *ActionAttributes) GetExecutionStrategy() ExecutionStrategy {
if m != nil {
return m.ExecutionStrategy
}
return ExecutionStrategy_EXECUTION_STRATEGY_UNSPECIFIED
}
func (m *ActionAttributes) GetExitCode() int32 {
if m != nil {
return m.ExitCode
}
return 0
}
func (m *ActionAttributes) GetHostname() string {
if m != nil {
return m.Hostname
}
return ""
}
func (m *ActionAttributes) GetInputFileInfo() *InputFileInfo {
if m != nil {
return m.InputFileInfo
}
return nil
}
// File count and size information for the input files to a configured target.
type InputFileInfo struct {
// The number of input files (counting every file, even if a duplicate).
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// The number of distinct input files.
DistinctCount int64 `protobuf:"varint,2,opt,name=distinct_count,json=distinctCount,proto3" json:"distinct_count,omitempty"`
// The max number of input files allowed by the build system (counting every
// file, even if a duplicate).
CountLimit int64 `protobuf:"varint,3,opt,name=count_limit,json=countLimit,proto3" json:"count_limit,omitempty"`
// The total size of the distinct input files.
DistinctBytes int64 `protobuf:"varint,4,opt,name=distinct_bytes,json=distinctBytes,proto3" json:"distinct_bytes,omitempty"`
// The max allowed total size of the distinct input files.
DistinctByteLimit int64 `protobuf:"varint,5,opt,name=distinct_byte_limit,json=distinctByteLimit,proto3" json:"distinct_byte_limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InputFileInfo) Reset() { *m = InputFileInfo{} }
func (m *InputFileInfo) String() string { return proto.CompactTextString(m) }
func (*InputFileInfo) ProtoMessage() {}
func (*InputFileInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{4}
}
func (m *InputFileInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InputFileInfo.Unmarshal(m, b)
}
func (m *InputFileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InputFileInfo.Marshal(b, m, deterministic)
}
func (m *InputFileInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_InputFileInfo.Merge(m, src)
}
func (m *InputFileInfo) XXX_Size() int {
return xxx_messageInfo_InputFileInfo.Size(m)
}
func (m *InputFileInfo) XXX_DiscardUnknown() {
xxx_messageInfo_InputFileInfo.DiscardUnknown(m)
}
var xxx_messageInfo_InputFileInfo proto.InternalMessageInfo
func (m *InputFileInfo) GetCount() int64 {
if m != nil {
return m.Count
}
return 0
}
func (m *InputFileInfo) GetDistinctCount() int64 {
if m != nil {
return m.DistinctCount
}
return 0
}
func (m *InputFileInfo) GetCountLimit() int64 {
if m != nil {
return m.CountLimit
}
return 0
}
func (m *InputFileInfo) GetDistinctBytes() int64 {
if m != nil {
return m.DistinctBytes
}
return 0
}
func (m *InputFileInfo) GetDistinctByteLimit() int64 {
if m != nil {
return m.DistinctByteLimit
}
return 0
}
// Timing data for tests executed locally on the machine running the build.
type LocalTestTiming struct {
// Time taken by the test process, typically surrounded by a small wrapper
// script.
TestProcessDuration *duration.Duration `protobuf:"bytes,1,opt,name=test_process_duration,json=testProcessDuration,proto3" json:"test_process_duration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LocalTestTiming) Reset() { *m = LocalTestTiming{} }
func (m *LocalTestTiming) String() string { return proto.CompactTextString(m) }
func (*LocalTestTiming) ProtoMessage() {}
func (*LocalTestTiming) Descriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{5}
}
func (m *LocalTestTiming) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LocalTestTiming.Unmarshal(m, b)
}
func (m *LocalTestTiming) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LocalTestTiming.Marshal(b, m, deterministic)
}
func (m *LocalTestTiming) XXX_Merge(src proto.Message) {
xxx_messageInfo_LocalTestTiming.Merge(m, src)
}
func (m *LocalTestTiming) XXX_Size() int {
return xxx_messageInfo_LocalTestTiming.Size(m)
}
func (m *LocalTestTiming) XXX_DiscardUnknown() {
xxx_messageInfo_LocalTestTiming.DiscardUnknown(m)
}
var xxx_messageInfo_LocalTestTiming proto.InternalMessageInfo
func (m *LocalTestTiming) GetTestProcessDuration() *duration.Duration {
if m != nil {
return m.TestProcessDuration
}
return nil
}
// Timing data for one attempt to execute a test action remotely.
type RemoteTestAttemptTiming struct {
// Idle period before the test process is invoked on the remote machine.
QueueDuration *duration.Duration `protobuf:"bytes,1,opt,name=queue_duration,json=queueDuration,proto3" json:"queue_duration,omitempty"`
// Time to upload data dependencies from the local machine to the remote
// machine running the test, or to the distributed cache.
UploadDuration *duration.Duration `protobuf:"bytes,2,opt,name=upload_duration,json=uploadDuration,proto3" json:"upload_duration,omitempty"`
// Time to set up the remote machine.
// Not to be confused with setup time in
// xUnit test frameworks, which falls within the test_process_time.
MachineSetupDuration *duration.Duration `protobuf:"bytes,3,opt,name=machine_setup_duration,json=machineSetupDuration,proto3" json:"machine_setup_duration,omitempty"`
// Time taken by the test process, typically surrounded by a small wrapper
// script.
// For Java tests, this includes JVM setup, flag parsing, class path setup,
// parsing files to setup the suite, and finally running your test methods.
// In many cases, only a small fraction of the test process time is spent
// running the test methods.
TestProcessDuration *duration.Duration `protobuf:"bytes,4,opt,name=test_process_duration,json=testProcessDuration,proto3" json:"test_process_duration,omitempty"`
// Time spent retrieving test logs and any other test outputs, back to the
// local machine.
DownloadDuration *duration.Duration `protobuf:"bytes,5,opt,name=download_duration,json=downloadDuration,proto3" json:"download_duration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RemoteTestAttemptTiming) Reset() { *m = RemoteTestAttemptTiming{} }
func (m *RemoteTestAttemptTiming) String() string { return proto.CompactTextString(m) }
func (*RemoteTestAttemptTiming) ProtoMessage() {}
func (*RemoteTestAttemptTiming) Descriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{6}
}
func (m *RemoteTestAttemptTiming) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RemoteTestAttemptTiming.Unmarshal(m, b)
}
func (m *RemoteTestAttemptTiming) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RemoteTestAttemptTiming.Marshal(b, m, deterministic)
}
func (m *RemoteTestAttemptTiming) XXX_Merge(src proto.Message) {
xxx_messageInfo_RemoteTestAttemptTiming.Merge(m, src)
}
func (m *RemoteTestAttemptTiming) XXX_Size() int {
return xxx_messageInfo_RemoteTestAttemptTiming.Size(m)
}
func (m *RemoteTestAttemptTiming) XXX_DiscardUnknown() {
xxx_messageInfo_RemoteTestAttemptTiming.DiscardUnknown(m)
}
var xxx_messageInfo_RemoteTestAttemptTiming proto.InternalMessageInfo
func (m *RemoteTestAttemptTiming) GetQueueDuration() *duration.Duration {
if m != nil {
return m.QueueDuration
}
return nil
}
func (m *RemoteTestAttemptTiming) GetUploadDuration() *duration.Duration {
if m != nil {
return m.UploadDuration
}
return nil
}
func (m *RemoteTestAttemptTiming) GetMachineSetupDuration() *duration.Duration {
if m != nil {
return m.MachineSetupDuration
}
return nil
}
func (m *RemoteTestAttemptTiming) GetTestProcessDuration() *duration.Duration {
if m != nil {
return m.TestProcessDuration
}
return nil
}
func (m *RemoteTestAttemptTiming) GetDownloadDuration() *duration.Duration {
if m != nil {
return m.DownloadDuration
}
return nil
}
// Timing data for the part of the test execution that is done remotely.
type RemoteTestTiming struct {
// Time taken locally to determine what to do.
LocalAnalysisDuration *duration.Duration `protobuf:"bytes,1,opt,name=local_analysis_duration,json=localAnalysisDuration,proto3" json:"local_analysis_duration,omitempty"`
// Normally there is only one attempt, but the system may retry on internal
// errors, leading to multiple attempts.
Attempts []*RemoteTestAttemptTiming `protobuf:"bytes,2,rep,name=attempts,proto3" json:"attempts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RemoteTestTiming) Reset() { *m = RemoteTestTiming{} }
func (m *RemoteTestTiming) String() string { return proto.CompactTextString(m) }
func (*RemoteTestTiming) ProtoMessage() {}
func (*RemoteTestTiming) Descriptor() ([]byte, []int) {
return fileDescriptor_e98e32542f2d3836, []int{7}
}
func (m *RemoteTestTiming) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RemoteTestTiming.Unmarshal(m, b)
}
func (m *RemoteTestTiming) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RemoteTestTiming.Marshal(b, m, deterministic)
}
func (m *RemoteTestTiming) XXX_Merge(src proto.Message) {
xxx_messageInfo_RemoteTestTiming.Merge(m, src)
}
func (m *RemoteTestTiming) XXX_Size() int {
return xxx_messageInfo_RemoteTestTiming.Size(m)
}
func (m *RemoteTestTiming) XXX_DiscardUnknown() {
xxx_messageInfo_RemoteTestTiming.DiscardUnknown(m)
}
var xxx_messageInfo_RemoteTestTiming proto.InternalMessageInfo
func (m *RemoteTestTiming) GetLocalAnalysisDuration() *duration.Duration {
if m != nil {
return m.LocalAnalysisDuration
}
return nil
}
func (m *RemoteTestTiming) GetAttempts() []*RemoteTestAttemptTiming {