Bug 1349667 - do not used files-changed to conditionally exclude tasks when run from a cron job. r=dustin

MozReview-Commit-ID: 9SOjTxPprMV
This commit is contained in:
Joel Maher 2017-03-24 14:02:08 -04:00
parent cff2217b9d
commit 4b7908e0dd

View File

@ -228,6 +228,10 @@ def opt_seta(task, params):
@optimization('files-changed')
def opt_files_changed(task, params, file_patterns):
# pushlog_id == -1 - this is the case when run from a cron.yml job
if params.get('pushlog_id') == -1:
return True, None
changed = files_changed.check(params, file_patterns)
if not changed:
logger.debug('no files found matching a pattern in `when.files-changed` for ' +