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

Side by Side Diff: appengine/findit/main.py

Issue 1852383002: [Findit] Integrate with Fracas through Pub/Sub. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Just rebase. 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import endpoints 5 import endpoints
6 import webapp2 6 import webapp2
7 7
8 from common.pipeline_wrapper import pipeline_handlers 8 from common.pipeline_wrapper import pipeline_handlers
9 from common.pipeline_wrapper import pipeline_status_ui 9 from common.pipeline_wrapper import pipeline_status_ui
10 from findit_api import FindItApi 10 from findit_api import FindItApi
11 from handlers import build_failure 11 from handlers import build_failure
12 from handlers import check_duplicate_failures 12 from handlers import check_duplicate_failures
13 from handlers import config 13 from handlers import config
14 from handlers import failure_log 14 from handlers import failure_log
15 from handlers import help_triage 15 from handlers import help_triage
16 from handlers import list_analyses 16 from handlers import list_analyses
17 from handlers import monitor_alerts 17 from handlers import monitor_alerts
18 from handlers import swarming_task 18 from handlers import swarming_task
19 from handlers import triage_analysis 19 from handlers import triage_analysis
20 from handlers import trigger_analyses 20 from handlers import trigger_analyses
21 from handlers import try_job 21 from handlers import try_job
22 from handlers import try_job_result 22 from handlers import try_job_result
23 from handlers import verify_analysis 23 from handlers import verify_analysis
24 from handlers import version 24 from handlers import version
25 from handlers.crash import crash_config
26 from handlers.crash import fracas_crash
25 27
26 28
27 # This is for the default module. 29 # Default module.
28 default_web_pages_handler_mappings = [ 30 default_web_pages_handler_mappings = [
29 ('/version', version.Version), 31 ('/version', version.Version),
30 ] 32 ]
31 default_web_application = webapp2.WSGIApplication( 33 default_web_application = webapp2.WSGIApplication(
32 default_web_pages_handler_mappings, debug=False) 34 default_web_pages_handler_mappings, debug=False)
33 35
34 36
35 # This is for Cloud Endpoint apis in the default module. 37 # Cloud Endpoint apis in the default module.
36 api_application = endpoints.api_server([FindItApi]) 38 api_application = endpoints.api_server([FindItApi])
37 39
38 40
39 # This is for appengine pipeline status pages in the default module. 41 # App Engine pipeline status pages in the default module.
40 pipeline_status_handler_mappings = [ 42 pipeline_status_handler_mappings = [
41 ('/_ah/pipeline/rpc/tree', pipeline_status_ui._TreeStatusHandler), 43 ('/_ah/pipeline/rpc/tree', pipeline_status_ui._TreeStatusHandler),
42 ('/_ah/pipeline/rpc/class_paths', pipeline_status_ui._ClassPathListHandler), 44 ('/_ah/pipeline/rpc/class_paths', pipeline_status_ui._ClassPathListHandler),
43 ('/_ah/pipeline/rpc/list', pipeline_status_ui._RootListHandler), 45 ('/_ah/pipeline/rpc/list', pipeline_status_ui._RootListHandler),
44 ('/_ah/pipeline(/.+)', pipeline_status_ui._StatusUiHandler), 46 ('/_ah/pipeline(/.+)', pipeline_status_ui._StatusUiHandler),
45 ] 47 ]
46 pipeline_status_application = webapp2.WSGIApplication( 48 pipeline_status_application = webapp2.WSGIApplication(
47 pipeline_status_handler_mappings, debug=False) 49 pipeline_status_handler_mappings, debug=False)
48 50
49 51
50 # For appengine pipeline running on backend modules. 52 # For appengine pipeline running on backend modules.
51 pipeline_backend_application = pipeline_handlers._APP 53 pipeline_backend_application = pipeline_handlers._APP
52 54
53 55
54 # This is for the "waterfall-frontend" module. 56 # "waterfall-frontend" module.
55 waterfall_frontend_web_pages_handler_mappings = [ 57 waterfall_frontend_web_pages_handler_mappings = [
56 ('/build-failure', build_failure.BuildFailure), 58 ('/build-failure', build_failure.BuildFailure),
57 ('/list-analyses', list_analyses.ListAnalyses), 59 ('/list-analyses', list_analyses.ListAnalyses),
58 ('/waterfall/build-failure', build_failure.BuildFailure), 60 ('/waterfall/build-failure', build_failure.BuildFailure),
59 ('/waterfall/check-duplicate-failures', 61 ('/waterfall/check-duplicate-failures',
60 check_duplicate_failures.CheckDuplicateFailures), 62 check_duplicate_failures.CheckDuplicateFailures),
61 ('/waterfall/config', config.Configuration), 63 ('/waterfall/config', config.Configuration),
62 ('/waterfall/failure-log', failure_log.FailureLog), 64 ('/waterfall/failure-log', failure_log.FailureLog),
63 ('/waterfall/help-triage', help_triage.HelpTriage), 65 ('/waterfall/help-triage', help_triage.HelpTriage),
64 ('/waterfall/list-analyses', list_analyses.ListAnalyses), 66 ('/waterfall/list-analyses', list_analyses.ListAnalyses),
65 ('/waterfall/monitor-alerts', monitor_alerts.MonitorAlerts), 67 ('/waterfall/monitor-alerts', monitor_alerts.MonitorAlerts),
66 ('/waterfall/swarming-task', swarming_task.SwarmingTask), 68 ('/waterfall/swarming-task', swarming_task.SwarmingTask),
67 ('/waterfall/triage-analysis', triage_analysis.TriageAnalysis), 69 ('/waterfall/triage-analysis', triage_analysis.TriageAnalysis),
68 ('/waterfall/try-job', try_job.TryJob), 70 ('/waterfall/try-job', try_job.TryJob),
69 ('/waterfall/try-job-result', try_job_result.TryJobResult), 71 ('/waterfall/try-job-result', try_job_result.TryJobResult),
70 ('/waterfall/verify-analysis', verify_analysis.VerifyAnalysis), 72 ('/waterfall/verify-analysis', verify_analysis.VerifyAnalysis),
71 ] 73 ]
72 waterfall_frontend_web_application = webapp2.WSGIApplication( 74 waterfall_frontend_web_application = webapp2.WSGIApplication(
73 waterfall_frontend_web_pages_handler_mappings, debug=False) 75 waterfall_frontend_web_pages_handler_mappings, debug=False)
74 76
75 77
76 # This is for the "waterfall-backend" module. 78 # "waterfall-backend" module.
77 waterfall_backend_web_pages_handler_mappings = [ 79 waterfall_backend_web_pages_handler_mappings = [
78 ('/waterfall/trigger-analyses', trigger_analyses.TriggerAnalyses), 80 ('/waterfall/trigger-analyses', trigger_analyses.TriggerAnalyses),
79 ] 81 ]
80 waterfall_backend_web_application = webapp2.WSGIApplication( 82 waterfall_backend_web_application = webapp2.WSGIApplication(
81 waterfall_backend_web_pages_handler_mappings, debug=False) 83 waterfall_backend_web_pages_handler_mappings, debug=False)
84
85 # "crash-frontend" module.
86 crash_frontend_web_pages_handler_mappings = [
87 ('/crash/config', crash_config.CrashConfig),
88 ('/crash/fracas', fracas_crash.FracasCrash),
89 ]
90 crash_frontend_web_application = webapp2.WSGIApplication(
91 crash_frontend_web_pages_handler_mappings, debug=False)
OLDNEW
« no previous file with comments | « appengine/findit/handlers/crash/test/fracas_crash_test.py ('k') | appengine/findit/model/crash/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698