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:a6ff499de31b6a5fe76403be2b4e1994f371d5435ad1cbe79cChange-Id: Ie30b68c54b8d6fac6330481bf83bd1b2c4bfa190
This commit is contained in:
		| @@ -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), | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ilya Shakhat
					Ilya Shakhat