tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

kind.yml (13072B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 ---
      5 loader: taskgraph.loader.transform:loader
      6 
      7 transforms:
      8    - gecko_taskgraph.transforms.merge_automation:transforms
      9    - gecko_taskgraph.transforms.task:transforms
     10 
     11 
     12 task-defaults:
     13    run-on-repo-type: [hg]
     14 
     15 tasks:
     16    merge-automation:
     17        name: merge-automation
     18        label: merge-automation
     19        treeherder:
     20            symbol: Rel(merge-automation)
     21            tier: 1
     22            kind: build
     23            platform: firefox-release/opt
     24        description: Merge repositories for release management.
     25        worker-type: lando
     26        worker:
     27            implementation: scriptworker-lando
     28            matrix-rooms:
     29                by-level:
     30                    '3':
     31                        - "!tBWwNyfeKqGvkNpdDL:mozilla.org"
     32                    default:
     33                        - "!wGgsWXnVncJLSBYmuf:mozilla.org"
     34            # lando-repo is the _destination_ repository; not the one
     35            # the task runs on. For this reason it is keyed on behavior
     36            # instead of project.
     37            lando-repo:
     38                by-project:
     39                    try:
     40                        by-behavior:
     41                            main-to-beta: staging-firefox-beta
     42                            early-to-late-beta: staging-firefox-beta
     43                            beta-to-release: staging-firefox-release
     44                            release-to-esr: staging-firefox-esr140
     45                            bump-main: staging-firefox-main
     46                            bump-esr140: staging-firefox-esr140
     47                    default:
     48                        by-behavior:
     49                            main-to-beta: firefox-beta
     50                            early-to-late-beta: firefox-beta
     51                            beta-to-release: firefox-release
     52                            release-to-esr: firefox-esr140
     53                            bump-main: firefox-main
     54                            bump-esr140: firefox-esr140
     55            dontbuild: false
     56            actions:
     57                by-behavior:
     58                    # this list of behaviours should be kept in sync with
     59                    # the enum in the merge_automation action.
     60                    bump-main:
     61                        - main-bump:
     62                              fetch-version-from: "browser/config/version.txt"
     63                              version-files:
     64                                  - filename: "config/milestone.txt"
     65                                    version-bump: "major"
     66                                    new-suffix: 'a1'
     67                                  - filename: "browser/config/version.txt"
     68                                    version-bump: "major"
     69                                    new-suffix: 'a1'
     70                                  - filename: "browser/config/version_display.txt"
     71                                    version-bump: "major"
     72                                    new-suffix: 'a1'
     73                                  - filename: "mobile/android/version.txt"
     74                                    version-bump: "major"
     75                                    new-suffix: 'a1'
     76                              replacements:
     77                                  - - "services/sync/modules/constants.sys.mjs"
     78                                    - 'WEAVE_VERSION = "1.{current_weave_version}.0"'
     79                                    - 'WEAVE_VERSION = "1.{next_weave_version}.0"'
     80                              regex-replacements:
     81                                  - - "browser/extensions/webcompat/manifest.json"
     82                                    - '"version": "[0-9]+.[0-9]+.0"'
     83                                    - '"version": "{next_major_version}.0.0"'
     84                                  - - "browser/extensions/newtab/manifest.json"
     85                                    - '"version": "[0-9]+.[0-9]+.0"'
     86                                    - '"version": "{next_major_version}.0.0"'
     87                              end-tag: 'FIREFOX_NIGHTLY_{major_version}_END'
     88                              to-branch: 'main'
     89                    bump-esr140:
     90                        - esr-bump:
     91                              fetch-version-from: "browser/config/version.txt"
     92                              version-files:
     93                                  - filename: "config/milestone.txt"
     94                                    version-bump: "minor"
     95                                  - filename: "browser/config/version.txt"
     96                                    version-bump: "minor"
     97                                  - filename: "browser/config/version_display.txt"
     98                                    version-bump: "minor"
     99                                    new-suffix: "esr"
    100                              to-branch: 'esr140'
    101                    early-to-late-beta:
    102                        - early-to-late-beta:
    103                              fetch-version-from: "browser/config/version.txt"
    104                              replacements:
    105                                  - - build/defines.sh
    106                                    - EARLY_BETA_OR_EARLIER=1
    107                                    - EARLY_BETA_OR_EARLIER=
    108                              to-branch: 'beta'
    109                    main-to-beta:
    110                        - uplift:
    111                              fetch-version-from: "browser/config/version.txt"
    112                              version-files:
    113                                  - filename: "config/milestone.txt"
    114                                    new-suffix: ''
    115                                  - filename: "browser/config/version.txt"
    116                                    new-suffix: ''
    117                                  - filename: "browser/config/version_display.txt"
    118                                    new-suffix: 'b1'
    119                                  - filename: "mobile/android/version.txt"
    120                                    new-suffix: 'b1'
    121                              replacements:
    122                                  - - browser/config/mozconfigs/linux64/l10n-mozconfig
    123                                    - ac_add_options --with-branding=browser/branding/nightly
    124                                    - ac_add_options --enable-official-branding
    125                                  - - browser/config/mozconfigs/win32/l10n-mozconfig
    126                                    - ac_add_options --with-branding=browser/branding/nightly
    127                                    - ac_add_options --enable-official-branding
    128                                  - - browser/config/mozconfigs/win64/l10n-mozconfig
    129                                    - ac_add_options --with-branding=browser/branding/nightly
    130                                    - ac_add_options --enable-official-branding
    131                                  - - browser/config/mozconfigs/win64-aarch64/l10n-mozconfig
    132                                    - ac_add_options --with-branding=browser/branding/nightly
    133                                    - ac_add_options --enable-official-branding
    134                                  - - browser/config/mozconfigs/macosx64/l10n-mozconfig
    135                                    - ac_add_options --with-branding=browser/branding/nightly
    136                                    - ac_add_options --enable-official-branding
    137                                  - - .arcconfig
    138                                    - FIREFOXAUTOLAND
    139                                    - FIREFOXBETA
    140                              base-tag: 'FIREFOX_BETA_{major_version}_BASE'
    141                              end-tag: 'FIREFOX_BETA_{major_version}_END'
    142                              from-branch: 'main'
    143                              to-branch: 'beta'
    144                              l10n-bump-info:
    145                                  - name: Firefox l10n changesets
    146                                    path: browser/locales/l10n-changesets.json
    147                                    l10n-repo-url: https://github.com/mozilla-l10n/firefox-l10n
    148                                    l10n-repo-target-branch: main
    149                                    ignore-config:
    150                                        ja:
    151                                            - macosx64
    152                                            - macosx64-devedition
    153                                        ja-JP-mac:
    154                                            - linux64
    155                                            - linux64-aarch64
    156                                            - linux64-devedition
    157                                            - linux64-aarch64-devedition
    158                                            - win32
    159                                            - win32-devedition
    160                                            - win64
    161                                            - win64-devedition
    162                                            - win64-aarch64
    163                                            - win64-aarch64-devedition
    164                                    platform-configs: [{
    165                                        "platforms": [
    166                                            "linux64",
    167                                            "linux64-aarch64",
    168                                            "linux64-devedition",
    169                                            "linux64-aarch64-devedition",
    170                                            "macosx64",
    171                                            "macosx64-devedition",
    172                                            "win32",
    173                                            "win32-devedition",
    174                                            "win64",
    175                                            "win64-devedition",
    176                                            "win64-aarch64",
    177                                            "win64-aarch64-devedition",
    178                                        ],
    179                                        "path": "browser/locales/shipped-locales",
    180                                    }]
    181                                  - name: mobile l10n changesets
    182                                    path: mobile/locales/l10n-changesets.json
    183                                    l10n-repo-url: https://github.com/mozilla-l10n/firefox-l10n
    184                                    l10n-repo-target-branch: main
    185                                    platform-configs: [
    186                                        {
    187                                            "platforms":
    188                                                [
    189                                                    "android",
    190                                                    "android-arm",
    191                                                    "android-multilocale",
    192                                                ],
    193                                            "path": "mobile/android/locales/all-locales",
    194                                        },
    195                                    ]
    196                    beta-to-release:
    197                        - uplift:
    198                              fetch-version-from: "browser/config/version.txt"
    199                              version-files:
    200                                  - filename: "browser/config/version_display.txt"
    201                                    new-suffix: ''
    202                                  - filename: "mobile/android/version.txt"
    203                                    new-suffix: ''
    204                              replacements:
    205                                  - - .arcconfig
    206                                    - FIREFOXBETA
    207                                    - FIREFOXRELEASE
    208                              base-tag: 'FIREFOX_RELEASE_{major_version}_BASE'
    209                              end-tag: 'FIREFOX_RELEASE_{major_version}_END'
    210                              from-branch: 'beta'
    211                              to-branch: 'release'
    212                    release-to-esr:
    213                        - uplift:
    214                              fetch-version-from: "browser/config/version.txt"
    215                              version-files:
    216                                  - filename: "browser/config/version_display.txt"
    217                                    new-suffix: 'esr'
    218                              replacements:
    219                                  - - .arcconfig
    220                                    - FIREFOXRELEASE
    221                                    - FIREFOXESRONEFOURZERO
    222                              end-tag: "FIREFOX_ESR_{major_version}_BASE"
    223                              to-branch: 'esr140'
    224        run-on-projects: []
    225        expiration-policy: long
    226        extra:
    227            notify:
    228                matrixBody:
    229                    $let:
    230                        dry_run:
    231                            $if: "'dry_run' in task.payload && task.payload.dry_run"
    232                            then: " (dry run)"
    233                            else: ""
    234                    in: "merge-automation task ${task.metadata.name}${dry_run} is now ${status.state}: https://firefox-ci-tc.services.mozilla.com/tasks/${taskId}"