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

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

Issue 1924823003: [Findit] Use heuristic analysis result for test try jobs(Findit side). (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 7 months 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
OLDNEW
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 from common.pipeline_wrapper import BasePipeline 5 from common.pipeline_wrapper import BasePipeline
6 from common.pipeline_wrapper import pipeline 6 from common.pipeline_wrapper import pipeline
7 from common.waterfall import buildbucket_client 7 from common.waterfall import buildbucket_client
8 from model.wf_try_job import WfTryJob 8 from model.wf_try_job import WfTryJob
9 from waterfall import buildbot 9 from waterfall import buildbot
10 from waterfall import waterfall_config 10 from waterfall import waterfall_config
(...skipping 13 matching lines...) Expand all
24 'bad_revision': bad_revision, 24 'bad_revision': bad_revision,
25 'target_mastername': master_name, 25 'target_mastername': master_name,
26 'referenced_build_url': buildbot.CreateBuildUrl( 26 'referenced_build_url': buildbot.CreateBuildUrl(
27 master_name, builder_name, build_number) 27 master_name, builder_name, build_number)
28 } 28 }
29 29
30 if try_job_type == TryJobType.COMPILE: 30 if try_job_type == TryJobType.COMPILE:
31 properties['target_buildername'] = builder_name 31 properties['target_buildername'] = builder_name
32 if compile_targets: 32 if compile_targets:
33 properties['compile_targets'] = compile_targets 33 properties['compile_targets'] = compile_targets
34 if suspected_revisions:
35 properties['suspected_revisions'] = suspected_revisions
36 else: # try_job_type is 'test'. 34 else: # try_job_type is 'test'.
37 properties['target_testername'] = builder_name 35 properties['target_testername'] = builder_name
38 assert targeted_tests 36 assert targeted_tests
39 properties['tests'] = targeted_tests 37 properties['tests'] = targeted_tests
40 38
39 if suspected_revisions:
40 properties['suspected_revisions'] = suspected_revisions
41
41 return properties 42 return properties
42 43
43 # Arguments number differs from overridden method - pylint: disable=W0221 44 # Arguments number differs from overridden method - pylint: disable=W0221
44 def run( 45 def run(
45 self, master_name, builder_name, build_number, good_revision, 46 self, master_name, builder_name, build_number, good_revision,
46 bad_revision, try_job_type, compile_targets, targeted_tests, 47 bad_revision, try_job_type, compile_targets, targeted_tests,
47 suspected_revisions): 48 suspected_revisions):
48 tryserver_mastername, tryserver_buildername = ( 49 tryserver_mastername, tryserver_buildername = (
49 waterfall_config.GetTrybotForWaterfallBuilder( 50 waterfall_config.GetTrybotForWaterfallBuilder(
50 master_name, builder_name)) 51 master_name, builder_name))
(...skipping 12 matching lines...) Expand all
63 64
64 try_job_result = WfTryJob.Get(master_name, builder_name, build_number) 65 try_job_result = WfTryJob.Get(master_name, builder_name, build_number)
65 if try_job_type == TryJobType.COMPILE: 66 if try_job_type == TryJobType.COMPILE:
66 try_job_result.compile_results.append({'try_job_id': build.id}) 67 try_job_result.compile_results.append({'try_job_id': build.id})
67 else: 68 else:
68 try_job_result.test_results.append({'try_job_id': build.id}) 69 try_job_result.test_results.append({'try_job_id': build.id})
69 try_job_result.try_job_ids.append(build.id) 70 try_job_result.try_job_ids.append(build.id)
70 try_job_result.put() 71 try_job_result.put()
71 72
72 return build.id 73 return build.id
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698