Bug 1370242 - Prevent performance data from being uploaded when collecting code coverage. r=jmaher
authorGreg Mierzwinski <gmierz2@outlook.com>
Wed, 07 Jun 2017 10:35:04 -0400
changeset 410956 4aaf7ad4fef8d318688e9a4c3ceb74bc75b7153d
parent 410955 ab4f6b6cd8dd8897cd7bf7be4a05da4bca1ecc48
child 410957 0d5ae200e069f348555b175c339ea0f1443eec7c
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1370242
milestone55.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 1370242 - Prevent performance data from being uploaded when collecting code coverage. r=jmaher This patch is to prevent performance data from being collected when code coverage is running. It uses the environment variables that are set when code coverage is being collected to detect when it shouldn't gather the data. MozReview-Commit-ID: 777vfmwYbe0
testing/awsy/awsy/process_perf_data.py
--- a/testing/awsy/awsy/process_perf_data.py
+++ b/testing/awsy/awsy/process_perf_data.py
@@ -102,16 +102,20 @@ def create_suite(name, node, data_path):
 
     return suite
 
 
 def create_perf_data(data_path):
     """
     Builds up a performance data blob suitable for submitting to perfherder.
     """
+    if ("GCOV_PREFIX" in os.environ) or ("JS_CODE_COVERAGE_OUTPUT_DIR" in os.environ):
+        print "Code coverage is being collected, performance data will not be gathered."
+        return {}
+
     perf_blob = {
         'framework': { 'name': 'awsy' },
         'suites': []
     }
 
     for suite in PERF_SUITES:
         perf_blob['suites'].append(create_suite(suite['name'], suite['node'], data_path))