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

Unified Diff: appengine/findit/model/crash/crash_config.py

Issue 1914113002: [Findit] Enable project classifier and component classifier (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Address comments. Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/model/crash/crash_config.py
diff --git a/appengine/findit/model/crash/crash_config.py b/appengine/findit/model/crash/crash_config.py
index 20e6c7a3558caa0a51d6cc4b5ecb29c9276b9ca7..243f17d5a60875ea482a7f2d9648af3de21d7444 100644
--- a/appengine/findit/model/crash/crash_config.py
+++ b/appengine/findit/model/crash/crash_config.py
@@ -19,3 +19,58 @@ class CrashConfig(VersionedConfig):
# },
# }
fracas = ndb.JsonProperty(indexed=False, default={})
+
+ ################## Settings shared by Fracas/Clusterfuzz. ##################
+ # Project classifier settings:
+ # {
+ # 'host_directories': [
stgao 2016/05/17 21:40:58 Use " instead of '.
Sharu Jiang 2016/05/20 23:16:33 Done.
+ # 'src/chrome/browser/resources/',
+ # 'src/chrome/test/data/layout_tests/',
+ # 'src/media/',
+ # 'src/sdch/',
+ # 'src/testing/',
+ # 'src/third_party/WebKit/',
+ # 'src/third_party/',
+ # 'src/tools/',
+ # 'src/'
+ # ],
+ # # Where there is no dep_path found, use function and file_path makers to
+ # # map a Result or StackFrame to a project name.
+ # "function_marker_to_project_name": {
stgao 2016/05/17 21:40:58 indent?
Sharu Jiang 2016/05/20 23:16:33 Done.
+ # "org.chromium": 'chromium',
+ # "com.google.android.apps.chrome": "clank",
+ # "android.": "android_os",
+ # "com.android.": "android_os",
+ # },
+ # "file_path_marker_to_project_name": {
+ # ("https___googleplex-android.googlesource."
+ # "com_a_platform_manifest.git/"): "android_os",
+ # "googleplex-android/": "android_os",
+ # },
+ #
+ # # Number of frames on top to consider when deciding the crashed project.
+ # "top_n": 4,
+ #
+ # # The chromium project should always have the highest rank priority (0).
+ # # This dict assigns rank priorities to non chromium projects.
+ # "non_chromium_project_rank_priority" = {
+ # 'clank': -1,
+ # 'android_os': -2,
+ # 'android_os_java': -2,
+ # 'src_internal': -3,
+ # 'others': -4,
+ # }
+ # }
+ project_classifier = ndb.JsonProperty(indexed=False, default={})
+
+ # Component classifier settings:
+ # {
+ # # Number of frames on top to consider when deciding the crashed
+ # #component.
+ # "top_n": 4,
+ # "path_function_component": [
+ # (r'src/third_party/WebKit/Source/core/layout', , 'Blink>Layout'),
+ # ...
+ # ]
+ # }
+ 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.

Powered by Google App Engine
This is Rietveld 408576698