From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: bug#33378: offload: Avoid hosts with little or no free disk space Date: Sun, 23 Dec 2018 12:20:17 -0500 Message-ID: <8736qoi2hf.fsf@netris.org> References: <87ftw3hio6.fsf@gnu.org> <87r2ealci0.fsf@gnu.org> 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]:48177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gb7S2-0007TU-6J for bug-guix@gnu.org; Sun, 23 Dec 2018 12:22:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gb7Ry-0002aD-O8 for bug-guix@gnu.org; Sun, 23 Dec 2018 12:22:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57946) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gb7Ry-0002Zz-Kf for bug-guix@gnu.org; Sun, 23 Dec 2018 12:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gb7Ry-0006Ez-8Y for bug-guix@gnu.org; Sun, 23 Dec 2018 12:22:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87r2ealci0.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 21 Dec 2018 23:51:35 +0100") 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: 33378@debbugs.gnu.org Hi Ludovic, Ludovic Court=C3=A8s writes: > ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > >> =E2=80=98choose-build-machine=E2=80=99 in (guix scripts offload) could/s= hould exclude >> build machines that don=E2=80=99t have at least, say, 100=C2=A0MiB avail= able in their >> store. That would avoid ENOSPC build failures such as >> . > > Done in commit 63b0c3eaccdf1816b419632cd7fe721934d2eb27. Many builds require more free space than 100 MB, so this is only a partial solution. Also, if multiple builds are happening on the same machine, the amount of free space available for each build will be less than 100 MB. Finally, the other related commit that attempts to detect build failures caused by ENOSPC by checking if there's at least 10 MB free after the failure won't often work in practice, I suspect. The problem is, by the time you perform that check, the build directory has already been deleted. Mark