Bug 1430491: stop depending, incorrectly, on docker images; r=glandium
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 15 Jan 2018 17:14:42 +0000
changeset 451163 cc223a707701dc87cd711bc7deb31562e052d7b1
parent 451162 8962ed624e0c5e775ae46990563de641f6c6a861
child 451164 10400d85b71114dbee7c73b7fd02f9b3dae0495e
push id8543
push userryanvm@gmail.com
push dateTue, 16 Jan 2018 14:33:22 +0000
treeherdermozilla-beta@a6525ed16a32 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1430491
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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