From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#39387: Builds are *not* offloaded when using the "--keep-failed" or -K option. Date: Sat, 01 Feb 2020 23:57:18 -0500 Message-ID: <87o8uhr3gx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36317) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iy7Kc-0001fo-Uu for bug-guix@gnu.org; Sat, 01 Feb 2020 23:58:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iy7Kc-000296-1l for bug-guix@gnu.org; Sat, 01 Feb 2020 23:58:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iy7Kb-00028r-UR for bug-guix@gnu.org; Sat, 01 Feb 2020 23:58:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iy7Kb-00035a-UD for bug-guix@gnu.org; Sat, 01 Feb 2020 23:58:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:36178) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iy7Jz-0001dE-J4 for bug-guix@gnu.org; Sat, 01 Feb 2020 23:57:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iy7Jy-0000Dz-F2 for bug-guix@gnu.org; Sat, 01 Feb 2020 23:57:23 -0500 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:42561) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iy7Jy-00009t-96 for bug-guix@gnu.org; Sat, 01 Feb 2020 23:57:22 -0500 Received: by mail-qk1-x72c.google.com with SMTP id q15so10943516qke.9 for ; Sat, 01 Feb 2020 20:57:21 -0800 (PST) Received: from apteryx (dsl-10-135-79.b2b2c.ca. [72.10.135.79]) by smtp.gmail.com with ESMTPSA id 135sm7170362qkj.55.2020.02.01.20.57.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Feb 2020 20:57:20 -0800 (PST) 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-mx.org@gnu.org Sender: "bug-Guix" To: 39387@debbugs.gnu.org Consider the following, where 10.42.0.199 is a machine described in /etc/guix/machines.scm for offloading: $ ./pre-inst-env guix build php The following derivation will be built: /gnu/store/dj9qi9lj4xz0dk6agq9mndh8mhi8ifrg-php-7.4.1.drv process 8241 acquired build slot '/var/guix/offload/10.42.0.199:22/0' load on machine '10.42.0.199' is 0.04 (normalized: 0.04) building /gnu/store/dj9qi9lj4xz0dk6agq9mndh8mhi8ifrg-php-7.4.1.drv... ^C $ ./pre-inst-env guix build php --keep-failed The following derivation will be built: /gnu/store/dj9qi9lj4xz0dk6agq9mndh8mhi8ifrg-php-7.4.1.drv building /gnu/store/dj9qi9lj4xz0dk6agq9mndh8mhi8ifrg-php-7.4.1.drv... starting phase `set-SOURCE-DATE-EPOCH' phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds starting phase `set-paths' environment variable `PATH' set to `/gnu/store/niqa6dlvw4r2bfbabn65kq1kgdfwcb4b-pkg-config-0.29.2/bin:/gnu/store/qz06d1dz19wkrmibcr1485wqqia9zzhi-bison-3.5.1/bin:/gnu/store/3fzw8qb3cmrdkr46y55njjrfkvxd53lr-intltool-0.51.0/bin: [...] In the second case, the build is started on the local machine instead of being dispatched to the offload machine. Presumably, this is done so that the files are available locally; but I'd prefer if it'd offload and keep the files on the remote. An alternative would be to copy the remote build directory locally after failure.