Home | History | Annotate | Download | only in proto
      1 // Copyright 2017 The Android Open Source Project
      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 syntax = "proto2";
     16 
     17 package android.test.lab;
     18 
     19 // Type of a command.
     20 enum BuildStorageType {
     21   UNKNOWN_BUILD_STORAGE_TYPE = 0;
     22   // For Partner Android Build (PAB)
     23   BUILD_STORAGE_TYPE_PAB = 1;
     24   // For a Google Cloud Storage (GCS) bucket
     25   BUILD_STORAGE_TYPE_GCS = 2;
     26 }
     27 
     28 // To specify the whole test execution schedule of a manifest branch.
     29 message ScheduleConfigMessage {
     30   // Manifest branch name.
     31   optional bytes manifest_branch = 1;
     32 
     33   // PAB account ID.
     34   optional bytes pab_account_id = 2;
     35 
     36   // Device image storage type (e.g., PAB or GCS)
     37   optional BuildStorageType build_storage_type = 3 [default = BUILD_STORAGE_TYPE_PAB];
     38 
     39   // For the IP address.
     40   repeated BuildScheduleConfigMessage build_target = 11;
     41 }
     42 
     43 message BuildScheduleConfigMessage {
     44   // build target name (e.g., aosp_taimen-userdebug)
     45   optional bytes name = 1;
     46 
     47   repeated TestScheduleConfigMessage test_schedule = 11;
     48 }
     49 
     50 message TestScheduleConfigMessage {
     51   // Test name (e.g., test_group/test_plan)
     52   optional bytes test_name = 1;
     53 
     54   // Scheduling period in minutes
     55   optional int32 period = 2;
     56 
     57   // Priority such as high, low, or medium
     58   optional bytes priority = 3;
     59 
     60   // such as <lab>/<device type>
     61   repeated bytes device = 4;
     62 
     63   // number of shards (-1 for auto selection?)
     64   optional int32 shards = 5;
     65 
     66   optional bytes param = 11;
     67 
     68   // GSI storage type (e.g., PAB or GCS)
     69   optional BuildStorageType gsi_storage_type = 24 [default = BUILD_STORAGE_TYPE_PAB];
     70 
     71   // if GSI (General System Image) is used, GSI manifest branch name.
     72   optional bytes gsi_branch = 21;
     73 
     74   // if GSI (General System Image) is used, GSI build target name.
     75   optional bytes gsi_build_target = 22;
     76 
     77   // if GSI (General System Image) is used, GSI PAB account ID.
     78   optional bytes gsi_pab_account_id = 23;
     79 
     80   // Test package's storage type (e.g., PAB or GCS)
     81   optional BuildStorageType test_storage_type = 34 [default = BUILD_STORAGE_TYPE_PAB];
     82 
     83   // Test package's manifest branch name.
     84   optional bytes test_branch = 31;
     85 
     86   // Test package's build target name.
     87   optional bytes test_build_target = 32;
     88 
     89   // PAB account ID for test package.
     90   optional bytes test_pab_account_id = 33;
     91 
     92   // number of retry count
     93   optional int32 retry_count = 41;
     94 }
     95