Bug 1430491: stop depending, incorrectly, on docker images; r?glandium draft
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 15 Jan 2018 17:14:42 +0000
changeset 720443 58844df317129ac1d3f79c027386c6e66bffab6b
parent 719102 c4e4613dbe32bb218957a140e5d0bd4fe7d1e98c
child 746075 fcf893ef5722ee320c8c967faa310c30fdbc790f
push id95555
push userdmitchell@mozilla.com
push dateMon, 15 Jan 2018 17:17:49 +0000
reviewersglandium
bugs1430491
milestone59.0a1
Bug 1430491: stop depending, incorrectly, on docker images; r?glandium MozReview-Commit-ID: DksKKZQcXo0
taskcluster/taskgraph/transforms/job/__init__.py
--- a/taskcluster/taskgraph/transforms/job/__init__.py
+++ b/taskcluster/taskgraph/transforms/job/__init__.py
@@ -112,21 +112,18 @@ def rewrite_when_to_optimization(config,
     for job in jobs:
         when = job.pop('when', {})
         if not when:
             yield job
             continue
 
         files_changed = when.get('files-changed')
 
-        # implicitly add config directories affecting task
+        # implicitly add task config directory.
         files_changed.append('{}/**'.format(config.path))
-        if 'in-tree' in job.get('worker', {}).get('docker-image', {}):
-            files_changed.append('taskcluster/docker/{}/**'.format(
-                job['worker']['docker-image']['in-tree']))
 
         # "only when files changed" implies "skip if files have not changed"
         job['optimization'] = {'skip-unless-changed': files_changed}
 
         assert 'when' not in job
         yield job