| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Includes all the constants of module names, queue names, url paths, etc.""" | 5 """Includes all the constants of module names, queue names, url paths, etc.""" |
| 6 | 6 |
| 7 import os | 7 import os |
| 8 | 8 |
| 9 | 9 |
| 10 # Names of all modules. | 10 # Names of all modules. |
| 11 WATERFALL_BACKEND = 'waterfall-backend' | 11 WATERFALL_BACKEND = 'waterfall-backend' |
| 12 CRASH_BACKEND = { | 12 CRASH_BACKEND = { |
| 13 'fracas': 'crash-backend-fracas', | 13 'fracas': 'crash-backend-fracas', |
| 14 'cracas': 'crash-backend-cracas', | 14 'cracas': 'crash-backend-cracas', |
| 15 'clusterfuzz': 'crash-backend-clusterfuzz' | 15 'clusterfuzz': 'crash-backend-clusterfuzz' |
| 16 } | 16 } |
| 17 | 17 |
| 18 | 18 |
| 19 # Names of all queues. | 19 # Names of all queues. |
| 20 DEFAULT_QUEUE = 'default' | 20 DEFAULT_QUEUE = 'default' |
| 21 WATERFALL_ANALYSIS_QUEUE = 'waterfall-analysis-queue' | 21 WATERFALL_ANALYSIS_QUEUE = 'waterfall-analysis-queue' |
| 22 WATERFALL_TRY_JOB_QUEUE = 'waterfall-try-job-queue' | 22 WATERFALL_TRY_JOB_QUEUE = 'waterfall-try-job-queue' |
| 23 WATERFALL_FAILURE_ANALYSIS_REQUEST_QUEUE = 'waterfall-failure-analysis-request' | 23 WATERFALL_FAILURE_ANALYSIS_REQUEST_QUEUE = 'waterfall-failure-analysis-request' |
| 24 WATERFALL_FLAKE_ANALYSIS_REQUEST_QUEUE = 'waterfall-flake-analysis-request' |
| 24 CRASH_ANALYSIS_QUEUE = { | 25 CRASH_ANALYSIS_QUEUE = { |
| 25 'fracas': 'crash-analysis-fracas-queue', | 26 'fracas': 'crash-analysis-fracas-queue', |
| 26 'cracas': 'crash-analysis-cracas-queue', | 27 'cracas': 'crash-analysis-cracas-queue', |
| 27 'clusterfuzz': 'crash-analysis-clusterfuzz-queue' | 28 'clusterfuzz': 'crash-analysis-clusterfuzz-queue' |
| 28 } | 29 } |
| 29 | 30 |
| 30 | 31 |
| 31 # Waterfall-related. | 32 # Waterfall-related. |
| 32 WATERFALL_TRIGGER_ANALYSIS_URL = '/waterfall/process-failure-analysis-requests' | 33 WATERFALL_PROCESS_FAILURE_ANALYSIS_REQUESTS_URL = ( |
| 34 '/waterfall/process-failure-analysis-requests') |
| 35 WATERFALL_PROCESS_FLAKE_ANALYSIS_REQUEST_URL = ( |
| 36 '/waterfall/process-flake-analysis-request') |
| 33 WATERFALL_ALERTS_URL = 'https://sheriff-o-matic.appspot.com/alerts' | 37 WATERFALL_ALERTS_URL = 'https://sheriff-o-matic.appspot.com/alerts' |
| 34 COMPILE_STEP_NAME = 'compile' | 38 COMPILE_STEP_NAME = 'compile' |
| 35 | 39 |
| 36 | 40 |
| 37 # TODO: move this to config. | 41 # TODO: move this to config. |
| 38 # Whitelisted app ids for authorized access. | 42 # Whitelisted app ids for authorized access. |
| 39 WHITELISTED_APP_ACCOUNTS = [ | 43 WHITELISTED_APP_ACCOUNTS = [ |
| 40 'chromium-try-flakes@appspot.gserviceaccount.com', | 44 'chromium-try-flakes@appspot.gserviceaccount.com', |
| 41 'findit-for-me@appspot.gserviceaccount.com', | 45 'findit-for-me@appspot.gserviceaccount.com', |
| 42 ] | 46 ] |
| 43 | 47 |
| 44 | 48 |
| 45 # Directory of html templates. | 49 # Directory of html templates. |
| 46 HTML_TEMPLATE_DIR = os.path.realpath( | 50 HTML_TEMPLATE_DIR = os.path.realpath( |
| 47 os.path.join(os.path.dirname(__file__), os.path.pardir, 'templates')) | 51 os.path.join(os.path.dirname(__file__), os.path.pardir, 'templates')) |
| OLD | NEW |