Bug 1639349 - [ci] Set up a SCHEDULES rule to exclude non-webrender tests on webrender-only pushes, r=gbrown

Depends on D76433

Differential Revision: https://phabricator.services.mozilla.com/D76434
This commit is contained in:
Andrew Halberstadt 2020-05-22 14:03:46 +00:00
parent e6fc2d3678
commit 0591e31c1f
3 changed files with 19 additions and 7 deletions

View File

@ -47,3 +47,9 @@ SPHINX_TREES['/gfx'] = 'docs'
with Files('docs/**'):
SCHEDULES.exclusive = ['docs']
with Files('wr/**'):
SCHEDULES.exclusive = ['webrender']
with Files('webrender_bindings/**'):
SCHEDULES.exclusive = ['webrender']

View File

@ -35,14 +35,15 @@ INCLUSIVE_COMPONENTS = sorted(INCLUSIVE_COMPONENTS)
# Exclusive components are those which are scheduled by default, but for which
# some files *only* affect that component. For example, most files affect all
# platforms, but platform-specific files exclusively affect a single platform.
# These components are assigned to `SCHEDULES.exclusive` with `=`.
# These components are assigned to `SCHEDULES.exclusive` with `=`. Each comment
# denotes a new mutually exclusive set of groups that tasks can belong to.
EXCLUSIVE_COMPONENTS = [
# os families
'android',
'linux',
'macosx',
'windows',
# test suite categories
# broad test harness categories
'awsy',
'condprofile',
'cppunittest',
@ -58,15 +59,17 @@ EXCLUSIVE_COMPONENTS = [
'xpcshell',
'xpcshell-coverage',
'web-platform-tests',
'web-platform-tests-crashtest',
'web-platform-tests-reftest',
'web-platform-tests-wdspec',
# specific test suites via schedules-component
# specific test suites
'crashtest',
'mochitest-a11y',
'mochitest-browser-chrome',
'mochitest-chrome',
'mochitest-plain',
'crashtest',
'web-platform-tests-crashtest',
'web-platform-tests-reftest',
'web-platform-tests-wdspec',
# webrender enabled
'webrender',
]
EXCLUSIVE_COMPONENTS = sorted(EXCLUSIVE_COMPONENTS)
ALL_COMPONENTS = INCLUSIVE_COMPONENTS + EXCLUSIVE_COMPONENTS

View File

@ -1592,6 +1592,9 @@ def set_schedules_components(config, tasks):
schedules.add(category)
schedules.add(platform_family(task['build-platform']))
if task['webrender']:
schedules.add('webrender')
task['schedules-component'] = sorted(schedules)
yield task