Subject: bug#32532: closed (Re: [bug#32532] [PATCH] Add emacs-build-farm)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 28 Aug 2018 09:26:02 +0000

Your bug report

#32532: [PATCH] Add emacs-build-farm

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
32532: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32532
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#32532] [PATCH] Add emacs-build-farm
From: Alex Kost <[email-masked]>
To: [email-masked] (Ludovic Courtès)
Cc: [email-masked]
Date: Tue, 28 Aug 2018 12:25:08 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Ludovic Courtès (2018-08-27 23:14 +0200) wrote:

> Alex Kost <[email-masked]> skribis:
>
>> Ludovic Courtès (2018-08-27 13:52 +0200) wrote:
>
> [...]
>
>>> Regarding the code, I’m interested in adding new features to (guix ci),
>>> the client module for Cuirass/Hydra.  Just mentioning it in case it’s
>>> something that would make sense to share with emacs-build-farm.
>>
>> Sorry, I don't understand what you mean.  emacs-build-farm is a pure
>> elisp package, it can't share any guile code with (guix ci), or did you
>> mean something else?
>
> I know it’s pure elisp, which is why I wrote “in case it’s something
> that would make sense.”  That is, if you think we could share that
> Scheme code, we can do it (but emacs-build-farm would have to use
> Geiser); if you don’t want to, that’s also fine.

Oh, no, no.  emacs-build-farm will not use any scheme code.  There is no
reason for that.  Emacs has in-built "json" library, so parsing json
from Hydra/Cuirass using elisp is easy.  Using additional scheme code
for that would be a big unneeded complication.

> I hope it’s clearer now.

Yes, thanks for explaining.

Applied as 40f7ebac66913a531854cc18f9b417624508d654.

-- 
Alex

Subject: [PATCH] Add emacs-build-farm
From: Alex Kost <[email-masked]>
To: [email-masked]
Date: Sun, 26 Aug 2018 14:33:16 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

This emacs package provides an interface for Hydra and Cuirass build
farms.  AFAICT it supports everything that Cuirass and Hydra APIs
currently provide.

It is a replacement for the old 'guix-hydra-…' stuff from 'emacs-guix'
package (which will be removed in next Emacs-Guix release).

I'm going to make the announcement for it on guix-devel list after this
package will be applied to the guix tree, thanks.

>From dc933a2cb96b562c16580b6fb8d79e55f3535e92 Mon Sep 17 00:00:00 2001
From: Alex Kost <[email-masked]>
Date: Sun, 26 Aug 2018 14:27:33 +0300
Subject: [PATCH] gnu: Add emacs-build-farm.

* gnu/packages/emacs.scm (emacs-build-farm): New variable.
---
 gnu/packages/emacs.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 20d5597f5..479bcddaa 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1710,6 +1710,32 @@ management tasks from Emacs.  To begin with, run @code{M-x guix-about} or
 @code{M-x guix-help} command.")
     (license license:gpl3+)))
 
+(define-public emacs-build-farm
+  (package
+    (name "emacs-build-farm")
+    (version "0.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.com/alezost-emacs/build-farm")
+                    (commit "e2db66d5f6b381c8e21a5a7b95eef91e5fca6a20")))
+              (file-name (string-append name "-" version "-checkout"))
+              (sha256
+               (base32
+                "1q65ja9c52wjfbb7z16jpq5hnxv0rjg9gvs0xna2fs3phzl2lm93"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("bui" ,emacs-bui)
+       ("magit-popup" ,emacs-magit-popup)))
+    (home-page "https://gitlab.com/alezost-emacs/build-farm")
+    (synopsis "Emacs interface for Hydra and Cuirass build farms")
+    (description
+     "This Emacs package provides an interface for Hydra and
+Cuirass (build farms used by Nix and Guix).  It allows you to look at
+various data related to the build farm projects, jobsets, builds and
+evaluations.  The entry point is @code{M-x build-farm} command.")
+    (license license:gpl3+)))
+
 (define-public emacs-d-mode
   (package
     (name "emacs-d-mode")
-- 
2.18.0