Bug 1403322 - schedule test-verification inclusively; r?ahal draft
authorDustin J. Mitchell <dustin@mozilla.com>
Wed, 11 Oct 2017 17:36:16 +0000
changeset 678629 8b74a06300a786e139d448eb5cf2127f83356e25
parent 678628 70e2728917acb8fdfac63c8e598cf37c55e57a32
child 678630 d4b8a1fa066a2a9fba97ba3331178360e087c668
push id83986
push userdmitchell@mozilla.com
push dateWed, 11 Oct 2017 17:52:21 +0000
reviewersahal
bugs1403322
milestone58.0a1
Bug 1403322 - schedule test-verification inclusively; r?ahal MozReview-Commit-ID: CsIUEq6CDln
moz.build
python/mozbuild/mozbuild/schedules.py
taskcluster/ci/test/tests.yml
--- a/moz.build
+++ b/moz.build
@@ -44,16 +44,28 @@ with Files('**/l10n.toml'):
 
 with Files('README.txt'):
     BUG_COMPONENT = ('Core', 'General')
 
 with Files('**/Makefile.in'):
     BUG_COMPONENT = ('Core', 'Build Config')
     FINAL = True
 
+with Files("**/*.js"):
+    SCHEDULES.inclusive += ['test-verification']
+
+with Files("**/*.html"):
+    SCHEDULES.inclusive += ['test-verification']
+
+with Files("**/*.xhtml"):
+    SCHEDULES.inclusive += ['test-verification']
+
+with Files("**/*.xul"):
+    SCHEDULES.inclusive += ['test-verification']
+
 FILES_PER_UNIFIED_FILE = 1
 
 CONFIGURE_SUBST_FILES += [
     'config/autoconf.mk',
     'config/emptyvars.mk',
 ]
 
 if CONFIG['ENABLE_CLANG_PLUGIN']:
--- a/python/mozbuild/mozbuild/schedules.py
+++ b/python/mozbuild/mozbuild/schedules.py
@@ -12,17 +12,18 @@ from __future__ import absolute_import, 
 # 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 flavors
+    'test-verification',
+    # test flavors (narrower than suites)
     'jsreftest',
 ]
 INCLUSIVE_COMPONENTS = sorted(INCLUSIVE_COMPONENTS)
 
 EXCLUSIVE_COMPONENTS = [
     # os families
     'android',
     'linux',
--- a/taskcluster/ci/test/tests.yml
+++ b/taskcluster/ci/test/tests.yml
@@ -1904,22 +1904,16 @@ test-verify:
                 macosx.*:
                     - remove_executables.py
                     - unittests/mac_unittest.py
                 linux.*:
                     - unittests/linux_unittest.py
                     - remove_executables.py
         extra-options:
             - --verify
-    when:
-        files-changed:
-            - '**/*.js'
-            - '**/*.html'
-            - '**/*.xhtml'
-            - '**/*.xul'
 
 web-platform-tests:
     description: "Web platform test run"
     suite: web-platform-tests
     treeherder-symbol: tc-W(wpt)
     chunks:
       by-test-platform:
         macosx64/opt: 5