tor-browser

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

kind.yml (6301B)


      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.test_apk:transforms
      9    # While not a build, the build optimization works well for these tasks.
     10    - gecko_taskgraph.transforms.build_schedules:transforms
     11    - gecko_taskgraph.transforms.job:transforms
     12    - gecko_taskgraph.transforms.task:transforms
     13 
     14 kind-dependencies:
     15    - toolchain
     16    - build-fat-aar
     17 
     18 task-defaults:
     19    run-on-repo-type: [hg]
     20    attributes:
     21        build_platform: android
     22        retrigger: true
     23    dependencies:
     24        build-fat-aar: build-fat-aar-android-geckoview-fat-aar/opt
     25    fetches:
     26        toolchain:
     27            - android-sdk-linux
     28            - linux64-embedded-uniffi-bindgen
     29            - linux64-nimbus-fml
     30            - android-gradle-dependencies
     31            - linux64-jdk
     32        build-fat-aar:
     33            - target.maven.zip
     34    run:
     35        using: gradlew
     36    treeherder:
     37        kind: test
     38    worker-type: b-linux-medium
     39    worker:
     40        docker-image: {in-tree: android-components}
     41        max-run-time: 7200
     42 
     43 tasks:
     44    focus-debug:
     45        description: Focus unit tests
     46        attributes:
     47            build-type: focus-debug
     48            shipping-product: focus
     49        run:
     50            pre-gradlew:
     51                - ["cd", "mobile/android/focus-android"]
     52            gradlew: ['clean', 'test']
     53            dummy-secrets:
     54                - content: "faketoken"
     55                  path: .adjust_token
     56        treeherder:
     57            platform: 'focus-android-all/opt'
     58            symbol: focus-debug(T)
     59            tier: 1
     60        worker:
     61            artifacts:
     62                - name: public/reports/index.html
     63                  path: /builds/worker/workspace/obj-build/gradle/build/mobile/android/focus-android/app/reports/tests/testFocusDebugUnitTest/index.html
     64                  type: file
     65                - name: public/reports/test
     66                  path: /builds/worker/workspace/obj-build/gradle/build/mobile/android/focus-android/app/reports/tests
     67                  type: directory
     68 
     69    fenix-debug:
     70        description: Fenix unit tests
     71        attributes:
     72            build-type: fenix-debug
     73            shipping-product: fenix
     74        run:
     75            pre-gradlew:
     76                - ["cd", "mobile/android/fenix"]
     77                - ['java', '-version']
     78            gradlew: ['clean', 'testDebugUnitTest']
     79        treeherder:
     80            platform: 'fenix-android-all/opt'
     81            symbol: fenix-debug(T)
     82            tier: 1
     83        worker:
     84            artifacts:
     85                - name: public/reports/index.html
     86                  path: /builds/worker/workspace/obj-build/gradle/build/mobile/android/fenix/app/reports/tests/testDebugUnitTest/index.html
     87                  type: file
     88                - name: public/reports/test
     89                  path: /builds/worker/workspace/obj-build/gradle/build/mobile/android/fenix/app/reports/tests
     90                  type: directory
     91        routes:
     92            by-level:
     93                '3':
     94                    - notify.slack-channel.C0134KJ4JHL.on-failed
     95                'default': []
     96        scopes:
     97            by-level:
     98                '3':
     99                    - queue:route:notify.slack-channel.C0134KJ4JHL.on-failed
    100                    - notify:slack-channel:C0134KJ4JHL
    101                'default': []
    102        extra:
    103            notify:
    104                by-level:
    105                    '3':
    106                        slackBlocks: |
    107                            [
    108                              {
    109                                "type": "header",
    110                                "text": {
    111                                  "type": "plain_text",
    112                                  "text": "firefox-android :firefox: ${task.metadata.name} :x:\n "
    113                                }
    114                              },
    115                              {
    116                                "type": "divider"
    117                              },
    118                              {
    119                                 "type": "section",
    120                                 "text": {
    121                                     "type": "mrkdwn",
    122                                     "text": "*Task*: <https://firefox-ci-tc.services.mozilla.com/tasks/${status.taskId}|Taskcluster>"
    123                                }
    124                              },
    125                              {
    126                                "type": "section",
    127                                "text": {
    128                                  "type": "mrkdwn",
    129                                  "text": "*Owner*: ${task.metadata.owner}"
    130                                }
    131                              },
    132                              {
    133                                "type": "section",
    134                                "text": {
    135                                  "type": "mrkdwn",
    136                                  "text": "*Source*: <${task.payload.env.GECKO_HEAD_REPOSITORY}/rev/${task.payload.env.GECKO_HEAD_REV}|Commit> :hg:"
    137                                }
    138                              },
    139                              {
    140                                "type": "section",
    141                                "text": {
    142                                  "type": "mrkdwn",
    143                                  "text": "*Test Summary*: <https://firefoxci.taskcluster-artifacts.net/${status.taskId}/0/public/reports/index.html|Results> :debug:"
    144                                }
    145                              },
    146                              {
    147                                "type": "divider"
    148                              },
    149                              {
    150                                "type": "context",
    151                                "elements": [
    152                                    {
    153                                        "type": "mrkdwn",
    154                                        "text": ":testops-notify: created by <https://mozilla-hub.atlassian.net/wiki/spaces/MTE/overview|Mobile Test Engineering>"
    155                                    }
    156                                ]
    157                              }
    158                            ]
    159                    'default': {}