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

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: added another init whoooo 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
« no previous file with comments | « appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 class TriggerFlakeSwarmingTaskPipeline(TriggerBaseSwarmingTaskPipeline):
9 """A pipeline to check if selected tests of a step are flaky.
10
11 This pipeline only supports test steps that run on Swarming and support the
12 gtest filter.
13 """
14 #pylint: disable=arguments-differ
15 def _GetSwarmingTask(self,master_name, builder_name, build_number,
16 step_name, test_name):
17 # Get the appropriate kind of Swarming Task (Flake).
18 swarming_task = FlakeSwarmingTask.Get(
19 master_name, builder_name, build_number, step_name, test_name)
20 return swarming_task
21
22 #pylint: disable=arguments-differ
23 def _CreateSwarmingTask(self, master_name, builder_name, build_number,
24 step_name, test_name):
25 # Create the appropriate kind of Swarming Task (Flake).
26 swarming_task = FlakeSwarmingTask.Create(
27 master_name, builder_name, build_number, step_name, test_name)
28 return swarming_task
29
30 def _GetIterationsToRerun(self):
31 # How many times we want to run the swarming rerun?
32 return 10
33
34 def _GetArgs(self, master_name, builder_name, build_number, step_name, tests):
35 test_name = tests[0] #only one test per pipeline
36 return (master_name, builder_name, build_number, step_name, test_name)
OLDNEW
« no previous file with comments | « appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698