Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 138 updated_time = ndb.DateTimeProperty(indexed=False, auto_now=True) | 138 updated_time = ndb.DateTimeProperty(indexed=False, auto_now=True) |
| 139 # Record which version of analysis. | 139 # Record which version of analysis. |
| 140 version = ndb.StringProperty(indexed=False) | 140 version = ndb.StringProperty(indexed=False) |
| 141 | 141 |
| 142 # Analysis result for the build failure. | 142 # Analysis result for the build failure. |
| 143 not_passed_steps = ndb.StringProperty(indexed=False, repeated=True) | 143 not_passed_steps = ndb.StringProperty(indexed=False, repeated=True) |
| 144 result = ndb.JsonProperty(indexed=False, compressed=True) | 144 result = ndb.JsonProperty(indexed=False, compressed=True) |
| 145 # Suspected CLs we found. | 145 # Suspected CLs we found. |
| 146 suspected_cls = ndb.JsonProperty(indexed=False, compressed=True) | 146 suspected_cls = ndb.JsonProperty(indexed=False, compressed=True) |
| 147 # Record the id of try job results of each failure. | 147 # Record the id of try job results of each failure. |
| 148 failure_result_map = ndb.JsonProperty(indexed=False, compressed=True) | 148 failure_result_map = ndb.JsonProperty(indexed=False, compressed=True, |
| 149 default={}) | |
|
stgao
2016/07/12 20:26:52
This possible pitfall might cause unexpected behav
chanli
2016/07/12 20:41:19
Done.
| |
| 149 | 150 |
| 150 # The actual culprit CLs that are responsible for the failures. | 151 # The actual culprit CLs that are responsible for the failures. |
| 151 culprit_cls = ndb.JsonProperty(indexed=False, compressed=True) | 152 culprit_cls = ndb.JsonProperty(indexed=False, compressed=True) |
| 152 # Conclusion of analysis result for the build failure: 'Found' or 'Not Found'. | 153 # Conclusion of analysis result for the build failure: 'Found' or 'Not Found'. |
| 153 result_status = ndb.IntegerProperty(indexed=True) | 154 result_status = ndb.IntegerProperty(indexed=True) |
| 154 # Record the history of triage. | 155 # Record the history of triage. |
| 155 triage_history = ndb.JsonProperty(indexed=False, compressed=True) | 156 triage_history = ndb.JsonProperty(indexed=False, compressed=True) |
| OLD | NEW |