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

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

Issue 2488113005: [Findit] Re-org code. (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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 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 model import result_status 10 from model import result_status
10 from model import triage_status 11 from model import triage_status
11 from model.base_analysis import BaseAnalysis 12 from model.base_analysis import BaseAnalysis
12 from model.base_build_model import BaseBuildModel 13 from model.base_build_model import BaseBuildModel
13 from model.flake.flake_swarming_task import FlakeSwarmingTaskData 14 from model.flake.flake_swarming_task import FlakeSwarmingTaskData
14 from model.versioned_model import VersionedModel
15 from model.base_triaged_model import TriagedModel 15 from model.base_triaged_model import TriagedModel
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 21
22 22
23 class MasterFlakeAnalysis( 23 class MasterFlakeAnalysis(
24 BaseAnalysis, BaseBuildModel, VersionedModel, TriagedModel): 24 BaseAnalysis, BaseBuildModel, VersionedModel, TriagedModel):
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 # Findit's automatic analysis upon detection, or Findit API. 149 # Findit's automatic analysis upon detection, or Findit API.
150 triggering_source = ndb.IntegerProperty(default=None, indexed=True) 150 triggering_source = ndb.IntegerProperty(default=None, indexed=True)
151 151
152 # Who triggered the analysis. Used for differentiating between manual and 152 # Who triggered the analysis. Used for differentiating between manual and
153 # automatic runs, and determining the most active users to gather feedback. 153 # automatic runs, and determining the most active users to gather feedback.
154 triggering_user_email = ndb.StringProperty(default=None, indexed=False) 154 triggering_user_email = ndb.StringProperty(default=None, indexed=False)
155 155
156 # Overall conclusion of analysis result for the flake. Found untriaged, Found 156 # Overall conclusion of analysis result for the flake. Found untriaged, Found
157 # Correct, etc. used to filter what is displayed on the check flake dashboard. 157 # Correct, etc. used to filter what is displayed on the check flake dashboard.
158 result_status = ndb.IntegerProperty(indexed=True) 158 result_status = ndb.IntegerProperty(indexed=True)
OLDNEW
« no previous file with comments | « appengine/findit/model/flake/flake_analysis_request.py ('k') | appengine/findit/model/suspected_cl_confidence.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698