go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/proto/config/test_variant_analysis_config.proto (about) 1 // Copyright 2022 The LUCI Authors. 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 = "proto3"; 16 17 package luci.analysis.config; 18 19 import "google/protobuf/duration.proto"; 20 import "go.chromium.org/luci/analysis/proto/analyzedtestvariant/predicate.proto"; 21 22 option go_package = "go.chromium.org/luci/analysis/proto/config;configpb"; 23 24 // Configurations for BigQuery export. 25 // Deprecated, retained for config compatibility only. 26 // Can be deleted once chromium/chrome-m120 and all earlier 27 // versions have their LUCI config deleted. 28 message BigQueryExport { 29 message BigQueryTable { 30 string cloud_project = 1; 31 string dataset = 2; 32 string table = 3; 33 } 34 // The BigQuery table the analyzed test variants should be exported to. 35 // 36 // LUCI Analysis will use the project-scoped service account when exporting 37 // the data. 38 // The project-scoped service account MUST have permissions to create the 39 // table in the dataset and insert rows to the table, e.g. WRITER role. 40 BigQueryTable table = 1; 41 42 // Use predicate to query test variants that should be exported to 43 // BigQuery table. 44 luci.analysis.analyzedtestvariant.Predicate predicate = 2; 45 } 46 47 // Configurations for UpdateTestVariant task. 48 // Deprecated, retained for config compatibility only. 49 // Can be deleted once chromium/chrome-m120 and all earlier 50 // versions have their LUCI config deleted. 51 message UpdateTestVariantTask { 52 // A task will run every interval to calculate the test variant's status. 53 google.protobuf.Duration update_test_variant_task_interval = 1; 54 55 // In each task, verdicts within the duration will be queried 56 // and used to calculate the test variant's status. 57 // 58 // For example, if the duration is 24 hours, LUCI Analysis will use all 59 // the verdicts from the last 24 hours to calculate the variant's status. 60 google.protobuf.Duration test_variant_status_update_duration = 2; 61 } 62 63 // Deprecated, retained for config compatibility only. 64 // Can be deleted once chromium/chrome-m120 and all earlier 65 // versions have their LUCI config deleted. 66 message TestVariantAnalysisConfig { 67 // Configurations for UpdateTestVariant task. 68 UpdateTestVariantTask update_test_variant_task = 1; 69 70 // Configurations for BigQuery export. 71 repeated BigQueryExport bq_exports = 2; 72 73 }