| 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 import logging | 5 import logging |
| 6 | 6 |
| 7 from common import appengine_util | 7 from common import appengine_util |
| 8 from common import constants | 8 from common import constants |
| 9 from lib import time_util | 9 from libs import time_util |
| 10 from model import analysis_status | 10 from model import analysis_status |
| 11 from model.flake.master_flake_analysis import MasterFlakeAnalysis | 11 from model.flake.master_flake_analysis import MasterFlakeAnalysis |
| 12 from waterfall import waterfall_config | 12 from waterfall import waterfall_config |
| 13 from waterfall.flake import triggering_sources | 13 from waterfall.flake import triggering_sources |
| 14 from waterfall.flake.recursive_flake_pipeline import RecursiveFlakePipeline | 14 from waterfall.flake.recursive_flake_pipeline import RecursiveFlakePipeline |
| 15 | 15 |
| 16 | 16 |
| 17 def _NeedANewAnalysis( | 17 def _NeedANewAnalysis( |
| 18 normalized_test, original_test, algorithm_parameters, | 18 normalized_test, original_test, algorithm_parameters, |
| 19 bug_id=None, allow_new_analysis=False, force=False, | 19 bug_id=None, allow_new_analysis=False, force=False, |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 normalized_test.test_name, analysis.version_number, | 152 normalized_test.test_name, analysis.version_number, |
| 153 master_build_number=normalized_test.build_number, | 153 master_build_number=normalized_test.build_number, |
| 154 flakiness_algorithm_results_dict=flakiness_algorithm_results_dict, | 154 flakiness_algorithm_results_dict=flakiness_algorithm_results_dict, |
| 155 manually_triggered=manually_triggered, | 155 manually_triggered=manually_triggered, |
| 156 use_nearby_neighbor=use_nearby_neighbor) | 156 use_nearby_neighbor=use_nearby_neighbor) |
| 157 pipeline_job.target = appengine_util.GetTargetNameForModule( | 157 pipeline_job.target = appengine_util.GetTargetNameForModule( |
| 158 constants.WATERFALL_BACKEND) | 158 constants.WATERFALL_BACKEND) |
| 159 pipeline_job.StartOffPSTPeakHours(queue_name=queue_name) | 159 pipeline_job.StartOffPSTPeakHours(queue_name=queue_name) |
| 160 | 160 |
| 161 return analysis | 161 return analysis |
| OLD | NEW |