From feb033223b6be19265c83294cb3470aff3504cdb Mon Sep 17 00:00:00 2001 From: Christoffer Jansson Date: Tue, 29 Mar 2022 15:45:17 +0200 Subject: [PATCH] Add WebRTC Weetbix config Bug: b/227310186 Change-Id: Id6ba40cf9ca9dad833b3e484c9a4addbe9662226 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/257042 Reviewed-by: Jeremy Leconte Commit-Queue: Christoffer Jansson Cr-Commit-Position: refs/heads/main@{#36371} --- infra/config/chops-weetbix-dev.cfg | 70 +++++++++++++++++++++++++++++ infra/config/chops-weetbix.cfg | 71 ++++++++++++++++++++++++++++++ infra/config/config.star | 17 +++++++ 3 files changed, 158 insertions(+) create mode 100644 infra/config/chops-weetbix-dev.cfg create mode 100644 infra/config/chops-weetbix.cfg diff --git a/infra/config/chops-weetbix-dev.cfg b/infra/config/chops-weetbix-dev.cfg new file mode 100644 index 0000000000..eaef9eae73 --- /dev/null +++ b/infra/config/chops-weetbix-dev.cfg @@ -0,0 +1,70 @@ +# Schema for this config file: ProjectConfig in: +# https://luci-config.appspot.com/schemas/projects:chops-weetbix.cfg +bug_filing_threshold { + presubmit_runs_failed { + # clusters blocking developers should have bugs filed. + one_day: 3 + } + test_runs_failed { + # clusters that aren't blocking developers but are failing a significant + # amount of tasks should have bugs filed to look into optimizing machine + # resource usage. + one_day: 500 + } +} +clustering { + test_name_rules { + name: "Tast Tests" + pattern: "^tast\\.(?P([^.]+))\\.(?P([^.]+))\\..*$" + like_template: "tast.${suite}.${testname}.%" + } +} +monorail { + project: "chromium" + default_field_values { + # Type field. + field_id: 10 + value: "Bug" + } + priority_field_id: 11 + priorities { + priority: "0" + threshold { + presubmit_runs_failed { + one_day: 20 + } + } + } + priorities { + priority: "1" + threshold { + presubmit_runs_failed { + one_day: 10 + } + } + } + priorities { + priority: "2" + threshold { + presubmit_runs_failed { + one_day: 2 + } + } + } + priorities { + priority: "3" + threshold { + # Clusters which fail to meet this threshold will be closed. + test_runs_failed { + one_day: 2 + } + presubmit_runs_failed { + one_day: 1 + seven_day: 1 + } + } + } + priority_hysteresis_percent: 50 + monorail_hostname: "monorail-staging.appspot.com" + display_prefix: "crbug.com" +} diff --git a/infra/config/chops-weetbix.cfg b/infra/config/chops-weetbix.cfg new file mode 100644 index 0000000000..9c9f153e00 --- /dev/null +++ b/infra/config/chops-weetbix.cfg @@ -0,0 +1,71 @@ +# Schema for this config file: ProjectConfig in: +# https://luci-config.appspot.com/schemas/projects:chops-weetbix.cfg +bug_filing_threshold { + presubmit_runs_failed { + # clusters blocking developers should have bugs filed. + one_day: 3 + } + test_runs_failed { + # clusters that aren't blocking developers but are failing a significant + # amount of tasks should have bugs filed to look into optimizing machine + # resource usage. + one_day: 500 + } +} +clustering { + test_name_rules { + name: "Tast Tests" + pattern: "^tast\\.(?P([^.]+))\\.(?P([^.]+))\\..*$" + like_template: "tast.${suite}.${testname}.%" + } +} +monorail { + project: "chromium" + default_field_values { + # Type field. + field_id: 10 + value: "Bug" + } + priority_field_id: 11 + priorities { + priority: "0" + threshold { + presubmit_runs_failed { + one_day: 20 + } + } + } + priorities { + priority: "1" + threshold { + presubmit_runs_failed { + one_day: 10 + } + } + } + priorities { + priority: "2" + threshold { + presubmit_runs_failed { + one_day: 2 + } + } + } + priorities { + priority: "3" + threshold { + # Clusters which fail to meet this threshold will be closed. + test_runs_failed { + one_day: 2 + } + presubmit_runs_failed { + one_day: 1 + seven_day: 1 + } + } + } + priority_hysteresis_percent: 50 + monorail_hostname: "bugs.chromium.org" + display_prefix: "crbug.com" +} + diff --git a/infra/config/config.star b/infra/config/config.star index af404c8c76..8be9be5493 100755 --- a/infra/config/config.star +++ b/infra/config/config.star @@ -59,6 +59,8 @@ luci.builder.defaults.test_presentation.set( lucicfg.config( config_dir = ".", tracked_files = [ + "chops-weetbix-dev.cfg", + "chops-weetbix.cfg", "commit-queue.cfg", "cr-buildbucket.cfg", "luci-logdog.cfg", @@ -122,6 +124,21 @@ luci.milo( logo = "https://storage.googleapis.com/chrome-infra/webrtc-logo-vert-retro-255x305.png", ) +# Configure Weetbix (config is copied verbatim) +################################################################################ + +lucicfg.emit( + dest = "chops-weetbix-dev.cfg", + data = io.read_file("chops-weetbix-dev.cfg"), +) + +lucicfg.emit( + dest = "chops-weetbix.cfg", + data = io.read_file("chops-weetbix.cfg"), +) + +################################################################################ + luci.notify(tree_closing_enabled = True) luci.cq(