guix-commits
[Top][All Lists]
Advanced

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

branch master updated: ci: Add log and outputs keys.


From: guix-commits
Subject: branch master updated: ci: Add log and outputs keys.
Date: Thu, 01 Oct 2020 12:40:00 -0400

This is an automated email from the git hooks/post-receive script.

mothacehe pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new c5cf45e  ci: Add log and outputs keys.
c5cf45e is described below

commit c5cf45e9068e4c1f97f7357a3c051b2ad19f5e25
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Thu Oct 1 15:57:27 2020 +0200

    ci: Add log and outputs keys.
    
    Add 'log and 'outputs properties to hydra objects. This way Cuirass won't
    have to go through every derivation to add those properties.
    
    * gnu/ci.scm (package->alist, image-jobs, system-test-jobs, tarball-jobs): 
Add
    'log and 'outputs properties.
    * build-aux/hydra/guix-modular.scm (build-job): Ditto.
---
 build-aux/hydra/guix-modular.scm |  6 ++++++
 gnu/ci.scm                       | 24 ++++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/build-aux/hydra/guix-modular.scm b/build-aux/hydra/guix-modular.scm
index c70e9d8..060b84b 100644
--- a/build-aux/hydra/guix-modular.scm
+++ b/build-aux/hydra/guix-modular.scm
@@ -48,6 +48,12 @@ for SYSTEM.  Use VERSION as the version identifier."
                         #:pull-version 1
                         #:guile-version "2.2"))))
       `((derivation . ,(derivation-file-name drv)) ;the latest 2.2.x
+        (log . ,(log-file store (derivation-file-name drv)))
+        (outputs . ,(filter-map (lambda (res)
+                                  (match res
+                                    ((name . path)
+                                     `(,name . ,path))))
+                                (derivation->output-paths drv)))
         (nix-name . ,(derivation-name drv))
         (system . ,(derivation-system drv))
         (description . "Modular Guix")
diff --git a/gnu/ci.scm b/gnu/ci.scm
index c985cd6..fc35be8 100644
--- a/gnu/ci.scm
+++ b/gnu/ci.scm
@@ -78,6 +78,12 @@
     (let ((drv (package-derivation store package system
                                    #:graft? #f)))
       `((derivation . ,(derivation-file-name drv))
+        (log . ,(log-file store (derivation-file-name drv)))
+        (outputs . ,(filter-map (lambda (res)
+                                  (match res
+                                    ((name . path)
+                                     `(,name . ,path))))
+                                (derivation->output-paths drv)))
         (nix-name . ,(derivation-name drv))
         (system . ,(derivation-system drv))
         (description . ,(package-synopsis package))
@@ -203,6 +209,12 @@ SYSTEM."
   "Return a list of jobs that build images for SYSTEM."
   (define (->alist drv)
     `((derivation . ,(derivation-file-name drv))
+      (log . ,(log-file store (derivation-file-name drv)))
+      (outputs . ,(filter-map (lambda (res)
+                                (match res
+                                  ((name . path)
+                                   `(,name . ,path))))
+                              (derivation->output-paths drv)))
       (nix-name . ,(derivation-name drv))
       (system . ,(derivation-system drv))
       (description . "Stand-alone image of the GNU system")
@@ -308,6 +320,12 @@ system.")
             (system-test-value test))))
 
       `((derivation . ,(derivation-file-name drv))
+        (log . ,(log-file store (derivation-file-name drv)))
+        (outputs . ,(filter-map (lambda (res)
+                                  (match res
+                                    ((name . path)
+                                     `(,name . ,path))))
+                                (derivation->output-paths drv)))
         (nix-name . ,(derivation-name drv))
         (system . ,(derivation-system drv))
         (description . ,(format #f "Guix '~a' system test"
@@ -339,6 +357,12 @@ system.")
   "Return Hydra jobs to build the self-contained Guix binary tarball."
   (define (->alist drv)
     `((derivation . ,(derivation-file-name drv))
+      (log . ,(log-file store (derivation-file-name drv)))
+      (outputs . ,(filter-map (lambda (res)
+                                (match res
+                                  ((name . path)
+                                   `(,name . ,path))))
+                              (derivation->output-paths drv)))
       (nix-name . ,(derivation-name drv))
       (system . ,(derivation-system drv))
       (description . "Stand-alone binary Guix tarball")



reply via email to

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