Bug 1365763 - Use the same list as TC to trigger SM builds. r?nthomas
--- 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):