summaryrefslogtreecommitdiffstats
path: root/taskcluster/ci/l10n/kind.yml
blob: dfd011e9a61193b30e10c6ca1464e0fc00e68fd0 (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
# 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/.

# NOTE: please write a description of this kind in taskcluster/docs/kinds.rst

implementation: taskgraph.task.transform:TransformTask

transforms:
   - taskgraph.transforms.l10n:transforms
   - taskgraph.transforms.build_attrs:transforms
   - taskgraph.transforms.job:transforms
   - taskgraph.transforms.task:transforms

job-defaults:
    index:
        product: firefox
    treeherder:
        kind: build
        tier: 2
    worker-type: aws-provisioner-v1/gecko-{level}-b-linux
    worker:
        implementation: docker-worker
        docker-image: {in-tree: desktop-build}
        max-run-time: 36000

    # don't run anywhere by default, but still available via try
    run-on-projects: []
    run:
        # NOTE: this should really be a different "using" since it's using
        # build-l10n.sh instead of build-linux.sh.  Preferably, build-linux.sh
        # and the mozharness run implementation should be modified to support
        # the functionality that l10n needs
        using: mozharness
        job-script: taskcluster/scripts/builder/build-l10n.sh
    when:
        files-changed:
            - browser/locales/all-locales
            - python/compare-locales/**
            - testing/mozharness/configs/single_locale/**
            - testing/mozharness/mozharness/mozilla/l10n/locales.py
            - testing/mozharness/scripts/desktop_l10n.py
            - toolkit/locales/**
            - toolkit/mozapps/installer/**

jobs:
    linux-l10n/opt:
        description: "Localization"
        index:
            job-name:
                gecko-v2: linux32-l10n-opt
        treeherder:
            platform: linux32/opt
            symbol: tc(L10n)
        run:
            script: mozharness/scripts/desktop_l10n.py
            actions: [clone-locales list-locales setup repack summary]
            config:
                - single_locale/tc_linux32.py
            options:
                - environment-config=single_locale/production.py
                - branch-config=single_locale/{project}.py
                - platform-config=single_locale/linux32.py
                - total-chunks=1
                - this-chunk=1
            tooltool-downloads: public
            need-xvfb: true

    linux64-l10n/opt:
        description: "Localization"
        index:
            job-name:
                gecko-v2: linux64-l10n-opt
        treeherder:
            platform: linux64/opt
            symbol: tc(L10n)
        run:
            script: mozharness/scripts/desktop_l10n.py
            actions: [clone-locales list-locales setup repack summary]
            config:
                - single_locale/tc_linux64.py
            options:
                - environment-config=single_locale/production.py
                - branch-config=single_locale/{project}.py
                - platform-config=single_locale/linux64.py
                - total-chunks=1
                - this-chunk=1
            tooltool-downloads: public
            need-xvfb: true