Remove CI votes metric

This patch removes processing of CI votes. The reasons are:
 * CI votes rely on DriverLog database which is deprecated
 * CI votes are collected from comments to patch sets, querying
   comments significantly increases the load on Gerrit
 * CI votes are not actively used by community
 * CI votes provide only partial look into state of third-party
   drivers.

This reverts commits:
   a6ff499de3
   1b6a5fe764
   03be2b4e19
   94f371d543
   5ad1cbe79c

Change-Id: Ie30b68c54b8d6fac6330481bf83bd1b2c4bfa190
This commit is contained in:
Ilya Shakhat
2017-08-24 10:19:27 +02:00
parent db0a300d02
commit 30976caaae
18 changed files with 6 additions and 682 deletions

View File

@@ -321,28 +321,6 @@ def mark_finalize(record):
return new_record
def ci_filter(result, record, param_id, context):
result_by_param = result[getattr(record, param_id)]
result_by_param['metric'] += 1
key = 'success' if record.value else 'failure'
result_by_param[key] = result_by_param.get(key, 0) + 1
def ci_finalize(record):
new_record = record.copy()
metric = record.get('metric')
if metric:
new_record['success_ratio'] = '%.1f%%' % (
(record.get('success', 0) * 100.0) / metric)
else:
new_record['success_rate'] = helpers.INFINITY_HTML
return new_record
def person_day_filter(result, record, param_id, context):
day = utils.timestamp_to_day(record.date)
# fact that record-days are grouped by days in some order is used
@@ -389,7 +367,6 @@ def aggregate_filter():
'resolved-bugs': (incremental_filter, None),
'members': (incremental_filter, None),
'person-day': (person_day_filter, None),
'ci': (ci_filter, ci_finalize),
'patches': (None, None),
'translations': (loc_filter, None),
}