Bug 1334534 - Distinguish between nightly and opt builds in perfherder metrics. draft
authorChris Manchester <cmanchester@mozilla.com>
Fri, 27 Jan 2017 12:24:42 -0800
changeset 467480 cbe8c9a09d5014def6e01aea0472c24915309a87
parent 466816 d92fd6b6d6bfc5b566222ae2957e55772d60151a
child 467497 fc1e5f4d665c04a98156541d2c2da2b2a429a5f2
child 467499 618b5ac52e65be2d92a814d31cf0b38b1de124d0
push id43174
push userbmo:cmanchester@mozilla.com
push dateFri, 27 Jan 2017 20:25:36 +0000
bugs1334534
milestone54.0a1
Bug 1334534 - Distinguish between nightly and opt builds in perfherder metrics. MozReview-Commit-ID: HkzO1kOzCkz
testing/mozharness/mozharness/mozilla/building/buildbase.py
--- a/testing/mozharness/mozharness/mozilla/building/buildbase.py
+++ b/testing/mozharness/mozharness/mozilla/building/buildbase.py
@@ -1861,20 +1861,24 @@ or run without that action (ie: --no-{ac
 
         with open(p, 'rb') as fh:
             resources = json.load(fh)
 
         if 'duration' not in resources:
             self.info('resource usage lacks duration; ignoring')
             return None
 
+        extra_options = self.perfherder_resource_options()
+        if self.query_is_nightly():
+            extra_options = ['nightly'] + extra_options
+
         data = {
             'name': 'build times',
             'value': resources['duration'],
-            'extraOptions': self.perfherder_resource_options(),
+            'extraOptions': extra_options,
             'subtests': [],
         }
 
         for phase in resources['phases']:
             if 'duration' not in phase:
                 continue
             data['subtests'].append({
                 'name': phase['name'],