1syntax = "proto2"; 2 3import "proto/common.proto"; 4 5option java_package = "com.android.asuite.clearcut"; 6 7// Proto used by Atest CLI Tool for External Non-PII Users 8message AtestLogEventExternal { 9 10 // ------------------------ 11 // EVENT DEFINITIONS 12 // ------------------------ 13 // Occurs immediately upon execution of atest 14 message AtestStartEvent { 15 } 16 17 // Occurs when atest exits for any reason 18 message AtestExitEvent { 19 optional Duration duration = 1; 20 optional int32 exit_code = 2; 21 } 22 23 // Occurs after a SINGLE test reference has been resolved to a test or 24 // not found 25 message FindTestFinishEvent { 26 optional Duration duration = 1; 27 optional bool success = 2; 28 } 29 30 // Occurs after the build finishes, either successfully or not. 31 message BuildFinishEvent { 32 optional Duration duration = 1; 33 optional bool success = 2; 34 } 35 36 // Occurs when a single test runner has completed 37 message RunnerFinishEvent { 38 optional Duration duration = 1; 39 optional bool success = 2; 40 optional string runner_name = 3; 41 } 42 43 // Occurs after all test runners and tests have finished 44 message RunTestsFinishEvent { 45 optional Duration duration = 1; 46 } 47 48 // Occurs after detection of catching bug by atest have finished 49 message LocalDetectEvent { 50 optional int32 detect_type = 1; 51 optional int32 result = 2; 52 } 53 54 // ------------------------ 55 // FIELDS FOR ATESTLOGEVENT 56 // ------------------------ 57 optional string user_key = 1; 58 optional string run_id = 2; 59 optional UserType user_type = 3; 60 optional string tool_name = 10; 61 oneof event { 62 AtestStartEvent atest_start_event = 4; 63 AtestExitEvent atest_exit_event = 5; 64 FindTestFinishEvent find_test_finish_event= 6; 65 BuildFinishEvent build_finish_event = 7; 66 RunnerFinishEvent runner_finish_event = 8; 67 RunTestsFinishEvent run_tests_finish_event = 9; 68 LocalDetectEvent local_detect_event = 11; 69 } 70} 71