summaryrefslogtreecommitdiffstats
path: root/taskcluster/ci/attribution-l10n/kind.yml
blob: 34cddec74d6232900e4919add81104f77d7226c6 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: gecko_taskgraph.loader.transform:loader

transforms:
    - gecko_taskgraph.transforms.split_by_locale:transforms
    - gecko_taskgraph.transforms.attribution:transforms
    - gecko_taskgraph.transforms.job:transforms
    - gecko_taskgraph.transforms.task:transforms

kind-dependencies:
    # Windows
    - repackage-signing-l10n

job-defaults:
    description: Attribute release builds
    shipping-phase: promote
    # never run as part of CI
    run-on-projects: []
    worker-type: b-linux-gcp
    locales-file: browser/locales/l10n-changesets.json
    properties-with-locale:
        - label
        - dependencies.repackage-signing-l10n
        - treeherder.symbol
        - fetches.repackage-signing-l10n
    attributes:
        build_type: opt
        release_artifacts:
            - public/build/target.installer.exe
    treeherder:
        symbol: Attr-L10n({locale})
        kind: other
        tier: 1
    fetches:
        repackage-signing-l10n:
            - "{locale}/target.installer.exe"
    worker:
        artifacts:
            - name: public/build
              type: directory
              path: /builds/worker/artifacts
        docker-image:
            in-tree: "partner-repack"
        chain-of-trust: true
        # Each task only processes one installer...this should be quick.
        max-run-time: 600
    run:
        using: run-task
        cwd: "{checkout}"
        command:
            - ./mach
            - python
            - python/mozrelease/mozrelease/attribute_builds.py
            - --attribution
            - dlsource={attribution_code[json][dlsource]}
            - --output
            - /builds/worker/artifacts
            # All jobs require attribution of target.installer.exe. Some may require
            # attribution of other files, which they can append themselves.
            - --input
            - /builds/worker/fetches/target.installer.exe
        command-context:
            from-file: browser/installer/attribution.yml

jobs:
    win32-devedition/opt:
        label: attribution-win32-{locale}-devedition/opt
        shipping-product: devedition
        attributes:
            build_platform: win32-devedition
        treeherder:
            platform: win32-devedition/opt
        dependencies:
            repackage-signing-l10n: repackage-signing-l10n-{locale}-win32-devedition/opt

    win32-shippable/opt:
        label: attribution-win32-{locale}-shippable/opt
        shipping-product: firefox
        locale-file-platform: win32
        attributes:
            build_platform: win32-shippable
        treeherder:
            platform: win32-shippable/opt
        dependencies:
            repackage-signing-l10n: repackage-signing-l10n-{locale}-win32-shippable/opt

    win64-devedition/opt:
        label: attribution-win64-{locale}-devedition/opt
        shipping-product: devedition
        attributes:
            build_platform: win64-devedition
        treeherder:
            platform: win64-devedition/opt
        dependencies:
            repackage-signing-l10n: repackage-signing-l10n-{locale}-win64-devedition/opt

    win64-shippable/opt:
        label: attribution-win64-{locale}-shippable/opt
        shipping-product: firefox
        locale-file-platform: win64
        attributes:
            build_platform: win64-shippable
        treeherder:
            platform: win64-shippable/opt
        dependencies:
            repackage-signing-l10n: repackage-signing-l10n-{locale}-win64-shippable/opt

    win64-aarch64-shippable/opt:
        label: attribution-win64-aarch64-{locale}-shippable/opt
        shipping-product: firefox
        locale-file-platform: win64-aarch64
        attributes:
            build_platform: win64-aarch64-shippable
        treeherder:
            platform: win64-aarch64-shippable/opt
        dependencies:
            repackage-signing-l10n: repackage-signing-l10n-{locale}-win64-aarch64-shippable/opt

    win64-aarch64-devedition/opt:
        label: attribution-win64-aarch64-{locale}-devedition/opt
        shipping-product: devedition
        attributes:
            build_platform: win64-aarch64-devedition
        treeherder:
            platform: win64-aarch64-devedition/opt
        dependencies:
            repackage-signing-l10n: repackage-signing-l10n-{locale}-win64-aarch64-devedition/opt