Bug 1353812 - adjust alert thresholds for android/desktop installer size. r=wlach

MozReview-Commit-ID: BHC9WcSs5RU
This commit is contained in:
Joel Maher 2017-04-19 08:11:57 -04:00
Родитель c4f7faa0ae
Коммит bfab446bda
1 изменённых файлов: 16 добавлений и 7 удалений

Просмотреть файл

@ -2019,13 +2019,22 @@ or run without that action (ie: --no-{action})"
},
"suites": [],
}
if installer_size or size_measurements:
perfherder_data["suites"].append({
"name": "installer size",
"value": installer_size,
"alertThreshold": 0.25,
"subtests": size_measurements
})
if (installer_size or size_measurements) and not c.get('debug_build'):
if installer.endswith('.apk'): # Android
perfherder_data["suites"].append({
"name": "installer size",
"value": installer_size,
"alertChangeType": "absolute",
"alertThreshold": (200 * 1024),
"subtests": size_measurements
})
else:
perfherder_data["suites"].append({
"name": "installer size",
"value": installer_size,
"alertThreshold": 1.0,
"subtests": size_measurements
})
build_metrics = self._load_build_resources()
if build_metrics: