From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Langlois Subject: bug#35139: Rust builds systematically time out Date: Thu, 04 Apr 2019 10:28:59 +0100 Message-ID: <87bm1mglus.fsf@gmx.com> References: <878swqtabb.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 ([209.51.188.92]:41143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hByhA-0008A5-Nw for bug-guix@gnu.org; Thu, 04 Apr 2019 05:30:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hByh8-0002iQ-Ms for bug-guix@gnu.org; Thu, 04 Apr 2019 05:30:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hByh8-0002fg-Bk for bug-guix@gnu.org; Thu, 04 Apr 2019 05:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hByh7-0000GK-Uz for bug-guix@gnu.org; Thu, 04 Apr 2019 05:30:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:40910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBygD-0007qA-Bw for bug-guix@gnu.org; Thu, 04 Apr 2019 05:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBygC-0000p1-4K for bug-guix@gnu.org; Thu, 04 Apr 2019 05:29:05 -0400 Received: from mout.gmx.net ([212.227.17.21]:49051) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBygB-0000ni-OI for bug-guix@gnu.org; Thu, 04 Apr 2019 05:29:04 -0400 In-reply-to: <878swqtabb.fsf@gnu.org> 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: 35139@debbugs.gnu.org Cc: Ivan Petkov Hello! Ludovic Court=C3=A8s writes: > Hello, > > On berlin, Rust 1.24.1 builds systematically exceed the timeout: > > --8<---------------cut here---------------start------------->8--- > Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-un= known-linux-gnu) > Compiling arena v0.0.0 (file:///tmp/guix-build-rust-1.24.1.drv-0/rustc= -1.24.1-src/src/libarena) > Compiling rustc_driver v0.0.0 (file:///tmp/guix-build-rust-1.24.1.drv-= 0/rustc-1.24.1-src/src/librustc_driver) > > [...] > > Compiling rls-data v0.14.0 > Compiling rustc_data_structures v0.0.0 (file:///tmp/guix-build-rust-1.= 24.1.drv-0/rustc-1.24.1-src/src/librustc_data_structures) > Compiling flate2 v1.0.1 > Compiling syntax_pos v0.0.0 (file:///tmp/guix-build-rust-1.24.1.drv-0/= rustc-1.24.1-src/src/libsyntax_pos) > Compiling rustc_errors v0.0.0 (file:///tmp/guix-build-rust-1.24.1.drv-= 0/rustc-1.24.1-src/src/librustc_errors) > Compiling backtrace v0.3.4 > guix offload: error: timeout expired while offloading '/gnu/store/61bd22d= 9mg3xl260jwddisiahh3kmanj-rust-1.24.1.drv' > --8<---------------cut here---------------end--------------->8--- > > Strangely, the build lasts ~9000 seconds (2.5 hours) on the front-end > node of berlin=C2=B9, and the timeout for guix-daemon on berlin is 6h (see > guix-maintenance.git) while the max-silent-time is 1h. > > The build nodes may be slower than the front-end, but still, it seems > unlikely that it would take more than 6h there. (That could happen if > the test suite, which lasts 2.1h, were =E2=80=9Cembarrassingly parallel= =E2=80=9D, but > we=E2=80=99re running tests with =E2=80=98-j1=E2=80=99.) > > To summarize, there are two problems: > > 1. Rust takes too long to build. What can we do about it? Enable > parallel builds? One thing I suggested in the past was to remove the check phase *only* for rust packages used for bootstrapping. This way we still run the tests for the final rust but not at every step in the chain. Although, I wonder if we're more likely to miss a bug if we do this, I'm not sure. For reference: https://lists.gnu.org/archive/html/guix-patches/2018-11/msg0= 0453.html Thanks, Pierre