| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 from collections import defaultdict | 5 from collections import defaultdict |
| 6 import datetime | 6 import datetime |
| 7 import logging | 7 import logging |
| 8 import time | 8 import time |
| 9 | 9 |
| 10 from common.http_client_appengine import HttpClientAppengine as HttpClient | 10 from common.http_client_appengine import HttpClientAppengine as HttpClient |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 break # Stops the loop and return. | 137 break # Stops the loop and return. |
| 138 | 138 |
| 139 # Update swarming task metadate. | 139 # Update swarming task metadate. |
| 140 task = WfSwarmingTask.Get( | 140 task = WfSwarmingTask.Get( |
| 141 master_name, builder_name, build_number, step_name) | 141 master_name, builder_name, build_number, step_name) |
| 142 task.created_time = _ConvertDateTime(data.get('created_ts')) | 142 task.created_time = _ConvertDateTime(data.get('created_ts')) |
| 143 task.started_time = _ConvertDateTime(data.get('started_ts')) | 143 task.started_time = _ConvertDateTime(data.get('started_ts')) |
| 144 task.completed_time = _ConvertDateTime(data.get('completed_ts')) | 144 task.completed_time = _ConvertDateTime(data.get('completed_ts')) |
| 145 task.put() | 145 task.put() |
| 146 | 146 |
| 147 return step_name, (step_name_no_platform, task.classified_tests) | 147 return step_name, (step_name_no_platform, task.reliable_tests) |
| OLD | NEW |