---
loader: taskgraph.loader.transform:loader
transforms:
    - fenix_taskgraph.transforms.raptor:transforms
    - fenix_taskgraph.transforms.notify:transforms
    - taskgraph.transforms.job:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - signing

only-for-build-types:
    - performance-test

only-for-abis:
    - armeabi-v7a
    - arm64-v8a

job-defaults:
    dependencies:
        geckoview-nightly: geckoview-nightly
    notify:
        by-level:
            '3':
                email:
                    content: This calls for an action of the Performance team. Use the link to view it on Treeherder.
                    link:
                        text: Treeherder Job
                        href: 'https://treeherder.mozilla.org/#/jobs?repo={product_name}&revision={head_rev}&searchStr={task_name}'
                    on-reasons: [failed]
                    subject: '[{product_name}] Raptor job "{task_name}" failed'
                    to-addresses: [perftest-alerts@mozilla.com]
            default: {}
    run-on-tasks-for: []
    treeherder:
        kind: test
        tier: 2
        platform:
            by-abi:
                arm64-v8a: android-hw-p2-8-0-android-aarch64/opt
                armeabi-v7a: android-hw-g5-7-0-arm7-api-16/opt
    worker-type:
        by-abi:
            armeabi-v7a: t-bitbar-gw-perf-g5
            arm64-v8a: t-bitbar-gw-perf-p2
    worker:
        max-run-time: 3600
        env:
            GECKO_HEAD_REPOSITORY: "https://hg.mozilla.org/mozilla-central"
            MOZ_AUTOMATION: "1"
            MOZ_HIDE_RESULTS_TABLE: "1"
            MOZ_NO_REMOTE: "1"
            MOZ_NODE_PATH: "/usr/local/bin/node"
            MOZHARNESS_CONFIG: "raptor/android_hw_config.py"
            MOZHARNESS_SCRIPT: "raptor_script.py"
            NEED_XVFB: "false"
            NO_FAIL_ON_TEST_ERRORS: "1"
            XPCOM_DEBUG_BREAK: "warn"
        artifacts:
            - name: public/logs/
              path: workspace/logs
              type: directory

            - name: public/test_info/
              path: workspace/build/blobber_upload_dir
              type: directory
    run:
        using: run-task
        checkout: false
        run-as-root: true
        command:
            - 'bash'
            - './test-linux.sh'
            - '--cfg=mozharness/configs/raptor/android_hw_config.py'
            - '--app=fenix'
            - '--binary=org.mozilla.fenix.performancetest'
            - '--activity=org.mozilla.fenix.browser.BrowserPerformanceTestActivity'
            - '--download-symbols=ondemand'

jobs:
    tp6m-1-cold:
        test-name: raptor-tp6m-1-cold
        treeherder:
            symbol: 'Rap(tp6m-1-c)'

    tp6m-2-cold:
        test-name: raptor-tp6m-2-cold
        treeherder:
            symbol: 'Rap(tp6m-2-c)'

    tp6m-3-cold:
        test-name: raptor-tp6m-3-cold
        treeherder:
            symbol: 'Rap(tp6m-3-c)'

    tp6m-4-cold:
        test-name: raptor-tp6m-4-cold
        treeherder:
            symbol: 'Rap(tp6m-4-c)'

    tp6m-5-cold:
        test-name: raptor-tp6m-5-cold
        treeherder:
            symbol: 'Rap(tp6m-5-c)'

    tp6m-6-cold:
        test-name: raptor-tp6m-6-cold
        treeherder:
            symbol: 'Rap(tp6m-6-c)'

    tp6m-7-cold:
        test-name: raptor-tp6m-7-cold
        treeherder:
            symbol: 'Rap(tp6m-7-c)'

    tp6m-8-cold:
        test-name: raptor-tp6m-8-cold
        treeherder:
            symbol: 'Rap(tp6m-8-c)'

    tp6m-9-cold:
        test-name: raptor-tp6m-9-cold
        treeherder:
            symbol: 'Rap(tp6m-9-c)'

    tp6m-10-cold:
        test-name: raptor-tp6m-10-cold
        treeherder:
            symbol: 'Rap(tp6m-10-c)'

    tp6m-11-cold:
        test-name: raptor-tp6m-11-cold
        treeherder:
            symbol: 'Rap(tp6m-11-c)'

    tp6m-12-cold:
        test-name: raptor-tp6m-12-cold
        treeherder:
            symbol: 'Rap(tp6m-12-c)'

    tp6m-13-cold:
        test-name: raptor-tp6m-13-cold
        treeherder:
            symbol: 'Rap(tp6m-13-c)'

    tp6m-14-cold:
        test-name: raptor-tp6m-14-cold
        treeherder:
            symbol: 'Rap(tp6m-14-c)'

    tp6m-15-cold:
        test-name: raptor-tp6m-15-cold
        treeherder:
            symbol: 'Rap(tp6m-15-c)'

    tp6m-16-cold:
        test-name: raptor-tp6m-16-cold
        treeherder:
            symbol: 'Rap(tp6m-16-c)'

    tp6m-17-cold:
        test-name: raptor-tp6m-17-cold
        treeherder:
            symbol: 'Rap(tp6m-17-c)'

    tp6m-18-cold:
        test-name: raptor-tp6m-18-cold
        treeherder:
            symbol: 'Rap(tp6m-18-c)'

    tp6m-19-cold:
        test-name: raptor-tp6m-19-cold
        treeherder:
            symbol: 'Rap(tp6m-19-c)'

    tp6m-20-cold:
        test-name: raptor-tp6m-20-cold
        treeherder:
            symbol: 'Rap(tp6m-20-c)'

    tp6m-21-cold:
        test-name: raptor-tp6m-21-cold
        treeherder:
            symbol: 'Rap(tp6m-21-c)'

    tp6m-22-cold:
        test-name: raptor-tp6m-22-cold
        treeherder:
            symbol: 'Rap(tp6m-22-c)'

    tp6m-23-cold:
        test-name: raptor-tp6m-23-cold
        treeherder:
            symbol: 'Rap(tp6m-23-c)'

    tp6m-24-cold:
        test-name: raptor-tp6m-24-cold
        treeherder:
            symbol: 'Rap(tp6m-24-c)'

    tp6m-25-cold:
        test-name: raptor-tp6m-25-cold
        treeherder:
            symbol: 'Rap(tp6m-25-c)'

    tp6m-26-cold:
        test-name: raptor-tp6m-26-cold
        treeherder:
            symbol: 'Rap(tp6m-26-c)'

    tp6m-27-cold:
        test-name: raptor-tp6m-27-cold
        treeherder:
            symbol: 'Rap(tp6m-27-c)'

    youtube-playback:
        test-name: raptor-youtube-playback
        treeherder:
            symbol: 'Rap(ytp)'
        args:
            by-abi:
                # Bug 1558456 - Stop tracking youtube-playback-test on motoG5 for >1080p cases
                armeabi-v7a:
                    - '--test-url-params=exclude=1,2,9,10,17,18,21,22,26,28,30,32,39,40,47,48,55,56,63,64,71,72,79,80,83,84,89,90,95,96'
                default: []
