Bug 1303214 - Change Mozharness Taskcluster artifact expiration to 28 days r=rail
authorBrian Stack <bstack@mozilla.com>
Mon, 17 Oct 2016 15:41:30 -0700
changeset 319318 7854c40a579705adb28c70eb2f5466d0e8e02a32
parent 319317 e3f252dc20b5339465ffd54e74b380abf71bc4eb
child 319319 64293caeec1e6474b6b7c63988f8207164d7d5c2
push id30869
push userphilringnalda@gmail.com
push dateWed, 26 Oct 2016 04:57:48 +0000
treeherdermozilla-central@9471b3c49b2c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrail
bugs1303214
milestone52.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 1303214 - Change Mozharness Taskcluster artifact expiration to 28 days r=rail MozReview-Commit-ID: BbWaeqXIRWT
testing/mozharness/mozharness/mozilla/taskcluster_helper.py
--- a/testing/mozharness/mozharness/mozilla/taskcluster_helper.py
+++ b/testing/mozharness/mozharness/mozilla/taskcluster_helper.py
@@ -88,17 +88,20 @@ class Taskcluster(LogMixin):
             ".txt": "text/plain",
             ".xpi": "application/x-xpinstall",
             ".zip": "application/zip",
         }
         return mime_types.get(ext, default)
 
     @property
     def expiration(self):
-        return datetime.utcnow() + timedelta(weeks=52)
+        weeks = 52
+        if self.buildbot == 'buildbot-try':
+            weeks = 3
+        return datetime.utcnow() + timedelta(weeks=weeks)
 
     def create_artifact(self, task, filename):
         mime_type = self.get_mime_type(os.path.splitext(filename)[1])
         content_length = os.path.getsize(filename)
         self.info("Uploading to S3: filename=%s mimetype=%s length=%s" % (
             filename, mime_type, content_length))
         # reclaim the task to avoid "claim-expired" errors
         self.taskcluster_queue.reclaimTask(