Chromium Code Reviews| 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 """Findit for crash (ClusterFuzz & Fracas/Chromecrash) configuration.""" | 5 """Findit for crash (ClusterFuzz & Fracas/Chromecrash) configuration.""" |
| 6 | 6 |
| 7 from google.appengine.ext import ndb | 7 from google.appengine.ext import ndb |
| 8 | 8 |
| 9 from model.versioned_config import VersionedConfig | 9 from model.versioned_config import VersionedConfig |
| 10 | 10 |
| 11 | 11 |
| 12 class CrashConfig(VersionedConfig): | 12 class CrashConfig(VersionedConfig): |
| 13 """Global configuration of settings for processing Chrome crashes.""" | 13 """Global configuration of settings for processing Chrome crashes.""" |
| 14 # Fracas-specific parameters. | 14 # Fracas-specific parameters. |
| 15 # { | 15 # { |
| 16 # "analysis_result_pubsub_topic": "projects/project-name/topics/name", | 16 # "analysis_result_pubsub_topic": "projects/project-name/topics/name", |
| 17 # "supported_platform_list_by_channel": { | 17 # "supported_platform_list_by_channel": { |
| 18 # "canary": ["win", "mac"], | 18 # "canary": ["win", "mac"], |
| 19 # }, | 19 # }, |
| 20 # } | 20 # } |
| 21 fracas = ndb.JsonProperty(indexed=False, default={}) | 21 fracas = ndb.JsonProperty(indexed=False, default={}) |
| 22 | |
| 23 ################## Settings shared by Fracas/Clusterfuzz. ################## | |
| 24 # Project classifier settings: | |
| 25 # { | |
| 26 # 'host_directories': [ | |
|
stgao
2016/05/17 21:40:58
Use " instead of '.
Sharu Jiang
2016/05/20 23:16:33
Done.
| |
| 27 # 'src/chrome/browser/resources/', | |
| 28 # 'src/chrome/test/data/layout_tests/', | |
| 29 # 'src/media/', | |
| 30 # 'src/sdch/', | |
| 31 # 'src/testing/', | |
| 32 # 'src/third_party/WebKit/', | |
| 33 # 'src/third_party/', | |
| 34 # 'src/tools/', | |
| 35 # 'src/' | |
| 36 # ], | |
| 37 # # Where there is no dep_path found, use function and file_path makers to | |
| 38 # # map a Result or StackFrame to a project name. | |
| 39 # "function_marker_to_project_name": { | |
|
stgao
2016/05/17 21:40:58
indent?
Sharu Jiang
2016/05/20 23:16:33
Done.
| |
| 40 # "org.chromium": 'chromium', | |
| 41 # "com.google.android.apps.chrome": "clank", | |
| 42 # "android.": "android_os", | |
| 43 # "com.android.": "android_os", | |
| 44 # }, | |
| 45 # "file_path_marker_to_project_name": { | |
| 46 # ("https___googleplex-android.googlesource." | |
| 47 # "com_a_platform_manifest.git/"): "android_os", | |
| 48 # "googleplex-android/": "android_os", | |
| 49 # }, | |
| 50 # | |
| 51 # # Number of frames on top to consider when deciding the crashed project. | |
| 52 # "top_n": 4, | |
| 53 # | |
| 54 # # The chromium project should always have the highest rank priority (0). | |
| 55 # # This dict assigns rank priorities to non chromium projects. | |
| 56 # "non_chromium_project_rank_priority" = { | |
| 57 # 'clank': -1, | |
| 58 # 'android_os': -2, | |
| 59 # 'android_os_java': -2, | |
| 60 # 'src_internal': -3, | |
| 61 # 'others': -4, | |
| 62 # } | |
| 63 # } | |
| 64 project_classifier = ndb.JsonProperty(indexed=False, default={}) | |
| 65 | |
| 66 # Component classifier settings: | |
| 67 # { | |
| 68 # # Number of frames on top to consider when deciding the crashed | |
| 69 # #component. | |
| 70 # "top_n": 4, | |
| 71 # "path_function_component": [ | |
| 72 # (r'src/third_party/WebKit/Source/core/layout', , 'Blink>Layout'), | |
| 73 # ... | |
| 74 # ] | |
| 75 # } | |
| 76 component_classifier = ndb.JsonProperty(indexed=False, default={}) | |
|
stgao
2016/05/17 21:40:58
Should we use gzip compress here? As the mapping w
Sharu Jiang
2016/05/20 23:16:33
Done.
| |
| OLD | NEW |