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

Side by Side Diff: appengine/findit/waterfall/build_info.py

Issue 2563383002: [Findit] Flake Checker: Extract commit position and git hash and display to UI for each analyzed bu… (Closed)
Patch Set: Fixing nit Created 4 years 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 unified diff | Download patch
« no previous file with comments | « appengine/findit/templates/flake/result.html ('k') | appengine/findit/waterfall/buildbot.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5
5 class BuildInfo(object): # pragma: no cover 6 class BuildInfo(object): # pragma: no cover
6 """Represents a build cycle of a build bot.""" 7 """Represents a build cycle of a build bot."""
7 8
8 def __init__(self, master_name, builder_name, build_number): 9 def __init__(self, master_name, builder_name, build_number):
9 self.master_name = master_name 10 self.master_name = master_name
10 self.builder_name = builder_name 11 self.builder_name = builder_name
11 self.build_number = build_number 12 self.build_number = build_number
12 self.build_start_time = None 13 self.build_start_time = None
13 self.build_end_time = None 14 self.build_end_time = None
14 self.chromium_revision = None 15 self.chromium_revision = None
16 self.commit_position = None
15 self.completed = False 17 self.completed = False
16 self.result = None 18 self.result = None
17 self.blame_list = [] 19 self.blame_list = []
18 self.failed_steps = [] 20 self.failed_steps = []
19 self.passed_steps = [] 21 self.passed_steps = []
20 self.not_passed_steps = [] 22 self.not_passed_steps = []
21 23
22 def PrettyPrint(self): 24 def PrettyPrint(self):
23 print 'master: %s' % self.master_name 25 print 'master: %s' % self.master_name
24 print 'builder: %s' % self.builder_name 26 print 'builder: %s' % self.builder_name
25 print 'build: %s' % self.build_number 27 print 'build: %s' % self.build_number
26 print 'start time: %s' % self.build_start_time 28 print 'start time: %s' % self.build_start_time
27 print 'end time: %s' % self.build_end_time 29 print 'end time: %s' % self.build_end_time
28 print 'chromium revision: %s' % self.chromium_revision 30 print 'chromium revision: %s' % self.chromium_revision
31 print 'commit position: %s' % self.commit_position
29 print 'completed: %s' % self.completed 32 print 'completed: %s' % self.completed
30 print 'result: %s' % self.result 33 print 'result: %s' % self.result
31 print 'CLs: %s' % ', '.join(self.blame_list) 34 print 'CLs: %s' % ', '.join(self.blame_list)
32 print 'Failed steps: %s' % ', '.join(self.failed_steps) 35 print 'Failed steps: %s' % ', '.join(self.failed_steps)
33 print 'Passed steps: %s' % ', '.join(self.passed_steps) 36 print 'Passed steps: %s' % ', '.join(self.passed_steps)
34 print 'Not-passed steps: %s' % ', '.join(self.not_passed_steps) 37 print 'Not-passed steps: %s' % ', '.join(self.not_passed_steps)
OLDNEW
« no previous file with comments | « appengine/findit/templates/flake/result.html ('k') | appengine/findit/waterfall/buildbot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698