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

Unified Diff: appengine/findit/handlers/result_status.py

Issue 1866883002: [Findit] A huge refactoring and some bug fixing. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix nit. 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 | « appengine/findit/handlers/monitor_alerts.py ('k') | appengine/findit/handlers/test/build_failure_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/handlers/result_status.py
diff --git a/appengine/findit/handlers/result_status.py b/appengine/findit/handlers/result_status.py
index 5835f294c7b9d85f1971c101e1f0efa09f18717f..15d16bd350dd6ef6f04c419e1a19de7ff228023a 100644
--- a/appengine/findit/handlers/result_status.py
+++ b/appengine/findit/handlers/result_status.py
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from model import wf_analysis_status
+from model import analysis_status
# Additional status for swarming tasks and try jobs.
NO_SWARMING_TASK_FOUND = 110
@@ -18,16 +18,16 @@ NO_TRY_JOB_REASON_MAP = {
NO_SWARMING_TASK_FOUND: NO_SWARMING_TASK_FOUND,
NON_SWARMING_NO_RERUN: NON_SWARMING_NO_RERUN,
NO_FAILURE_RESULT_MAP: NO_FAILURE_RESULT_MAP,
- wf_analysis_status.PENDING: SWARMING_TASK_PENDING,
- wf_analysis_status.ANALYZING: SWARMING_TASK_RUNNING,
- wf_analysis_status.ERROR: SWARMING_TASK_ERROR,
+ analysis_status.PENDING: SWARMING_TASK_PENDING,
+ analysis_status.RUNNING: SWARMING_TASK_RUNNING,
+ analysis_status.ERROR: SWARMING_TASK_ERROR,
}
STATUS_MESSAGE_MAP = {
- wf_analysis_status.PENDING: 'Try job is pending.',
- wf_analysis_status.ANALYZING: 'Try job is running.',
- wf_analysis_status.ANALYZED: 'Not Found.',
- wf_analysis_status.ERROR: 'Try job failed.',
+ analysis_status.PENDING: 'Try job is pending.',
+ analysis_status.RUNNING: 'Try job is running.',
+ analysis_status.COMPLETED: 'Not Found.',
+ analysis_status.ERROR: 'Try job failed.',
NO_SWARMING_TASK_FOUND: 'No swarming task found, hence no try job.',
NON_SWARMING_NO_RERUN: ('No swarming task nor try job will be triggered'
' for non-swarming steps.'),
« no previous file with comments | « appengine/findit/handlers/monitor_alerts.py ('k') | appengine/findit/handlers/test/build_failure_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698