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

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

Issue 2043973002: [Findit] Fracas crash triage dashboard (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Surpass pylint errors. Created 4 years, 6 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
« no previous file with comments | « appengine/findit/main.py ('k') | appengine/findit/model/crash/fracas_crash_analysis.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/model/crash/crash_analysis.py
diff --git a/appengine/findit/model/crash/crash_analysis.py b/appengine/findit/model/crash/crash_analysis.py
index 236208d4354e8e691ba6a10ace4b78566a8e4121..4ae65cc0ee36303f095464282589ab9440331207 100644
--- a/appengine/findit/model/crash/crash_analysis.py
+++ b/appengine/findit/model/crash/crash_analysis.py
@@ -5,6 +5,7 @@
from google.appengine.ext import ndb
from model import analysis_status
+from model import triage_status
class CrashAnalysis(ndb.Model):
@@ -50,13 +51,38 @@ class CrashAnalysis(ndb.Model):
################### Properties for the analysis result. ###################
# Analysis results.
- result = ndb.JsonProperty(compressed=True, indexed=False)
+ result = ndb.JsonProperty(compressed=True, indexed=False, default={})
# Tags for query and monitoring.
has_regression_range = ndb.BooleanProperty(indexed=True)
found_suspects = ndb.BooleanProperty(indexed=True)
+ found_project = ndb.BooleanProperty(indexed=True)
+ found_components = ndb.BooleanProperty(indexed=True)
+
solution = ndb.StringProperty(indexed=True) # 'core', 'blame', etc.
+ # Triage results.
+ regression_range_triage_status = ndb.IntegerProperty(
+ indexed=True, default=triage_status.UNTRIAGED)
+ culprit_regression_range = ndb.JsonProperty(indexed=False, default=[])
+
+ suspected_cls_triage_status = ndb.IntegerProperty(
+ indexed=True, default=triage_status.UNTRIAGED)
+ culprit_cls = ndb.JsonProperty(indexed=False, default=[])
+
+ suspected_project_triage_status = ndb.IntegerProperty(
+ indexed=True, default=triage_status.UNTRIAGED)
+ culprit_project = ndb.JsonProperty(indexed=False, default='')
+
+ suspected_components_triage_status = ndb.IntegerProperty(
+ indexed=True, default=triage_status.UNTRIAGED)
+ culprit_components = ndb.JsonProperty(indexed=False, default=[])
+
+ triage_history = ndb.JsonProperty(indexed=False)
+
+ # Triage note.
+ note = ndb.StringProperty(indexed=False, default='')
+
def Reset(self):
self.pipeline_status_path = None
self.status = analysis_status.PENDING
@@ -67,6 +93,17 @@ class CrashAnalysis(ndb.Model):
self.has_regression_range = None
self.found_suspects = None
self.solution = None
+ self.result = {}
+ self.regression_range_triage_status = triage_status.UNTRIAGED
+ self.culprit_regression_range = []
+ self.suspected_cls_triage_status = triage_status.UNTRIAGED
+ self.culprit_cls = []
+ self.suspected_project_triage_status = triage_status.UNTRIAGED
+ self.culprit_project = ''
+ self.suspected_components_triage_status = triage_status.UNTRIAGED
+ self.culprit_components = []
+ self.triage_history = None
+ self.note = ''
@property
def completed(self):
« no previous file with comments | « appengine/findit/main.py ('k') | appengine/findit/model/crash/fracas_crash_analysis.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698