From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: wip-refactor-emacs-ui and Hydra interface Date: Mon, 21 Dec 2015 22:16:49 +0100 Message-ID: <87egefijsu.fsf@gnu.org> References: <87vb85gqes.fsf@gmail.com> <8760zwhfyi.fsf@gnu.org> <8760zv4mhz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB7pA-0007Kb-2R for guix-devel@gnu.org; Mon, 21 Dec 2015 16:16:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aB7p6-0001Q3-PL for guix-devel@gnu.org; Mon, 21 Dec 2015 16:16:55 -0500 In-Reply-To: <8760zv4mhz.fsf@gmail.com> (Alex Kost's message of "Fri, 18 Dec 2015 21:53:12 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alex Kost skribis: > Ludovic Court=C3=A8s (2015-12-18 01:23 +0300) wrote: > >> Hi Alex! >> >> Sorry for the late reply. I wanted to take the time to sit back, relax, >> and enjoy the new stuff=E2=80=A6 and I haven=E2=80=99t been disappointe= d! :-) > > Great, thanks for giving your time to this! > >> This is awesome. Some queries seem to take longer on Hydra than others >> (for instance, getting the list of builds of a given jobset is slow, >> whereas getting the list of latest builds, queued builds, etc. is pretty >> fast.) > > Yes, I also noticed that processing complex queries takes longer time. > Perhaps SQL queries that stand behind this Hydra API are not efficient, > dunno :-) > >> Perhaps one small improvement would be to add links from Package Info >> buffers to the corresponding Guix Hydra Build Info? > > Do you mean a button that will do the same as "B" key in "Package List"? > > Anyway, I think eventually I'll add more various buttons to "Package > Info" buffers (like "Hydra Builds", "Build Log", "Size", "Graph"), and > more keys to "Package List" buffers for the same things. > >> I haven=E2=80=99t looked at the code yet, but it=E2=80=99s your area of = expertise and >> I=E2=80=99m confident. :-) I skim over it when you think it=E2=80=99s = ready; are there >> parts you=E2=80=99d like to be reviewed more carefully? > > Well, I always feel uncomfortable with commit messages. But I think the > main part that should be reviewed is documentation (in commit 731f5e4). So, regarding the documentation: +@node Emacs Hydra +@section Hydra + +Guix also provides an interface for @code{hydra.gnu.org} (Guix build +farm) that allows to display Hydra builds and jobsets. This interface +is mostly the same as the ``list''/``info'' interface for displaying +packages and generations (@pxref{Emacs Package Management}). I would suggest adding a bit of context, like this: The continuous integration server at @code{hydra.gnu.org} builds all the distribution packages on the supported architectures and serves them as substitutes (@pxref{Substitutes}). Continuous integration is currently orchestrated by @uref{https://nixos.org/hydra/, Hydra}. This section describes an Emacs interface to query Hydra to know the build status of specific packages, discover recent and ongoing builds, view build logs, and so on. This interface is mostly the same as =E2=80= =A6 WDYT? I would also add a cross-reference like: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/doc/guix.texi b/doc/guix.texi index 06d70ba..bf523aa 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -1568,7 +1568,9 @@ also result from derivation builds, can be available as substitutes. The @code{hydra.gnu.org} server is a front-end to a build farm that builds packages from the GNU distribution continuously for some -architectures, and makes them available as substitutes. This is the +architectures, and makes them available as substitutes (@pxref{Emacs +Hydra}, for information on how to query the continuous integration +server). This is the default source of substitutes; it can be overridden by passing the @option{--substitute-urls} option either to @command{guix-daemon} (@pxref{daemon-substitute-urls,, @code{guix-daemon --substitute-urls}}) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > As for the changes in code, they are huge (and I would say > "unskimmable"), and I think no one will want to look at them :-) Well, yeah. :-) >> Anyway, let me know what you think and how you=E2=80=99d like to proceed. > > OK, I have done some final changes and rebased the branch on master, so > (from my point of view) it is ready for merging. Should I spam the list > with these (37) patches? I don=E2=80=99t think so. :-) AFAICS only elisp code is touched, and the rest of the Emacs code is supposed to be functionally equivalent, right? I=E2=80=99m tempted to punt on this one and let you push the whole series. What do people think? Thank you! Ludo=E2=80=99. --=-=-=--