[llvm-commits] [zorg] r146775 - in /zorg/trunk/lnt: docs/todo.rst lnt/server/db/testsuitedb.py
Daniel Dunbar
daniel at zuster.org
Fri Dec 16 15:14:53 PST 2011
Author: ddunbar
Date: Fri Dec 16 17:14:53 2011
New Revision: 146775
URL: http://llvm.org/viewvc/llvm-project?rev=146775&view=rev
Log:
[v0.4] lnt.server.db: Add a Run.ImportedFrom field intended to store the path to
the interchange file (when used), for future proofing purposes.
Modified:
zorg/trunk/lnt/docs/todo.rst
zorg/trunk/lnt/lnt/server/db/testsuitedb.py
Modified: zorg/trunk/lnt/docs/todo.rst
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/docs/todo.rst?rev=146775&r1=146774&r2=146775&view=diff
==============================================================================
--- zorg/trunk/lnt/docs/todo.rst (original)
+++ zorg/trunk/lnt/docs/todo.rst Fri Dec 16 17:14:53 2011
@@ -252,13 +252,19 @@
<TS>_Run
- ID INTEGER PRIMARY KEY
- Machine FOREIGN KEY <TS>_Machine(ID)
- - StartTime DATETIME
- - EndTime DATETIME
- Order FOREIGN KEY <TS>_Order(ID)
This is the order of the tested products. The schema doesn't explicitly
record any information about what the actual products under test are, though,
so we just refer to this as the "order" of the run.
+ - ImportedFrom VARCHAR(512)
+
+ Field used to store the filesystem path of the interchange file used to
+ import the run into the database. Mostly used for paranoid future proofing to
+ allow more sophisticated rebuild tools.
+
+ - StartTime DATETIME
+ - EndTime DATETIME
- ... additional keys here are defined by TestSuite(RunKeys) relation ...
Modified: zorg/trunk/lnt/lnt/server/db/testsuitedb.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/db/testsuitedb.py?rev=146775&r1=146774&r2=146775&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/db/testsuitedb.py (original)
+++ zorg/trunk/lnt/lnt/server/db/testsuitedb.py Fri Dec 16 17:14:53 2011
@@ -57,6 +57,7 @@
id = Column("ID", Integer, primary_key=True)
machine_id = Column("MachineID", Integer, ForeignKey(Machine.id))
order_id = Column("OrderID", Integer, ForeignKey(Order.id))
+ imported_from = Column("ImportedFrom", String(512))
start_time = Column("StartTime", DateTime)
end_time = Column("EndTime", DateTime)
parameters = Column("Parameters", Binary)
@@ -71,6 +72,7 @@
self.order = order
self.start_time = start_time
self.end_time = end_time
+ self.imported_from = None
def __repr__(self):
return '%s_%s%r' % (db_key_name, self.__class__.__name__,
More information about the llvm-commits
mailing list