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

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

Issue 1926473002: [Findit] Adding new fields to try job metadata and updating as soon as possible (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Addressing 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 unified diff | Download patch
« no previous file with comments | « no previous file | appengine/findit/waterfall/monitor_try_job_pipeline.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 from google.appengine.ext import ndb 5 from google.appengine.ext import ndb
6 6
7 7
8 class WfTryJobData(ndb.Model): 8 class WfTryJobData(ndb.Model):
9 """Represents a tryjob's data for a completed try job.""" 9 """Represents a tryjob's data for a completed try job."""
10 # The original master on which the build was detected to have failed. 10 # The original master on which the build was detected to have failed.
(...skipping 17 matching lines...) Expand all
28 # Culprit(s) determined to have caused the failure, if any. 28 # Culprit(s) determined to have caused the failure, if any.
29 culprits = ndb.JsonProperty(indexed=False) 29 culprits = ndb.JsonProperty(indexed=False)
30 # The url to the try job build page. 30 # The url to the try job build page.
31 try_job_url = ndb.StringProperty(indexed=False) 31 try_job_url = ndb.StringProperty(indexed=False)
32 # Error message and reason, if any. 32 # Error message and reason, if any.
33 error = ndb.JsonProperty(indexed=False) 33 error = ndb.JsonProperty(indexed=False)
34 # Error code if anything went wrong with the try job. 34 # Error code if anything went wrong with the try job.
35 error_code = ndb.IntegerProperty(indexed=True) 35 error_code = ndb.IntegerProperty(indexed=True)
36 # The last buildbucket build response received. 36 # The last buildbucket build response received.
37 last_buildbucket_response = ndb.JsonProperty(indexed=False, compressed=True) 37 last_buildbucket_response = ndb.JsonProperty(indexed=False, compressed=True)
38 # Whether or not the try job had compile targets passed (compile only).
39 has_compile_targets = ndb.BooleanProperty(indexed=True)
40 # Whether or not the try job had heuristic results to guide it.
41 has_heuristic_results = ndb.BooleanProperty(indexed=True)
38 42
39 @staticmethod 43 @staticmethod
40 def _CreateKey(build_id): # pragma: no cover 44 def _CreateKey(build_id): # pragma: no cover
41 return ndb.Key('WfTryJobData', build_id) 45 return ndb.Key('WfTryJobData', build_id)
42 46
43 @staticmethod 47 @staticmethod
44 def Create(build_id): # pragma: no cover 48 def Create(build_id): # pragma: no cover
45 return WfTryJobData(key=WfTryJobData._CreateKey(build_id)) 49 return WfTryJobData(key=WfTryJobData._CreateKey(build_id))
46 50
47 @staticmethod 51 @staticmethod
48 def Get(build_id): # pragma: no cover 52 def Get(build_id): # pragma: no cover
49 return WfTryJobData._CreateKey(build_id).get() 53 return WfTryJobData._CreateKey(build_id).get()
50 54
OLDNEW
« no previous file with comments | « no previous file | appengine/findit/waterfall/monitor_try_job_pipeline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698