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

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

Issue 2130543004: Waterfall components of regression range finder. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: addressed comments, added trigger test which somehow wasn't included last time Created 4 years, 4 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
(Empty)
1 from google.appengine.ext import ndb
2
3 import logging
4
5 from waterfall.trigger_base_swarming_task_pipeline import(
6 TriggerBaseSwarmingTaskPipeline)
7 from model.flake.flake_swarming_task import FlakeSwarmingTask
8
9 class TriggerFlakeSwarmingTaskPipeline(
10 TriggerBaseSwarmingTaskPipeline):
11 """A pipeline to check if selected tests of a step are flaky.
12
13 This pipeline only supports test steps that run on Swarming and support the
14 gtest filter.
15 """
16 #pylint: disable=arguments-differ
17 def _GetSwarmingTask(self,master_name, builder_name, build_number,
18 step_name, test_name):
19 # Get the appropriate kind of Swarming Task (Flake).
20 swarming_task = FlakeSwarmingTask.Get(
21 master_name, builder_name, build_number, step_name, test_name)
22 return swarming_task
23
24 #pylint: disable=arguments-differ
25 def _CreateSwarmingTask(self, master_name, builder_name, build_number,
26 step_name, test_name):
27 # Create the appropriate kind of Swarming Task (Flake).
28 swarming_task = FlakeSwarmingTask.Create(
29 master_name, builder_name, build_number, step_name, test_name)
30 return swarming_task
31
32 def _GetIterationsToRerun(self):
33 # How many times we want to run the swarming rerun?
34 # TODO(caiw): Move to config.
35 return 10
lijeffrey 2016/07/26 20:49:02 this should already be in config. see waterfall_co
caiw 2016/07/26 21:09:01 removed the todo. Since the next cl won't use thi
36
37 def _GetArgs(self, master_name, builder_name, build_number, step_name, tests):
38 test_name = tests[0] #only one test per pipeline
39 return (master_name, builder_name, build_number, step_name, test_name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698