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

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

Issue 1778153002: [Findit] Strip platform from step_name before triggering try job. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . Created 4 years, 9 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 | « no previous file | appengine/findit/waterfall/run_try_job_for_reliable_failure_pipeline.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d33dc8bd77a13fa408852fccb7a2b8a32cc34192..7f6bcfecec9ad1be635ea7a19464c9f95a6ce531 100644
--- a/appengine/findit/waterfall/process_swarming_task_result_pipeline.py
+++ b/appengine/findit/waterfall/process_swarming_task_result_pipeline.py
@@ -85,12 +85,15 @@ class ProcessSwarmingTaskResultPipeline(BasePipeline):
task_started = False
task_completed = False
tests_statuses = {}
+ step_name_no_platform = None
while not task_completed:
# Keeps monitoring the swarming task, waits for it to complete.
data = swarming_util.GetSwarmingTaskResultById(
task_id, self.HTTP_CLIENT)
task_state = data['state']
+ step_name_no_platform = swarming_util.GetTagValue(
+ data.get('tags', {}), 'ref_name')
if task_state not in swarming_util.STATES_RUNNING:
task_completed = True
task = WfSwarmingTask.Get(
@@ -140,4 +143,4 @@ class ProcessSwarmingTaskResultPipeline(BasePipeline):
task.completed_time = _ConvertDateTime(data.get('completed_ts'))
task.put()
- return step_name, task.classified_tests
+ return step_name, (step_name_no_platform, task.classified_tests)
« no previous file with comments | « no previous file | appengine/findit/waterfall/run_try_job_for_reliable_failure_pipeline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698