Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(799)

Unified Diff: infra/tools/cq_stats/cq_stats.py

Issue 1656793002: cq_stats: use number of attempts from daily stats for calculating percentages (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: align Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | infra/tools/cq_stats/test/cq_stats_test.expected/TestCQStats.test_print_stats.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/tools/cq_stats/cq_stats.py
diff --git a/infra/tools/cq_stats/cq_stats.py b/infra/tools/cq_stats/cq_stats.py
index f58c253e33f2db48604854567a4874e6b6e6ef14..b96e753ba2b5f2158c007c55c88ebc124f64f25f 100755
--- a/infra/tools/cq_stats/cq_stats.py
+++ b/infra/tools/cq_stats/cq_stats.py
@@ -1170,15 +1170,15 @@ def print_stats(args, stats):
day_stats, 'infra-false-rejections', committed=True)
output(' %s: %4d attempts; 50%% %4.1f; 90%% %4.1f; '
- 'false rejections %.1f%% (%.1f%% infra)',
+ 'false rejections %4.1f%% (%4.1f%% infra)',
day_stats['begin'].date(),
day_stats['attempt-count'],
day_stats['patchset-committed-durations']['50'] / 3600.0,
day_stats['patchset-committed-durations']['90'] / 3600.0,
percentage(sum(p['count'] for p in false_rejections),
- stats['attempt-count']),
+ day_stats['attempt-count']),
percentage(sum(p['count'] for p in infra_false_rejections),
- stats['attempt-count']))
+ day_stats['attempt-count']))
output()
output('Slowest CLs:')
« no previous file with comments | « no previous file | infra/tools/cq_stats/test/cq_stats_test.expected/TestCQStats.test_print_stats.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698