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

Side by Side Diff: appengine/findit/model/flake/master_flake_analysis.py

Issue 2597373002: [Findit] Flake checker: Get full build info for each flake build analyzed (Closed)
Patch Set: Removing incorrect line Created 3 years, 11 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/build_util.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 import base64 5 import base64
6 6
7 from google.appengine.ext import ndb 7 from google.appengine.ext import ndb
8 8
9 from gae_libs.model.versioned_model import VersionedModel 9 from gae_libs.model.versioned_model import VersionedModel
10 from model import result_status 10 from model import result_status
11 from model import triage_status 11 from model import triage_status
12 from model.base_analysis import BaseAnalysis 12 from model.base_analysis import BaseAnalysis
13 from model.base_build_model import BaseBuildModel 13 from model.base_build_model import BaseBuildModel
14 from model.base_triaged_model import TriagedModel 14 from model.base_triaged_model import TriagedModel
15 from model.flake.flake_swarming_task import FlakeSwarmingTaskData 15 from model.flake.flake_swarming_task import FlakeSwarmingTaskData
16 16
17 17
18 class DataPoint(ndb.Model): 18 class DataPoint(ndb.Model):
19 build_number = ndb.IntegerProperty(indexed=False) 19 build_number = ndb.IntegerProperty(indexed=False)
20 pass_rate = ndb.FloatProperty(indexed=False) 20 pass_rate = ndb.FloatProperty(indexed=False)
21 task_id = ndb.StringProperty(indexed=False) 21 task_id = ndb.StringProperty(indexed=False)
22 commit_position = ndb.IntegerProperty(indexed=False) 22 commit_position = ndb.IntegerProperty(indexed=False)
23 git_hash = ndb.StringProperty(indexed=False) 23 git_hash = ndb.StringProperty(indexed=False)
24 previous_build_commit_position = ndb.IntegerProperty(indexed=False) 24 previous_build_commit_position = ndb.IntegerProperty(indexed=False)
25 previous_build_git_hash = ndb.StringProperty(indexed=False) 25 previous_build_git_hash = ndb.StringProperty(indexed=False)
26 blame_list = ndb.StringProperty(repeated=True)
26 27
27 28
28 class MasterFlakeAnalysis( 29 class MasterFlakeAnalysis(
29 BaseAnalysis, BaseBuildModel, VersionedModel, TriagedModel): 30 BaseAnalysis, BaseBuildModel, VersionedModel, TriagedModel):
30 """Represents an analysis of a flaky test on a Waterfall test cycle.""" 31 """Represents an analysis of a flaky test on a Waterfall test cycle."""
31 32
32 @ndb.ComputedProperty 33 @ndb.ComputedProperty
33 def step_name(self): 34 def step_name(self):
34 return self.key.pairs()[0][1].split('/')[3] 35 return self.key.pairs()[0][1].split('/')[3]
35 36
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 # Findit's automatic analysis upon detection, or Findit API. 166 # Findit's automatic analysis upon detection, or Findit API.
166 triggering_source = ndb.IntegerProperty(default=None, indexed=True) 167 triggering_source = ndb.IntegerProperty(default=None, indexed=True)
167 168
168 # Who triggered the analysis. Used for differentiating between manual and 169 # Who triggered the analysis. Used for differentiating between manual and
169 # automatic runs, and determining the most active users to gather feedback. 170 # automatic runs, and determining the most active users to gather feedback.
170 triggering_user_email = ndb.StringProperty(default=None, indexed=False) 171 triggering_user_email = ndb.StringProperty(default=None, indexed=False)
171 172
172 # Overall conclusion of analysis result for the flake. Found untriaged, Found 173 # Overall conclusion of analysis result for the flake. Found untriaged, Found
173 # Correct, etc. used to filter what is displayed on the check flake dashboard. 174 # Correct, etc. used to filter what is displayed on the check flake dashboard.
174 result_status = ndb.IntegerProperty(indexed=True) 175 result_status = ndb.IntegerProperty(indexed=True)
OLDNEW
« no previous file with comments | « no previous file | appengine/findit/waterfall/build_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698