From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Idea: "guix log" Date: Sun, 15 Jan 2017 20:07:57 +0000 Message-ID: <87bmv8krxe.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSr59-0003UP-WE for guix-devel@gnu.org; Sun, 15 Jan 2017 15:07:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSr56-00044k-Qn for guix-devel@gnu.org; Sun, 15 Jan 2017 15:07:15 -0500 Received: from aibo.runbox.com ([91.220.196.211]:38944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cSr56-00044V-JT for guix-devel@gnu.org; Sun, 15 Jan 2017 15:07:12 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cSr54-0001ur-HO for guix-devel@gnu.org; Sun, 15 Jan 2017 21:07:10 +0100 Received: from [85.159.237.210] (helo=localhost) by mailfront10.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1cSr4s-0000Er-P5 for guix-devel@gnu.org; Sun, 15 Jan 2017 21:06:59 +0100 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" To: guix-devel@gnu.org TL;DR: thoughts about a potential new guix command, guix log. I have a couple of ideas and two of them can be combined into a new guix subcommand family, guix log, while the other (pfl inspiration) is open. I used and developed with/for Gentoo for a while and I always found `pfl' nice. The bad thing is that it queries http://www.portagefilelist.de/ (if you tell it to do so) and without portage it is kinda useless. I haven't tried packaging portage with stripped features for guix yet (I have some Gentoo tools packaged), because I think we can do better. Quote from pfl: Portage File List collects which files are installed by which ebuild on users machines. It shares this data publicly for searching/browsing. It allows user to search for files that are not installed on their system and figure out which ebuild they need to install in order to obtain it. Here is what I think we can do: We can record the file names of every build, and do the queries offline (for software the local machine has) or query hydra. Next tool, next idea (the guix log family): A log viewer. Gentoo has more than one. The way we currently save logs could be more human friendly. It doesn't need a restructuring of the folders (yes I know about the switch for logfiles) but we could have something similar to https://github.com/gentoo/elogv which provides an easy way to read thelogs (nothing more). In addition to that, our log reader could extract the log and save it if requested to do so. Furthermore, a log parser which can tell you how long a build took, on average/every time. This is similar to https://wiki.gentoo.org/wiki/Genlop (https://gitweb.gentoo.org/repo/gentoo.git/tree/app-portage/genlop/genlop-0.30.10-r1.ebuild). You don't want to query hydra via emacs or your webbrowser every time (at least I don't do this), so a small programm to read out the start and finish time of a log would be great. What do you think? -- ♥Ⓐ ng0 -- https://www.inventati.org/patternsinthechaos/