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

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

Issue 1898003002: [Findit] Fixing when try job entities are created (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fixing whitespace Created 4 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/waterfall/try_job_util.py
diff --git a/appengine/findit/waterfall/try_job_util.py b/appengine/findit/waterfall/try_job_util.py
index 0ea4d52f0279bde54554a273b12e89e6babbbd43..3aa160aead843e067ba1783928cb4c05036f7386 100644
--- a/appengine/findit/waterfall/try_job_util.py
+++ b/appengine/findit/waterfall/try_job_util.py
@@ -97,8 +97,7 @@ def _NeedANewTryJob(
failed_steps))
if need_new_try_job:
- try_job = WfTryJob.Get(
- master_name, builder_name, build_number)
+ try_job = WfTryJob.Get(master_name, builder_name, build_number)
if try_job:
if try_job.failed:
@@ -106,10 +105,6 @@ def _NeedANewTryJob(
try_job.put()
else:
need_new_try_job = False
- else:
- try_job = WfTryJob.Create(
- master_name, builder_name, build_number)
- try_job.put()
return need_new_try_job, last_pass, try_job_type, targeted_tests
@@ -169,6 +164,9 @@ def ScheduleTryJobIfNeeded(failure_info, signals, heuristic_result):
return {}
if need_new_try_job:
+ try_job = WfTryJob.Create(master_name, builder_name, build_number)
stgao 2016/04/18 22:05:27 No, we'd better not do it like this. If there are
+ try_job.put()
+
compile_targets = (_GetFailedTargetsFromSignals(
signals, master_name, builder_name)
if try_job_type == TryJobType.COMPILE else None)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698