GNU bug report logs - #39864
[PATCH 0/2] Update the Guix Data Service package, and tweak the service

Previous Next

Package: guix-patches;

Reported by: Christopher Baines <mail <at> cbaines.net>

Date: Sun, 1 Mar 2020 21:03:02 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39864 in the body.
You can then email your comments to 39864 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#39864; Package guix-patches. (Sun, 01 Mar 2020 21:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Baines <mail <at> cbaines.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 01 Mar 2020 21:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] Update the Guix Data Service package,
 and tweak the service
Date: Sun, 01 Mar 2020 21:01:52 +0000
[Message part 1 (text/plain, inline)]
Bump the revision used for the guix-data-service, and move to using
Guile 3 rather than 2. Also make it possible to pass options more easily
through the service.

Christopher Baines (2):
  gnu: guix-data-service: Update to 0.0.1-18.18eb9df.
  services: guix-data-service: Allow passing extra options.

 doc/guix.texi         |  6 ++++++
 gnu/packages/web.scm  | 18 +++++++++---------
 gnu/services/guix.scm | 15 +++++++++++----
 3 files changed, 26 insertions(+), 13 deletions(-)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#39864; Package guix-patches. (Sun, 01 Mar 2020 21:14:02 GMT) Full text and rfc822 format available.

Message #8 received at 39864 <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: 39864 <at> debbugs.gnu.org
Subject: [PATCH 2/2] services: guix-data-service: Allow passing extra options.
Date: Sun,  1 Mar 2020 21:13:31 +0000
This is so that the options supported by the service configuration don't have
to always be changed. Generally though all options should be explicitly
supported and documented, so this is mostly to facilitate experimentation.

* gnu/services/guix.scm (<guix-data-service-configuration>): Add extra-options
and extra-process-jobs-options to the record type.
(guix-data-service-shepherd-services): Handle these new configuration record
fields.
* doc/guix.texi (Guix Data Service): Document these new options.
---
 doc/guix.texi         |  6 ++++++
 gnu/services/guix.scm | 15 +++++++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index fab9159530..80ba8a488e 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -25245,6 +25245,12 @@ If set, this is the @code{getmail-retriever-configuration} object with
 which to configure getmail to fetch mail from the guix-commits mailing
 list.
 
