Bug 1252725 - artifacts tasks should be reclaimed to avoid timeouts r=jlund a=testing DONTBUILD
authorRail Aliiev <rail@mozilla.com>
Wed, 02 Mar 2016 19:50:30 -0500
changeset 322901 77a8ffe34d9485e4d9a2aa363dcf01ea1a73c819
parent 322900 b4f60d9123df8d93f001893923fc6191b0e09b37
child 322902 4ba91fdbffe1261814d4ca9569612370bb9460cd
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlund, testing
bugs1252725
milestone47.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 1252725 - artifacts tasks should be reclaimed to avoid timeouts r=jlund a=testing DONTBUILD
testing/mozharness/mozharness/mozilla/taskcluster_helper.py
--- a/testing/mozharness/mozharness/mozilla/taskcluster_helper.py
+++ b/testing/mozharness/mozharness/mozilla/taskcluster_helper.py
@@ -111,16 +111,19 @@ class Taskcluster(LogMixin):
             })
         self.put_file(filename, artifact['putUrl'], mime_type)
         return self.get_taskcluster_url(filename)
 
     def create_reference_artifact(self, task, filename, url):
         mime_type = self.get_mime_type(os.path.splitext(filename)[1])
         self.info("Create reference artifact: filename=%s mimetype=%s url=%s" %
                   (filename, mime_type, url))
+        # reclaim the task to avoid "claim-expired" errors
+        self.taskcluster_queue.reclaimTask(
+            task['status']['taskId'], task['status']['runs'][-1]['runId'])
         self.taskcluster_queue.createArtifact(
             task['status']['taskId'],
             task['status']['runs'][-1]['runId'],
             'public/build/%s' % os.path.basename(filename),
             {
                 "storageType": "reference",
                 "expires": self.expiration,
                 "contentType": mime_type,