xref: /aosp_15_r20/tools/asuite/atest/proto/internal_user_log.proto (revision c2e18aaa1096c836b086f94603d04f4eb9cf37f5)
1syntax = "proto2";
2
3import "atest/proto/common.proto";
4
5option java_package = "com.android.asuite.clearcut";
6
7// Proto used by Atest CLI Tool for internal Users
8message AtestLogEventInternal {
9
10  // ------------------------
11  // EVENT DEFINITIONS
12  // ------------------------
13  // Occurs immediately upon execution of atest
14  message AtestStartEvent {
15    optional string command_line = 1;
16    repeated string test_references = 2;
17    optional string cwd = 3;
18    optional string os = 4;
19    optional string source_root = 5;
20    optional string hostname = 6;
21  }
22
23  // Occurs when atest exits for any reason
24  message AtestExitEvent {
25    optional Duration duration = 1;
26    optional int32 exit_code = 2;
27    optional string stacktrace = 3;
28    optional string logs = 4;
29  }
30
31  // Occurs after a SINGLE test reference has been resolved to a test or
32  // not found
33  message FindTestFinishEvent {
34    optional Duration duration = 1;
35    optional bool success = 2;
36    optional string test_reference = 3;
37    repeated string test_finders = 4;
38    optional string test_info = 5;
39  }
40
41  // Occurs after the build finishes, either successfully or not.
42  message BuildFinishEvent {
43    optional Duration duration = 1;
44    optional bool success = 2;
45    repeated string targets = 3;
46  }
47
48  // Occurs when a single test runner has completed
49  message RunnerFinishEvent {
50    optional Duration duration = 1;
51    optional bool success = 2;
52    optional string runner_name = 3;
53    message Test {
54      optional string name = 1;
55      optional int32 result = 2;
56      optional string stacktrace = 3;
57    }
58    repeated Test test = 4;
59  }
60
61  // Occurs after all test runners and tests have finished
62  message RunTestsFinishEvent {
63    optional Duration duration = 1;
64  }
65
66  // Occurs after detection of catching bug by atest have finished
67  message LocalDetectEvent {
68    optional int32 detect_type = 1;
69    optional int32 result = 2;
70  }
71
72  // ------------------------
73  // FIELDS FOR ATESTLOGEVENT
74  // ------------------------
75  optional string user_key = 1;
76  optional string run_id = 2;
77  optional UserType user_type = 3;
78  optional string tool_name = 10;
79  optional string sub_tool_name = 12;
80  optional string user_name = 13 [deprecated = true];
81  oneof event {
82    AtestStartEvent atest_start_event = 4;
83    AtestExitEvent atest_exit_event = 5;
84    FindTestFinishEvent find_test_finish_event= 6;
85    BuildFinishEvent build_finish_event = 7;
86    RunnerFinishEvent runner_finish_event = 8;
87    RunTestsFinishEvent run_tests_finish_event = 9;
88    LocalDetectEvent local_detect_event = 11;
89  }
90}
91