| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import base64 | 5 import base64 |
| 6 import cStringIO | 6 import cStringIO |
| 7 import logging | 7 import logging |
| 8 import json | 8 import json |
| 9 | 9 |
| 10 from google.appengine.api.urlfetch import ResponseTooLargeError | 10 from google.appengine.api.urlfetch import ResponseTooLargeError |
| 11 | 11 |
| 12 from pipeline_utils.appengine_third_party_pipeline_src_pipeline import pipeline | 12 from pipeline_utils.appengine_third_party_pipeline_python_src_pipeline \ |
| 13 import pipeline |
| 13 | 14 |
| 14 from common.http_client_appengine import HttpClientAppengine as HttpClient | 15 from common.http_client_appengine import HttpClientAppengine as HttpClient |
| 15 from model.wf_step import WfStep | 16 from model.wf_step import WfStep |
| 16 from waterfall import buildbot | 17 from waterfall import buildbot |
| 17 from waterfall import extractors | 18 from waterfall import extractors |
| 18 from waterfall import lock_util | 19 from waterfall import lock_util |
| 19 from waterfall.base_pipeline import BasePipeline | 20 from waterfall.base_pipeline import BasePipeline |
| 20 | 21 |
| 21 | 22 |
| 22 class ExtractSignalPipeline(BasePipeline): | 23 class ExtractSignalPipeline(BasePipeline): |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 try: | 155 try: |
| 155 step.put() | 156 step.put() |
| 156 except Exception as e: # pragma: no cover | 157 except Exception as e: # pragma: no cover |
| 157 # Sometimes, the step log is too large to save in datastore. | 158 # Sometimes, the step log is too large to save in datastore. |
| 158 logging.exception(e) | 159 logging.exception(e) |
| 159 | 160 |
| 160 # TODO: save result in datastore? | 161 # TODO: save result in datastore? |
| 161 signals[step_name] = extractors.ExtractSignal( | 162 signals[step_name] = extractors.ExtractSignal( |
| 162 master_name, builder_name, step_name, None, failure_log).ToDict() | 163 master_name, builder_name, step_name, None, failure_log).ToDict() |
| 163 return signals | 164 return signals |
| OLD | NEW |