Bug 1583624 - Unclear error message in stylebench raptor output. r=perftest-reviewers,Marian

Differential Revision: https://phabricator.services.mozilla.com/D47771

--HG--
extra : moz-landing-system : lando
This commit is contained in:
octavian.negru 2019-10-02 08:17:14 +00:00
Родитель 713cd0fb7a
Коммит 79fee602e5
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -293,7 +293,8 @@ class PerftestOutput(object):
# We receive 76 entries per test, which ads up to 380. We want to use
# the 5 test entries, not the rest.
if len(results) != 380:
raise Exception("StyleBench has 380 entries, found: %s instead" % len(results))
raise Exception("StyleBench requires 380 entries, found: %s instead"
% len(results))
results = results[75::76]
return 60 * 1000 / filters.geometric_mean(results) / correctionFactor

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

@ -293,7 +293,8 @@ class Output(object):
# We receive 76 entries per test, which ads up to 380. We want to use
# the 5 test entries, not the rest.
if len(results) != 380:
raise Exception("StyleBench has 380 entries, found: %s instead" % len(results))
raise Exception("StyleBench requires 380 entries, found: %s instead"
% len(results))
results = results[75::76]
score = 60 * 1000 / filter.geometric_mean(results) / correctionFactor