From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#24496: offloading should fall back to local build after n tries Date: Mon, 26 Sep 2016 18:20:51 +0900 Message-ID: <87r387nhjg.fsf@gnu.org> References: <8760ppr3q3.fsf@we.make.ritual.n0.is> 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]:51186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boYBM-0003wG-4w for bug-guix@gnu.org; Mon, 26 Sep 2016 11:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boYBK-0005GA-AI for bug-guix@gnu.org; Mon, 26 Sep 2016 11:51:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boYBK-0005G6-63 for bug-guix@gnu.org; Mon, 26 Sep 2016 11:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1boYBJ-0002qx-VM for bug-guix@gnu.org; Mon, 26 Sep 2016 11:51:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <8760ppr3q3.fsf@we.make.ritual.n0.is> (ng0's message of "Wed, 21 Sep 2016 09:39:48 +0000") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: ng0 Cc: 24496@debbugs.gnu.org Hello! ng0 skribis: > When I forgot that my build machine is offline and I did not pass > --no-build-hook, the offloading keeps trying forever until I had to > cancel the build, boot the build-machine and started the build again. > > A solution could be a config option or default behavior which after > failing to offload for n times gives up and uses the local builder. > > Is this desired at all? Setups like hydra could get problems, but for > small setups with the same architecture there could be a solution beyond > --no-build-hook? Like you say, on Hydra-style setup this could be a problem: the front-end machine may have --max-jobs=3D0, meaning that it cannot perform builds on its own. So I guess we would need a command-line option to select a different behavior. I=E2=80=99m not sure how to do that because =E2=80=98guix offloa= d=E2=80=99 is =E2=80=9Chidden=E2=80=9D behind =E2=80=98guix-daemon=E2=80=99, so there=E2= =80=99s no obvious place for such an option. In the meantime, you could also hack up your machines.scm: it would return a list where unreachable machines have been filtered out. Ludo=E2=80=99.