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

Unified Diff: appengine/findit/model/base_swarming_task.py

Issue 2124973003: These are the database objects used while finding the regression range. 1/3 (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: added init Created 4 years, 5 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
« no previous file with comments | « appengine/findit/model/base_analysis.py ('k') | appengine/findit/model/flake/flake_swarming_task.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/model/base_swarming_task.py
diff --git a/appengine/findit/model/base_swarming_task.py b/appengine/findit/model/base_swarming_task.py
new file mode 100644
index 0000000000000000000000000000000000000000..d74c9851e0161ec9d64bc23590cf610b4a21ba18
--- /dev/null
+++ b/appengine/findit/model/base_swarming_task.py
@@ -0,0 +1,33 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from google.appengine.ext import ndb
+
+from model import analysis_status
+
+class BaseSwarmingTask(ndb.Model):
+ """Represents the progress of a general swarming task."""
+ # The id of the Swarming task scheduled or running on Swarming Server.
+ task_id = ndb.StringProperty(indexed=True)
+
+ # A dict to keep track of running information for each test:
+ # number of total runs, number of each status (such as 'SUCCESS' or 'FAILED')
+ tests_statuses = ndb.JsonProperty(indexed=False, compressed=True)
+
+ # The status of the swarming task.
+ status = ndb.IntegerProperty(
+ default=analysis_status.PENDING, indexed=False)
+
+ # The revision of the failed build.
+ build_revision = ndb.StringProperty(indexed=False)
+
+ # Time when the task is created.
+ created_time = ndb.DateTimeProperty(indexed=True)
+ # Time when the task is started.
+ started_time = ndb.DateTimeProperty(indexed=False)
+ # Time when the task is completed.
+ completed_time = ndb.DateTimeProperty(indexed=False)
+
+ # parameters need to be stored and analyzed later.
+ parameters = ndb.JsonProperty(default={}, indexed=False, compressed=True)
« no previous file with comments | « appengine/findit/model/base_analysis.py ('k') | appengine/findit/model/flake/flake_swarming_task.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698