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

Unified Diff: appengine/findit/handlers/flake/check_flake.py

Issue 2243673002: [Findit] Added algorithm to analysis (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: gclient sync Created 4 years, 4 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 | appengine/findit/handlers/flake/flake_dashboard.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/handlers/flake/check_flake.py
diff --git a/appengine/findit/handlers/flake/check_flake.py b/appengine/findit/handlers/flake/check_flake.py
index 84b51ae8029827137450ae9eda01fe3d1eca1335..15f5310787f48246636c2bcaa035e6c7a47fb474 100644
--- a/appengine/findit/handlers/flake/check_flake.py
+++ b/appengine/findit/handlers/flake/check_flake.py
@@ -7,6 +7,7 @@ from google.appengine.api import users
from common import constants
from common.base_handler import BaseHandler
from common.base_handler import Permission
+from model.analysis_status import STATUS_TO_DESCRIPTION
from waterfall.flake.initialize_flake_pipeline import ScheduleAnalysisIfNeeded
@@ -28,11 +29,16 @@ class CheckFlake(BaseHandler):
master_name, builder_name, build_number, step_name,
test_name, force=force, queue_name=constants.WATERFALL_ANALYSIS_QUEUE)
data = {
- 'success_rates': []
+ 'success_rates': [],
+ 'analysis_status': STATUS_TO_DESCRIPTION.get(
+ master_flake_analysis.status),
+ 'suspected_flake_build_number':(
+ master_flake_analysis.suspected_flake_build_number)
}
- for (build_number, success_rate) in zip(
- master_flake_analysis.build_numbers,
- master_flake_analysis.success_rates):
+ zipped = zip(master_flake_analysis.build_numbers,
+ master_flake_analysis.success_rates)
+ zipped.sort(key = lambda x: x[0])
+ for (build_number, success_rate) in zipped:
data['success_rates'].append([build_number, success_rate])
return {
'template': 'flake/result.html',
« no previous file with comments | « no previous file | appengine/findit/handlers/flake/flake_dashboard.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698