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

Side by Side Diff: appengine/findit/model/wf_analysis.py

Issue 1912483004: [Findit] Add failure type to dashboard. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . 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 from google.appengine.ext import ndb 5 from google.appengine.ext import ndb
6 6
7 from common import constants 7 from common import constants
8 from common.waterfall import failure_type 8 from common.waterfall import failure_type
9 from model.base_build_model import BaseBuildModel 9 from model.base_build_model import BaseBuildModel
10 from model import analysis_status 10 from model import analysis_status
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 return failure_type.UNKNOWN 104 return failure_type.UNKNOWN
105 105
106 for step_result in step_failures: 106 for step_result in step_failures:
107 if step_result['step_name'] == constants.COMPILE_STEP_NAME: 107 if step_result['step_name'] == constants.COMPILE_STEP_NAME:
108 return failure_type.COMPILE 108 return failure_type.COMPILE
109 109
110 # Although the failed steps could be infra setup steps like "bot_update", 110 # Although the failed steps could be infra setup steps like "bot_update",
111 # for legacy data we just assume all of them are tests if not compile. 111 # for legacy data we just assume all of them are tests if not compile.
112 return failure_type.TEST 112 return failure_type.TEST
113 113
114 @property
115 def failure_type_str(self):
116 return failure_type.GetDescriptionForFailureType(self.failure_type)
117
114 # When the build cycle started. 118 # When the build cycle started.
115 build_start_time = ndb.DateTimeProperty(indexed=True) 119 build_start_time = ndb.DateTimeProperty(indexed=True)
116 # Whether the build cycle has completed. 120 # Whether the build cycle has completed.
117 build_completed = ndb.BooleanProperty(indexed=False) 121 build_completed = ndb.BooleanProperty(indexed=False)
118 # Whether it is a compile failure, test failure, infra failure or others. 122 # Whether it is a compile failure, test failure, infra failure or others.
119 # Refer to common/waterfall/failure_type.py for all the failure types. 123 # Refer to common/waterfall/failure_type.py for all the failure types.
120 build_failure_type = ndb.IntegerProperty(indexed=False) 124 build_failure_type = ndb.IntegerProperty(indexed=False)
121 125
122 # The url path to the pipeline status page. 126 # The url path to the pipeline status page.
123 pipeline_status_path = ndb.StringProperty(indexed=False) 127 pipeline_status_path = ndb.StringProperty(indexed=False)
(...skipping 18 matching lines...) Expand all
142 suspected_cls = ndb.JsonProperty(indexed=False, compressed=True) 146 suspected_cls = ndb.JsonProperty(indexed=False, compressed=True)
143 # Record the id of try job results of each failure. 147 # Record the id of try job results of each failure.
144 failure_result_map = ndb.JsonProperty(indexed=False, compressed=True) 148 failure_result_map = ndb.JsonProperty(indexed=False, compressed=True)
145 149
146 # The actual culprit CLs that are responsible for the failures. 150 # The actual culprit CLs that are responsible for the failures.
147 culprit_cls = ndb.JsonProperty(indexed=False, compressed=True) 151 culprit_cls = ndb.JsonProperty(indexed=False, compressed=True)
148 # Conclusion of analysis result for the build failure: 'Found' or 'Not Found'. 152 # Conclusion of analysis result for the build failure: 'Found' or 'Not Found'.
149 result_status = ndb.IntegerProperty(indexed=True) 153 result_status = ndb.IntegerProperty(indexed=True)
150 # Record the history of triage. 154 # Record the history of triage.
151 triage_history = ndb.JsonProperty(indexed=False, compressed=True) 155 triage_history = ndb.JsonProperty(indexed=False, compressed=True)
OLDNEW
« no previous file with comments | « appengine/findit/model/test/wf_analysis_test.py ('k') | appengine/findit/templates/list_analyses.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698