| Index: appengine/findit/waterfall/buildbot.py
|
| diff --git a/appengine/findit/waterfall/buildbot.py b/appengine/findit/waterfall/buildbot.py
|
| index 0709671b2cdcc27543316f8ed9e0b12eb7c93096..01ffb61ee4b2fbd59fe5562d17c77456909cdb6d 100644
|
| --- a/appengine/findit/waterfall/buildbot.py
|
| +++ b/appengine/findit/waterfall/buildbot.py
|
| @@ -178,10 +178,16 @@ def GetBuildStartTime(build_data_json):
|
| times = build_data_json.get('times')
|
| if not times:
|
| return None
|
| - # TODO: convert to PST time?
|
| return datetime.utcfromtimestamp(times[0])
|
|
|
|
|
| +def GetBuildEndTime(build_data_json):
|
| + times = build_data_json.get('times')
|
| + if not times or len(times) < 2 or not times[1]:
|
| + return None
|
| + return datetime.utcfromtimestamp(times[1])
|
| +
|
| +
|
| def GetBuildResult(build_data_json):
|
| return build_data_json.get('results')
|
|
|
| @@ -195,6 +201,7 @@ def ExtractBuildInfo(master_name, builder_name, build_number, build_data):
|
| data_json.get('properties', []), 'got_revision')
|
|
|
| build_info.build_start_time = GetBuildStartTime(data_json)
|
| + build_info.build_end_time = GetBuildEndTime(data_json)
|
| build_info.chromium_revision = chromium_revision
|
| build_info.completed = data_json.get('currentStep') is None
|
| build_info.result = GetBuildResult(data_json)
|
|
|