guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Mathieu Othacehe
Date: Fri, 8 Sep 2017 15:16:18 -0400 (EDT)

branch: master
commit 0a84f0eda0b07bbaa0b38f9916d3be0a1e7acd3f
Author: Mathieu Othacehe <address@hidden>
Date:   Mon Jul 31 19:25:28 2017 +0200

    cuirass: Store new information in database to prepare new HTTP API
    integration.
    
    * bin/evaluate.in (fill-job): New procedure.
    (main): Use it to fill informations (nix-name, system) that will later be
    added to database.
    * doc/cuirass.texi (Database)[Derivation]: Add system and nix_name fields.
    (Database)[Builds]: Add id, status, timestamp, starttime and stoptime
    fields. Remove output field.
    (Database)[Outputs]: New table describing the build outputs.
    * src/cuirass/base.scm (build-packages): Add new fields to build object 
before
    adding it to database.
    * src/cuirass/database.scm (db-get-build, db-get-builds): New procedures to 
get
    a build by id from database and a list of builds using filter parameters
    respectively.
    * src/schema.sql (Outputs) : New table.
    (Derivations): Add system and nix_name columns.
    (Builds): Remove output column and add id, status, timestamp, starttime and
    stoptime columns.
---
 tests/database.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/database.scm b/tests/database.scm
index 46b245e..061ba76 100644
--- a/tests/database.scm
+++ b/tests/database.scm
@@ -82,7 +82,7 @@ INSERT INTO Evaluations (specification, revision) VALUES (3, 
3);")
     (let ((build `((#:derivation . "/foo.drv")
                    (#:eval-id . 42)
                    (#:log . "log")
-                   (#:output . "/foo"))))
+                   (#:outputs . (("foo" . "/foo"))))))
       (db-add-build (%db) build)
 
       ;; This should be idempotent, see <https://bugs.gnu.org/28094>.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]