# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Definitions of builders in the presubmit.linux builder group."""
load("//lib/builders.star", "gardener_rotations", "os")
load("//lib/ci.star", "ci")
load("//lib/consoles.star", "consoles")
load("//lib/builder_health_indicators.star", "health_spec")
ci.defaults.set(
pool = ci.DEFAULT_POOL,
console_view = "checks",
health_spec = health_spec.DEFAULT,
service_account = ci.DEFAULT_SERVICE_ACCOUNT,
shadow_service_account = ci.DEFAULT_SHADOW_SERVICE_ACCOUNT,
)
consoles.console_view(
name = "checks",
)
ci.builder(
name = "linux-presubmit",
executable = "recipe:presubmit",
builderless = True,
cores = 32,
os = os.LINUX_DEFAULT,
gardener_rotations = gardener_rotations.CHROMIUM,
console_view_entry = consoles.console_view_entry(
console_view = "checks",
category = "presubmit",
short_name = "linux",
),
contact_team_email = "[email protected]",
execution_timeout = ci.DEFAULT_EXECUTION_TIMEOUT,
properties = {
"$depot_tools/presubmit": {
"runhooks": True,
"timeout_s": 480000,
},
"repo_name": "chromium",
},
)
ci.builder(
name = "win-presubmit",
executable = "recipe:presubmit",
builderless = True,
cores = 32,
os = os.WINDOWS_DEFAULT,
gardener_rotations = gardener_rotations.CHROMIUM,
console_view_entry = consoles.console_view_entry(
console_view = "checks",
category = "presubmit",
short_name = "win",
),
contact_team_email = "[email protected]",
execution_timeout = 6 * time.hour,
properties = {
"$depot_tools/presubmit": {
"runhooks": True,
"timeout_s": 480000,
},
"repo_name": "chromium",
},
)
ci.builder(
name = "linux-3p-licenses",
description_html = "Weekly scan for third party license errors.",
executable = "recipe:chromium_licenses/scan",
schedule = "15 22 * * 1", # Once a week 10:15pm UTC / 8:15am AEST / 1:15am PST
triggered_by = None,
os = os.LINUX_DEFAULT,
console_view_entry = consoles.console_view_entry(
console_view = "checks",
category = "3p-licenses",
short_name = "linux",
),
contact_team_email = "[email protected]",
execution_timeout = ci.DEFAULT_EXECUTION_TIMEOUT,
notifies = ["peeps-security-core-ssci"],
)