From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sree Harsha Totakura Subject: Re: make packagers life easier Date: Tue, 17 Mar 2015 13:01:55 +0100 Message-ID: <550817B3.8010305@totakura.in> References: <20150315170032.GA14849@venom> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXqEh-0007ok-2L for guix-devel@gnu.org; Tue, 17 Mar 2015 08:05:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXqEL-0006ST-Og for guix-devel@gnu.org; Tue, 17 Mar 2015 08:04:38 -0400 Received: from mail-out1.informatik.tu-muenchen.de ([131.159.0.8]:59821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXqEL-0006Rv-Gq for guix-devel@gnu.org; Tue, 17 Mar 2015 08:04:17 -0400 In-Reply-To: <20150315170032.GA14849@venom> 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: guix-devel@gnu.org Cc: "Grothoff, Christian" On 03/15/2015 06:00 PM, Tom=C3=A1=C5=A1 =C4=8Cech wrote: >=20 > How to implement? > - inject always failing phase into phases list >=20 > Another level of this feature could be even continuing of the build. I have a similar feature request. Long time ago when I was packaging gnunet and curl, I had to spend a lot of time trying to understand why `make check` phase fails in the build environment. More often than not, I had to extensively study the test cases and the testing mechanism being used to understand and then resolve the failures, much to my chagrin, by trail-and-error as I did not have access to the build environment. Sure, `guix build -K` helped to some extent but there were some hard-to-debug cases which only failed in the build environment due to separate network and filesystem namespaces. I discussed this with Christian and his suggestion was to implement a debug shell which the guix builder will bail out to when a phase fails. The packager can then examine the environment right at the moment where the failure happens. I know that since the build happens in a separate namespace this can be hard to implement, but one idea is to configure the build environments network namespace to accept connections from localhost and spawn sshd when the build fails. WDYT? Regards, Sree