Bug 1334534 - Distinguish between nightly and opt builds in perfherder metrics.
MozReview-Commit-ID: HkzO1kOzCkz
--- 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'],