Bug 1311966 - symlink rather than copy artifacts; r?pmoore draft
authorRob Thijssen <rthijssen@mozilla.com>
Wed, 16 Nov 2016 13:31:48 +0000
changeset 439726 8cf081349ab537d99e89c03817385f8cb53c95ea
parent 439707 2598a93e2e1a27f363af9fdd290cf4184cc51d48
child 537233 05b727536965cbf15e7eeca7bf59a7498124be7e
push id36073
push userrthijssen@mozilla.com
push dateWed, 16 Nov 2016 14:50:51 +0000
reviewerspmoore
bugs1311966
milestone53.0a1
Bug 1311966 - symlink rather than copy artifacts; r?pmoore MozReview-Commit-ID: HDnJzqjEAeo
taskcluster/taskgraph/transforms/tests/make_task_description.py
--- a/taskcluster/taskgraph/transforms/tests/make_task_description.py
+++ b/taskcluster/taskgraph/transforms/tests/make_task_description.py
@@ -324,23 +324,21 @@ def generic_worker_setup(config, test, t
         ['generic-worker:os-group:{}'.format(group) for group in test['os-groups']])
 
     worker = taskdesc['worker'] = {}
     worker['os-groups'] = test['os-groups']
     worker['implementation'] = test['worker-implementation']
     worker['max-run-time'] = test['max-run-time']
     worker['artifacts'] = artifacts
 
-    env = worker['env'] = {
-        # Bug 1306989
+    worker['env'] = {
         'APPDATA': '%cd%\\AppData\\Roaming',
         'LOCALAPPDATA': '%cd%\\AppData\\Local',
         'TEMP': '%cd%\\AppData\\Local\\Temp',
         'TMP': '%cd%\\AppData\\Local\\Temp',
-        'USERPROFILE': '%cd%',
     }
 
     # assemble the command line
     mh_command = [
         'c:\\mozilla-build\\python\\python.exe',
         '-u',
         'mozharness\\scripts\\' + normpath(mozharness['script'])
     ]
@@ -365,22 +363,20 @@ def generic_worker_setup(config, test, t
             mh_command.append('--this-chunk={}'.format(test['this-chunk']))
         elif mozharness['chunking-args'] == 'test-suite-suffix':
             suffix = mozharness['chunk-suffix'].replace('<CHUNK>', str(test['this-chunk']))
             for i, c in enumerate(mh_command):
                 if isinstance(c, basestring) and c.startswith('--test-suite'):
                     mh_command[i] += suffix
 
     worker['command'] = [
-        'mkdir {} {}'.format(env['APPDATA'], env['TMP']),
+        'mklink /d public\\test_info build\\blobber_upload_dir',
         {'task-reference': 'c:\\mozilla-build\\wget\\wget.exe {}'.format(mozharness_url)},
         'c:\\mozilla-build\\info-zip\\unzip.exe mozharness.zip',
-        {'task-reference': ' '.join(mh_command)},
-        'xcopy build\\blobber_upload_dir public\\test_info /e /i',
-        'copy /y logs\\*.* public\\logs\\'
+        {'task-reference': ' '.join(mh_command)}
     ]
 
 
 @worker_setup_function("macosx-engine")
 def macosx_engine_setup(config, test, taskdesc):
     mozharness = test['mozharness']
 
     installer_url = ARTIFACT_URL.format('<build>', mozharness['build-artifact-name'])