unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#32532] [PATCH] Add emacs-build-farm
@ 2018-08-26 11:33 Alex Kost
  2018-08-27 11:52 ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Kost @ 2018-08-26 11:33 UTC (permalink / raw)
  To: 32532

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-emacs-build-farm.patch --]
[-- Type: text/x-patch, Size: 1857 bytes --]

From dc933a2cb96b562c16580b6fb8d79e55f3535e92 Mon Sep 17 00:00:00 2001
From: Alex Kost <alezost@gmail.com>
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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#32532] [PATCH] Add emacs-build-farm
  2018-08-26 11:33 [bug#32532] [PATCH] Add emacs-build-farm Alex Kost
@ 2018-08-27 11:52 ` Ludovic Courtès
  2018-08-27 15:59   ` Alex Kost
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2018-08-27 11:52 UTC (permalink / raw)
  To: Alex Kost; +Cc: 32532

Hi Alex,

Alex Kost <alezost@gmail.com> skribis:

> 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).

Awesome!

> From dc933a2cb96b562c16580b6fb8d79e55f3535e92 Mon Sep 17 00:00:00 2001
> From: Alex Kost <alezost@gmail.com>
> 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.

LGTM!

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.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#32532] [PATCH] Add emacs-build-farm
  2018-08-27 11:52 ` Ludovic Courtès
@ 2018-08-27 15:59   ` Alex Kost
  2018-08-27 21:14     ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Kost @ 2018-08-27 15:59 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 32532

Ludovic Courtès (2018-08-27 13:52 +0200) wrote:

> Alex Kost <alezost@gmail.com> skribis:
[...]
>> From dc933a2cb96b562c16580b6fb8d79e55f3535e92 Mon Sep 17 00:00:00 2001
>> From: Alex Kost <alezost@gmail.com>
>> 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.
>
> LGTM!

Thanks, I will commit it soon.

> 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?

-- 
Alex

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#32532] [PATCH] Add emacs-build-farm
  2018-08-27 15:59   ` Alex Kost
@ 2018-08-27 21:14     ` Ludovic Courtès
  2018-08-28  9:25       ` bug#32532: " Alex Kost
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2018-08-27 21:14 UTC (permalink / raw)
  To: Alex Kost; +Cc: 32532

Alex Kost <alezost@gmail.com> 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.  I hope it’s clearer
now.

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32532: [PATCH] Add emacs-build-farm
  2018-08-27 21:14     ` Ludovic Courtès
@ 2018-08-28  9:25       ` Alex Kost
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Kost @ 2018-08-28  9:25 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 32532-done

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

> Alex Kost <alezost@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-28  9:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-26 11:33 [bug#32532] [PATCH] Add emacs-build-farm Alex Kost
2018-08-27 11:52 ` Ludovic Courtès
2018-08-27 15:59   ` Alex Kost
2018-08-27 21:14     ` Ludovic Courtès
2018-08-28  9:25       ` bug#32532: " Alex Kost

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).