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

Unified Diff: frontend/planner/models.py

Issue 1595019: Merge remote branch 'origin/upstream' into tempbranch (Closed)
Patch Set: Created 10 years, 8 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 | « frontend/planner/failure_actions.py ('k') | frontend/planner/rpc_interface.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frontend/planner/models.py
diff --git a/frontend/planner/models.py b/frontend/planner/models.py
index f69aa2808795c721828651396d5fdabeca37730a..0b58e79d07770fa01d914dd42873247761fc77ea 100644
--- a/frontend/planner/models.py
+++ b/frontend/planner/models.py
@@ -19,7 +19,7 @@ class Plan(dbmodels.Model, model_logic.ModelExtensions):
Optional:
label_override: A label to apply to each Autotest job.
- support: The global support object to apply to this plan
+ support: The global support script to apply to this plan
"""
name = dbmodels.CharField(max_length=255, unique=True)
label_override = dbmodels.CharField(max_length=255, null=True, blank=True)
@@ -127,7 +127,7 @@ class ControlFile(model_logic.ModelWithHash,
class TestConfig(ModelWithPlan, model_logic.ModelExtensions):
- """A planned test
+ """A configuration for a planned test
Required:
alias: The name to give this test within the plan. Unique with plan id
@@ -138,12 +138,15 @@ class TestConfig(ModelWithPlan, model_logic.ModelExtensions):
estimated_runtime: Time in hours that the test is expected to run. Will
be automatically generated (on the frontend) for
tests in Autotest.
+ skipped_hosts: Hosts that are going to skip this test.
"""
alias = dbmodels.CharField(max_length=255)
control_file = dbmodels.ForeignKey(ControlFile)
is_server = dbmodels.BooleanField(default=True)
execution_order = dbmodels.IntegerField(blank=True)
estimated_runtime = dbmodels.IntegerField()
+ skipped_hosts = dbmodels.ManyToManyField(
+ afe_models.Host, db_table='planner_test_configs_skipped_hosts')
class Meta:
db_table = 'planner_test_configs'
@@ -164,6 +167,7 @@ class Job(ModelWithPlan, model_logic.ModelExtensions):
"""
test_config = dbmodels.ForeignKey(TestConfig)
afe_job = dbmodels.ForeignKey(afe_models.Job)
+ requires_rerun = dbmodels.BooleanField(default=False)
class Meta:
db_table = 'planner_test_jobs'
@@ -219,6 +223,7 @@ class TestRun(ModelWithPlan, model_logic.ModelExtensions):
finalized = dbmodels.BooleanField(default=False)
seen = dbmodels.BooleanField(default=False)
triaged = dbmodels.BooleanField(default=False)
+ invalidated = dbmodels.BooleanField(default=False)
bugs = dbmodels.ManyToManyField(Bug, null=True,
db_table='planner_test_run_bugs')
« no previous file with comments | « frontend/planner/failure_actions.py ('k') | frontend/planner/rpc_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698