taskcluster/ci/source-test/python-tests.yml
author Andrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 02 Feb 2017 16:16:06 -0500
changeset 489235 65b4987c510a3d3d4739d6da75c31d66494f0b0f
parent 486637 taskcluster/ci/source-check/python-tests.yml@1ea8f04d9266aac38ce15de8e29d76a4c5de0793
child 490034 b3d3558a32121bcfee0dc2fc2a5e5445a8bba6f6
child 491065 3c0a7527608aa6398f8177b08088da39592078d9
permissions -rw-r--r--
Bug 1336559 - Rename source-check kind to source-test, r?dustin The name 'source-check' is a bit of a misnomer, because it already includes a bunch of tasks that are proper unittests, not lints. Some of these unittests will soon depend on a build task, which makes 'source-check' feel even more wrong. They still have a lot in common with the lint tasks though, so it's probably not worth splitting this into two separate kinds. Instead, let's just rename this kind to 'source-test', which means, any task that tests stuff and is run from the source directory (instead of a tests.zip). I think both lints and python-tests fall squarely under this definition. MozReview-Commit-ID: K0gZ5rVLyeD

taskgraph-tests/opt:
    description: taskcluster/taskgraph unit tests
    treeherder:
        symbol: py(tg)
        kind: test
        tier: 2
        platform: linux64/opt
    worker-type: aws-provisioner-v1/b2gtest
    worker:
        implementation: docker-worker
        docker-image: {in-tree: "lint"}
        max-run-time: 1800
    run:
        using: mach
        mach: taskgraph python-tests
    run-on-projects:
        - integration
        - release
    when:
        files-changed:
            - 'taskcluster/**/*.py'
            - 'config/mozunit.py'
            - 'python/mach/**/*.py'

mozbase/opt:
    description: testing/mozbase unit tests
    platforms:
        - linux64/opt
    treeherder:
        symbol: py(mb)
        kind: test
        tier: 2
    worker-type:
        by-platform:
            linux64.*: aws-provisioner-v1/b2gtest
    worker:
        by-platform:
            linux64.*:
                implementation: docker-worker
                docker-image: {in-tree: "lint"}
                max-run-time: 3600
    run:
        using: mach
        mach: python-test --subsuite mozbase
    run-on-projects:
        - integration
        - release
    when:
        files-changed:
            - 'testing/mozbase/**'
            - 'config/mozunit.py'
            - 'python/mach_commands.py'

mozharness/opt:
    description: mozharness integration tests
    treeherder:
        symbol: py(MH)
        kind: test
        tier: 2
        platform: lint/opt
    worker-type: aws-provisioner-v1/b2gtest
    worker:
        implementation: docker-worker
        docker-image: {in-tree: "lint"}
        max-run-time: 1800
    run:
        using: run-task
        cache-dotcache: true
        command: >
            cd /home/worker/checkouts/gecko/testing/mozharness &&
            /usr/bin/pip2 install tox &&
            /home/worker/.local/bin/tox -e py27-hg3.7
    run-on-projects:
        - integration
        - release
    when:
        files-changed:
            - 'testing/mozharness/**'

mozlint/opt:
    description: python/mozlint unit tests
    platforms:
        - linux64/opt
    treeherder:
        symbol: py(ml)
        kind: test
        tier: 2
    worker-type:
        by-platform:
            linux64.*: aws-provisioner-v1/b2gtest
    worker:
        by-platform:
            linux64.*:
                implementation: docker-worker
                docker-image: {in-tree: "lint"}
                max-run-time: 3600
    run:
        using: mach
        mach: python-test --subsuite mozlint
    run-on-projects:
        - integration
        - release
    when:
        files-changed:
            - 'python/mozlint/**'
            - 'python/mach_commands.py'