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

Unified 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, 5 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/waterfall/trigger_flake_swarming_task_pipeline.py
diff --git a/appengine/findit/waterfall/trigger_flake_swarming_task_pipeline.py b/appengine/findit/waterfall/trigger_flake_swarming_task_pipeline.py
new file mode 100644
index 0000000000000000000000000000000000000000..d9a2b3dc668ee4b174185168117b1941aeaa1122
--- /dev/null
+++ b/appengine/findit/waterfall/trigger_flake_swarming_task_pipeline.py
@@ -0,0 +1,36 @@
+from google.appengine.ext import ndb
+
+import logging
+
+from waterfall.trigger_base_swarming_task_pipeline import(
+ TriggerBaseSwarmingTaskPipeline)
+from model.flake.flake_swarming_task import FlakeSwarmingTask
+class TriggerFlakeSwarmingTaskPipeline(TriggerBaseSwarmingTaskPipeline):
+ """A pipeline to check if selected tests of a step are flaky.
+
+ This pipeline only supports test steps that run on Swarming and support the
+ gtest filter.
+ """
+ #pylint: disable=arguments-differ
+ def _GetSwarmingTask(self,master_name, builder_name, build_number,
+ step_name, test_name):
+ # Get the appropriate kind of Swarming Task (Flake).
+ swarming_task = FlakeSwarmingTask.Get(
+ master_name, builder_name, build_number, step_name, test_name)
+ return swarming_task
+
+ #pylint: disable=arguments-differ
+ def _CreateSwarmingTask(self, master_name, builder_name, build_number,
+ step_name, test_name):
+ # Create the appropriate kind of Swarming Task (Flake).
+ swarming_task = FlakeSwarmingTask.Create(
+ master_name, builder_name, build_number, step_name, test_name)
+ return swarming_task
+
+ def _GetIterationsToRerun(self):
+ # How many times we want to run the swarming rerun?
+ return 10
+
+ def _GetArgs(self, master_name, builder_name, build_number, step_name, tests):
+ test_name = tests[0] #only one test per pipeline
+ return (master_name, builder_name, build_number, step_name, test_name)
« 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