Bug 1365763 - Use the same list as TC to trigger SM builds. r?nthomas draft
authorMike Hommey <mh@glandium.org>
Thu, 18 May 2017 08:25:14 +0900
changeset 5155 da444b67d72b3b44ed4cf47804514752bf7a5bb8
parent 5154 32ecfc7dc1122304f133b43d19a84e481bd59434
push id3660
push userbmo:mh+mozilla@glandium.org
push dateWed, 17 May 2017 23:26:00 +0000
reviewersnthomas
bugs1365763
Bug 1365763 - Use the same list as TC to trigger SM builds. r?nthomas
misc.py
--- a/misc.py
+++ b/misc.py
@@ -2504,17 +2504,27 @@ def generateSpiderMonkeyObjects(project,
     def isImportant(change):
         if not isHgPollerTriggered(change, bconfig['hgurl']):
             return False
 
         if not shouldBuild(change):
             return False
 
         for f in change.files:
-            if f.startswith("js/src") or f.startswith("js/public"):
+            # Same as m-c's list in taskcluster/ci/spidermonkey/kind.yml
+            if f.startswith(
+                ('build/', 'config/', 'dom/bindings/', 'intl/icu/',
+                 'js/public/', 'js/src/', 'layout/tools/reftest/reftest/',
+                 'media/webrtc/trunk/tools/gyp/', 'memory/', 'mfbt/',
+                 'modules/fdlibm/', 'modules/zlib/src/', 'mozglue/',
+                 'nsprpub/', 'testing/mozbase/')) or f in (
+                'configure.py', 'js/moz.configure', 'Makefile.in',
+                'moz.build', 'moz.configure', 'test.mozbuild',
+                'toolkit/mozapps/installer/package-name.mk',
+                'toolkit/mozapps/installer/upload-files.mk'):
                 return True
 
         return False
 
     # Set up schedulers
     extra_args = {}
     schedulers = []
     if config.get("enable_schedulers", True):