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 322746 52cfda4c6bae5c28ab09709655435da6ecda9e2a
parent 322745 c59c022943f6a7e79f6002e11fc9f56cb836f5dd
child 322747 4ea7408b3eef059aa248f4b00328f8fdb4475112
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 MozReview-Commit-ID: Lnrjb0ro8MX
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,