Skip to content

Commit

Permalink
Bug 1528900 - Actively prevent nightly tasks from depending on sccach…
Browse files Browse the repository at this point in the history
…e. r=dustin

Differential Revision: https://phabricator.services.mozilla.com/D20300
  • Loading branch information
glandium committed Feb 19, 2019
1 parent 68c5408 commit 3798e61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions taskcluster/taskgraph/util/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,11 @@ def verify_always_optimized(task, taskgraph, scratch_pad, graph_config):
return
if task.task.get('workerType') == 'always-optimized':
raise Exception('Could not optimize the task {!r}'.format(task.label))


@verifications.add('full_task_graph')
def verify_nightly_no_sccache(task, taskgraph, scratch_pad, graph_config):
if task and task.attributes.get('nightly'):
if task.task.get('payload', {}).get('env', {}).get('USE_SCCACHE'):
raise Exception(
'Nightly job {} cannot use sccache'.format(task.label))

0 comments on commit 3798e61

Please sign in to comment.