python/mozbuild/mozbuild/schedules.py
author Geoff Brown <gbrown@mozilla.com>
Tue, 24 Oct 2017 15:17:27 -0600
changeset 441317 37db725b23082b69fdf4e3b08242e592a379b60e
parent 439127 e3a310b6b896d401b66becff274c9f3c6898b096
child 445816 c1848b8de242de268de93281ce963599413989c6
permissions -rw-r--r--
Bug 1410911 - Only run test-verify when certain file types are changed; r=dustin When first introduced, test-verify was only run when .js/.html/.xul/.xhtml files were changed. Recently, it seems to run on every push. This is a speculative fix: There may be confusion between "test-verify" and "test-verification" so I am using "test-verify" consistently.

# 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/.

"""
Constants for SCHEDULES configuration in moz.build files and for
skip-unless-schedules optimizations in task-graph generation.
"""

from __future__ import absolute_import, unicode_literals, print_function

# TODO: ideally these lists could be specified in moz.build itself

INCLUSIVE_COMPONENTS = [
    'py-lint',
    'js-lint',
    'yaml-lint',
    # test suites that only run when certain files have changed
    'jittest',
    'test-verify',
    # test flavors (narrower than suites)
    'jsreftest',
]
INCLUSIVE_COMPONENTS = sorted(INCLUSIVE_COMPONENTS)

EXCLUSIVE_COMPONENTS = [
    # os families
    'android',
    'linux',
    'macosx',
    'windows',
    # test suites
    'awsy',
    'cppunittest',
    'firefox-ui',
    'geckoview',
    'gtest',
    'marionette',
    'mochitest',
    'reftest',
    'robocop',
    'talos',
    'telemetry-tests-client',
    'xpcshell',
    'xpcshell-coverage',
    'web-platform-tests',
    'web-platform-tests-reftests',
    'web-platform-tests-wdspec',
]
EXCLUSIVE_COMPONENTS = sorted(EXCLUSIVE_COMPONENTS)
ALL_COMPONENTS = INCLUSIVE_COMPONENTS + EXCLUSIVE_COMPONENTS