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 import re | 7 import re |
8 | 8 |
9 from google.appengine.ext import ndb | 9 from google.appengine.ext import ndb |
10 | 10 |
11 from crash.type_enums import CrashClient | 11 from crash.type_enums import CrashClient |
12 from model.versioned_config import VersionedConfig | 12 from gae_libs.model.versioned_config import VersionedConfig |
13 | 13 |
14 | 14 |
15 class CrashConfig(VersionedConfig): | 15 class CrashConfig(VersionedConfig): |
16 """Global configuration of settings for processing Chrome crashes.""" | 16 """Global configuration of settings for processing Chrome crashes.""" |
17 | 17 |
18 def __init__(self, *args, **kargs): | 18 def __init__(self, *args, **kargs): |
19 super(CrashConfig, self).__init__(*args, **kargs) | 19 super(CrashConfig, self).__init__(*args, **kargs) |
20 self.cached_component_classifier = None | 20 self.cached_component_classifier = None |
21 | 21 |
22 # An example of fracas-specific parameters: | 22 # An example of fracas-specific parameters: |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 """Gets client specific config using client_id.""" | 131 """Gets client specific config using client_id.""" |
132 if client_id == CrashClient.FRACAS: | 132 if client_id == CrashClient.FRACAS: |
133 return self.fracas | 133 return self.fracas |
134 elif client_id == CrashClient.CRACAS: # pragma: no cover. | 134 elif client_id == CrashClient.CRACAS: # pragma: no cover. |
135 return self.cracas | 135 return self.cracas |
136 elif client_id == CrashClient.CLUSTERFUZZ: # pragma: no cover. | 136 elif client_id == CrashClient.CLUSTERFUZZ: # pragma: no cover. |
137 # TODO(katesonia): Add crash config of clusterfuzz. | 137 # TODO(katesonia): Add crash config of clusterfuzz. |
138 return None | 138 return None |
139 | 139 |
140 return None | 140 return None |
OLD | NEW |