HBASE-16720 Sort build ids in flaky dashboard.
Change-Id: Ie44c7d699486a3468c92351c0e2146151e722764
This commit is contained in:
parent
d127d64266
commit
de7316b11e
|
@ -91,7 +91,7 @@
|
|||
{% set failed = result[test]['failed'] %}
|
||||
{% set timeout = result[test]['timeout'] %}
|
||||
{% set hanging = result[test]['hanging'] %}
|
||||
{% set success = all.difference(failed).difference(hanging) %}
|
||||
{% set success = result[test]['success'] %}
|
||||
<tr>
|
||||
<td>{{ test |e }}</td>
|
||||
{% set flakyness =
|
||||
|
|
|
@ -190,11 +190,15 @@ for url_max_build in expanded_urls:
|
|||
if is_bad:
|
||||
test_to_build_ids[bad_test]['bad_count'] += 1
|
||||
|
||||
# Calculate flakyness % for each test.
|
||||
# Calculate flakyness % and successful builds for each test. Also sort build ids.
|
||||
for bad_test in test_to_build_ids:
|
||||
test_to_build_ids[bad_test]['flakyness'] = (
|
||||
(test_to_build_ids[bad_test]['bad_count']) * 100.0 /
|
||||
len(test_to_build_ids[bad_test]['all']))
|
||||
test_result = test_to_build_ids[bad_test]
|
||||
test_result['flakyness'] = test_result['bad_count'] * 100.0 / len(test_result['all'])
|
||||
test_result['success'] = (test_result['all'].difference(
|
||||
test_result['failed'].union(test_result['hanging'])))
|
||||
for key in ['all', 'timeout', 'failed', 'hanging', 'success']:
|
||||
test_result[key] = sorted(test_result[key])
|
||||
|
||||
|
||||
# Sort tests in descending order by flakyness.
|
||||
sorted_test_to_build_ids = OrderedDict(
|
||||
|
|
Loading…
Reference in New Issue