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

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

Issue 2187763004: [Findit] Refactor Findit pipeline. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/waterfall/monitor_try_job_pipeline.py
diff --git a/appengine/findit/waterfall/monitor_try_job_pipeline.py b/appengine/findit/waterfall/monitor_try_job_pipeline.py
index e099a7da6a4d2af7ccd20c74410665b6f4d8b213..2eac6c78f6bec49d42ad8c61ecc527d5f4dbc52c 100644
--- a/appengine/findit/waterfall/monitor_try_job_pipeline.py
+++ b/appengine/findit/waterfall/monitor_try_job_pipeline.py
@@ -11,13 +11,13 @@ from google.appengine.ext import ndb
from common.pipeline_wrapper import BasePipeline
from common.pipeline_wrapper import pipeline
from common.waterfall import buildbucket_client
+from common.waterfall import failure_type
from common.waterfall import try_job_error
from common.waterfall.buildbucket_client import BuildbucketBuild
from model import analysis_status
from model.wf_try_job import WfTryJob
from model.wf_try_job_data import WfTryJobData
from waterfall import waterfall_config
-from waterfall.try_job_type import TryJobType
def _MicrosecondsToDatetime(microseconds):
@@ -165,7 +165,7 @@ class MonitorTryJobPipeline(BasePipeline):
}
try_job_result = WfTryJob.Get(master_name, builder_name, build_number)
- if try_job_type == TryJobType.COMPILE:
+ if try_job_type == failure_type.COMPILE:
result_to_update = try_job_result.compile_results
else:
result_to_update = try_job_result.test_results

Powered by Google App Engine
This is Rietveld 408576698