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

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

Issue 2345093002: [Findit] Extending versioned_model.py to support versioning multiple entities of the same class. (Closed)
Patch Set: Ignore this patch, uploaded unrelated change to wrong branch Created 4 years, 3 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/flake_swarming_task.py
diff --git a/appengine/findit/model/flake/flake_swarming_task.py b/appengine/findit/model/flake/flake_swarming_task.py
index 8c4f7803d2483d0db89d8ad84184de7c777188a5..ea1c8f334e6232d8504f801627901f4f4ba2dabc 100644
--- a/appengine/findit/model/flake/flake_swarming_task.py
+++ b/appengine/findit/model/flake/flake_swarming_task.py
@@ -55,6 +55,16 @@ class FlakeSwarmingTask(BaseSwarmingTask, BaseBuildModel):
return FlakeSwarmingTask._CreateKey(
master_name, builder_name, build_number, step_name, test_name).get()
+ def ResultsToDict(self):
+ return {
+ 'created_time': self.created_time,
+ 'started_time': self.started_time,
+ 'completed_time': self.completed_time,
+ 'build_number': self.build_number,
+ 'number_of_iterations': self.tries,
+ 'number_of_passes': self.successes
+ }
+
# Number of runs the test passed.
successes = ndb.IntegerProperty(default=0, indexed=False)
# How many times the test was rerun.
« no previous file with comments | « appengine/findit/handlers/flake/test/check_flake_test.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