+@item @code{extra-options} (default: @var{'()})
+Extra command line options for @code{guix-data-service}.
+
+@item @code{extra-process-jobs-options} (default: @var{'()})
+Extra command line options for @code{guix-data-service-process-jobs}.
+
 @end table
 @end deftp
 
diff --git a/gnu/services/guix.scm b/gnu/services/guix.scm
index 0f0fad39b0..10a8581a62 100644
--- a/gnu/services/guix.scm
+++ b/gnu/services/guix.scm
@@ -68,7 +68,12 @@
    (default #f))
   (commits-getmail-retriever-configuration
    guix-data-service-commits-getmail-retriever-configuration
-   (default #f)))
+   (default #f))
+  (extra-options    guix-data-service-extra-options
+                    (default '()))
+  (extra-process-jobs-options
+   guix-data-service-extra-process-jobs-options
+   (default '())))
 
 (define (guix-data-service-profile-packages config)
   "Return the guix-data-service package, this will populate the
@@ -78,7 +83,7 @@ ca-certificates.crt file in the system profile."
 
 (define (guix-data-service-shepherd-services config)
   (match-record config <guix-data-service-configuration>
-    (package user group port host)
+    (package user group port host extra-options extra-process-jobs-options)
     (list
      (shepherd-service
       (documentation "Guix Data Service web server")
@@ -92,7 +97,8 @@ ca-certificates.crt file in the system profile."
                       #$(string-append "--host=" host)
                       ;; Perform any database migrations when the
                       ;; service is started
-                      "--update-database")
+                      "--update-database"
+                      #$@extra-options)
 
                 #:user #$user
                 #:group #$group
@@ -117,7 +123,8 @@ ca-certificates.crt file in the system profile."
       (start #~(make-forkexec-constructor
                 (list
                  #$(file-append package
-                                "/bin/guix-data-service-process-jobs"))
+                                "/bin/guix-data-service-process-jobs")
+                 #$@extra-process-jobs-options)
                 #:user #$user
                 #:group #$group
                 #:environment-variables
-- 
2.25.0





Information forwarded to guix-patches <at> gnu.org:
bug#39864; Package guix-patches. (Sun, 01 Mar 2020 21:14:02 GMT) Full text and rfc822 format available.

Message #11 received at 39864 <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: 39864 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: guix-data-service: Update to 0.0.1-18.18eb9df.
Date: Sun,  1 Mar 2020 21:13:30 +0000
* gnu/packages/web.scm (guix-data-service): Update to 0.0.1-18.18eb9df.
(inputs, native-inputs): Switch to using the Guile 3 package variants where
applicable.
---
 gnu/packages/web.scm | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index c6e59cff44..6a9cdc79b8 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4390,8 +4390,8 @@ CDF, Atom 0.3, and Atom 1.0 feeds.")
   (package-with-python2 python-feedparser))
 
 (define-public guix-data-service
-  (let ((commit "bf25a8db0278b49ef2149c69ef5d6dd2201fd413")
-        (revision "17"))
+  (let ((commit "18eb9dfdcb3174bfd4bab5b9089acffa13aa1214")
+        (revision "18"))
     (package
       (name "guix-data-service")
       (version (string-append "0.0.1-" revision "." (string-take commit 7)))
@@ -4403,7 +4403,7 @@ CDF, Atom 0.3, and Atom 1.0 feeds.")
                 (file-name (git-file-name name version))
                 (sha256
                  (base32
-                  "0s6faybczdn10zwrkn22nfq5lvf538513hbmjfaqlkhfmwc4s1qd"))))
+                  "0lb78cqzqaz0r4sspg272w2a3yhzhqah30j0kxf0z182b0qpmp37"))))
       (build-system gnu-build-system)
       (arguments
        '(#:modules ((guix build utils)
@@ -4452,15 +4452,15 @@ CDF, Atom 0.3, and Atom 1.0 feeds.")
                  #t)))
            (delete 'strip))))           ; As the .go files aren't compatible
       (inputs
-       `(("guix" ,guix)
-         ("guile-fibers" ,guile-fibers)
-         ("guile-json" ,guile-json-3)
-         ("guile-email" ,guile-email)
-         ("guile-squee" ,guile-squee)
+       `(("guix" ,guile3.0-guix)
+         ("guile-fibers" ,guile3.0-fibers)
+         ("guile-json" ,guile3.0-json)
+         ("guile-email" ,guile3.0-email)
+         ("guile-squee" ,guile3.0-squee)
          ("postgresql" ,postgresql)
          ("sqitch" ,sqitch)))
       (native-inputs
-       `(("guile" ,guile-2.2)
+       `(("guile" ,guile-3.0)
          ("autoconf" ,autoconf)
          ("automake" ,automake)
          ("ephemeralpg" ,ephemeralpg)
-- 
2.25.0





Information forwarded to guix-patches <at> gnu.org:
bug#39864; Package guix-patches. (Sat, 07 Mar 2020 21:21:02 GMT) Full text and rfc822 format available.

Message #14 received at 39864 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Christopher Baines <mail <at> cbaines.net>
Cc: 39864 <at> debbugs.gnu.org
Subject: Re: [bug#39864] [PATCH 0/2] Update the Guix Data Service package,
 and tweak the service
Date: Sat, 07 Mar 2020 22:20:48 +0100
Hullo,

Christopher Baines <mail <at> cbaines.net> skribis:

> Bump the revision used for the guix-data-service, and move to using
> Guile 3 rather than 2. Also make it possible to pass options more easily
> through the service.
>
> Christopher Baines (2):
>   gnu: guix-data-service: Update to 0.0.1-18.18eb9df.
>   services: guix-data-service: Allow passing extra options.

Both LGTM.  Thank you!

Ludo’.




Reply sent to Christopher Baines <mail <at> cbaines.net>:
You have taken responsibility. (Sun, 08 Mar 2020 23:44:01 GMT) Full text and rfc822 format available.

Notification sent to Christopher Baines <mail <at> cbaines.net>:
bug acknowledged by developer. (Sun, 08 Mar 2020 23:44:02 GMT) Full text and rfc822 format available.

Message #19 received at 39864-done <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 39864-done <at> debbugs.gnu.org
Subject: Re: [bug#39864] [PATCH 0/2] Update the Guix Data Service package,
 and tweak the service
Date: Sun, 08 Mar 2020 23:43:22 +0000
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

> Hullo,
>
> Christopher Baines <mail <at> cbaines.net> skribis:
>
>> Bump the revision used for the guix-data-service, and move to using
>> Guile 3 rather than 2. Also make it possible to pass options more easily
>> through the service.
>>
>> Christopher Baines (2):
>>   gnu: guix-data-service: Update to 0.0.1-18.18eb9df.
>>   services: guix-data-service: Allow passing extra options.
>
> Both LGTM.  Thank you!

Great, I've pushed these changes now :)
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 06 Apr 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.