Chromium Code Reviews| OLD | NEW |
|---|---|
| (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.', | |
|
stgao
2016/03/28 23:40:04
Swarming task is not clear here. I think we refer
| |
| 32 NON_SWARMING_NO_RERUN: ('No swarming task nor try job will be triggered' | |
|
stgao
2016/03/28 23:40:04
wording nit: non-swarming step, so no swarming rer
| |
| 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 } | |
| OLD | NEW |