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

Unified Diff: appengine/findit/model/flake/master_flake_analysis.py

Issue 2438673004: [Findit] Post analysis results of flakes to bug filed by chromium-try-flakes. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/model/flake/master_flake_analysis.py
diff --git a/appengine/findit/model/flake/master_flake_analysis.py b/appengine/findit/model/flake/master_flake_analysis.py
index fde544cd7eb65a721c2702a44e4ce5c7b747a25d..db00d898d3d672ce99b12c93f99086e910c69af9 100644
--- a/appengine/findit/model/flake/master_flake_analysis.py
+++ b/appengine/findit/model/flake/master_flake_analysis.py
@@ -67,6 +67,12 @@ class MasterFlakeAnalysis(BaseAnalysis, BaseBuildModel, VersionedModel):
def Reset(self):
super(MasterFlakeAnalysis, self).Reset()
+ self.original_master_name = None
+ self.original_builder_name = None
+ self.original_build_number = None
+ self.original_step_name = None
+ self.original_test_name = None
+ self.bug_id = None
self.swarming_rerun_results = []
self.error = None
self.correct_regression_range = None
@@ -75,6 +81,18 @@ class MasterFlakeAnalysis(BaseAnalysis, BaseBuildModel, VersionedModel):
self.suspected_flake_build_number = None
self.data_points = []
+ # The original build/step/test in which a flake actually occurred.
+ # A CQ trybot step has to be mapped to a Waterfall buildbot step.
+ # A gtest suite.PRE_PRE_test has to be normalized to suite.test.
+ original_master_name = ndb.StringProperty(indexed=True)
+ original_builder_name = ndb.StringProperty(indexed=True)
+ original_build_number = ndb.IntegerProperty(indexed=True)
+ original_step_name = ndb.StringProperty(indexed=True)
+ original_test_name = ndb.StringProperty(indexed=True)
+
+ # The bug id in which this flake is reported.
+ bug_id = ndb.IntegerProperty(indexed=True)
+
# A list of dicts containing information about each swarming rerun's results
# that were involved in this analysis. The contents of this list will be used
# for metrics, such as the number of cache hits this analysis benefited from,

Powered by Google App Engine
This is Rietveld 408576698