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

Unified Diff: appengine/findit/waterfall/process_swarming_task_result_pipeline.py

Issue 2139093002: [Findit] Trigger swarming tasks after detech_first_faliure_pipeline (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . 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
Index: appengine/findit/waterfall/process_swarming_task_result_pipeline.py
diff --git a/appengine/findit/waterfall/process_swarming_task_result_pipeline.py b/appengine/findit/waterfall/process_swarming_task_result_pipeline.py
index 06d55d6de4d23ccba2e8dceb475278617b6aa2b4..e7232251e48d49852d6a81c73b2500ef56aad683 100644
--- a/appengine/findit/waterfall/process_swarming_task_result_pipeline.py
+++ b/appengine/findit/waterfall/process_swarming_task_result_pipeline.py
@@ -62,20 +62,18 @@ class ProcessSwarmingTaskResultPipeline(BasePipeline):
HTTP_CLIENT = HttpClient()
# Arguments number differs from overridden method - pylint: disable=W0221
- def run(self, master_name, builder_name, build_number, step_name, task_id):
+ def run(self, master_name, builder_name, build_number, step_name):
"""
Args:
master_name (str): The master name.
builder_name (str): The builder name.
build_number (str): The build number.
step_name (str): The failed test step name.
- task_id (str): Id for the swarming task which is triggered by Findit.
Returns:
A dict of lists for reliable/flaky tests.
"""
- assert task_id
timeout_hours = waterfall_config.GetSwarmingSettings().get(
'task_timeout_hours')
deadline = time.time() + timeout_hours * 60 * 60
@@ -87,6 +85,9 @@ class ProcessSwarmingTaskResultPipeline(BasePipeline):
tests_statuses = {}
step_name_no_platform = None
+ task = WfSwarmingTask.Get(
+ master_name, builder_name, build_number, step_name)
+ task_id = task.task_id
while not task_completed:
# Keeps monitoring the swarming task, waits for it to complete.
data = swarming_util.GetSwarmingTaskResultById(

Powered by Google App Engine
This is Rietveld 408576698