summaryrefslogtreecommitdiffstats
path: root/chromium/infra/config/subprojects/flakiness/flakiness.star
blob: ee158bc947d3ffe62b3430706e1549012fee9582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

load("//lib/builders.star", "os")
load("//lib/ci.star", "ci")
load("//lib/consoles.star", "consoles")

ci.defaults.set(
    bucket = "flakiness",
    build_numbers = True,
    execution_timeout = 3 * time.hour,
    os = os.LINUX_DEFAULT,
    pool = "luci.chromium.ci",
    # TODO(jeffyoon): replace with smaller scoped service account, and update
    # below for bucket ACL
    service_account = "chromium-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
)

luci.bucket(
    name = "flakiness",
    acls = [
        acl.entry(
            roles = acl.BUILDBUCKET_READER,
            groups = "all",
        ),
        acl.entry(
            roles = acl.BUILDBUCKET_TRIGGERER,
            users = "chromium-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
        ),
        acl.entry(
            roles = acl.BUILDBUCKET_OWNER,
            groups = "google/chrome-flakiness@google.com",
        ),
    ],
)

consoles.defaults.set(
    repo = "https://chromium.googlesource.com/chromium/src",
)

consoles.console_view(
    name = "chromium.flakiness",
)

ci.builder(
    name = "flakiness-data-packager",
    console_view_entry = consoles.console_view_entry(
        console_view = "chromium.flakiness",
        category = "flakiness",
        short_name = "model",
    ),
    executable = "recipe:flakiness/generate_builder_test_data",
    schedule = "0 */1 * * *",
)