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

Side by Side Diff: appengine/findit/handlers/result_status.py

Issue 1827903002: [Findit] Modify handlers_util to prepare for the new UI change. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: remove possible flaky tests. 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 unified diff | Download patch
« no previous file with comments | « appengine/findit/handlers/handlers_util.py ('k') | appengine/findit/handlers/swarming_task.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from model import wf_analysis_status
6
7 # Additional status for swarming tasks and try jobs.
8 NO_SWARMING_TASK_FOUND = 110
9 NON_SWARMING_NO_RERUN = 120
10 #Additional reasons for no try job information.
11 SWARMING_TASK_PENDING = 130
12 SWARMING_TASK_RUNNING = 140
13 SWARMING_TASK_ERROR = 150
14 NO_FAILURE_RESULT_MAP = 160
15 FLAKY = 200
16
17 NO_TRY_JOB_REASON_MAP = {
18 NO_SWARMING_TASK_FOUND: NO_SWARMING_TASK_FOUND,
19 NON_SWARMING_NO_RERUN: NON_SWARMING_NO_RERUN,
20 NO_FAILURE_RESULT_MAP: NO_FAILURE_RESULT_MAP,
21 wf_analysis_status.PENDING: SWARMING_TASK_PENDING,
22 wf_analysis_status.ANALYZING: SWARMING_TASK_RUNNING,
23 wf_analysis_status.ERROR: SWARMING_TASK_ERROR,
24 }
25
26 STATUS_MESSAGE_MAP = {
27 wf_analysis_status.PENDING: 'Try job is pending.',
28 wf_analysis_status.ANALYZING: 'Try job is running.',
29 wf_analysis_status.ANALYZED: 'Not Found.',
30 wf_analysis_status.ERROR: 'Try job failed.',
31 NO_SWARMING_TASK_FOUND: 'No swarming task found, hence no try job.',
32 NON_SWARMING_NO_RERUN: ('No swarming task nor try job will be triggered'
33 ' for non-swarming steps.'),
34 SWARMING_TASK_PENDING: 'Swarming task is pending, no try job yet.',
35 SWARMING_TASK_RUNNING: 'Swarming task is running, no try job yet.',
36 SWARMING_TASK_ERROR: (
37 'Swarming task failed, try job will not be triggered.'),
38 NO_FAILURE_RESULT_MAP: 'No swarming task nor try job was triggered.',
39 FLAKY: 'Flaky tests.',
40 }
OLDNEW
« no previous file with comments | « appengine/findit/handlers/handlers_util.py ('k') | appengine/findit/handlers/swarming_task.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698