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

Side by Side Diff: appengine/findit/model/flake/flake_analysis_request.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 from google.appengine.ext import ndb 5 from google.appengine.ext import ndb
6 6
7 from gae_libs.model.versioned_model import VersionedModel
7 from model.flake.master_flake_analysis import MasterFlakeAnalysis 8 from model.flake.master_flake_analysis import MasterFlakeAnalysis
8 from model.versioned_model import VersionedModel
9 9
10 10
11 class BuildStep(ndb.Model): 11 class BuildStep(ndb.Model):
12 """Represents a build step on Waterfall or Commit Queue. 12 """Represents a build step on Waterfall or Commit Queue.
13 13
14 For a build step on Commit Queue, the matching Waterfall build step could be 14 For a build step on Commit Queue, the matching Waterfall build step could be
15 added if found. 15 added if found.
16 """ 16 """
17 17
18 # The build step in which a flake actually occurred. 18 # The build step in which a flake actually occurred.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 self.is_step = other.is_step 131 self.is_step = other.is_step
132 self.bug_id = other.bug_id 132 self.bug_id = other.bug_id
133 self.user_emails = other.user_emails 133 self.user_emails = other.user_emails
134 self.build_steps = other.build_steps 134 self.build_steps = other.build_steps
135 self.analyses = other.analyses 135 self.analyses = other.analyses
136 136
137 @property 137 @property
138 def on_cq(self): 138 def on_cq(self):
139 """Returns True if the flake is on Commit Queue.""" 139 """Returns True if the flake is on Commit Queue."""
140 return any(step.on_cq for step in self.build_steps) 140 return any(step.on_cq for step in self.build_steps)
OLDNEW
« no previous file with comments | « appengine/findit/model/crash/crash_config.py ('k') | appengine/findit/model/flake/master_flake_analysis.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698