From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SPnbMo2WPGRNXAAASxT56A (envelope-from ) for ; Mon, 17 Apr 2023 02:45:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cGj/MY2WPGQ3fAAAG6o9tA (envelope-from ) for ; Mon, 17 Apr 2023 02:45:01 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D7AA219128 for ; Mon, 17 Apr 2023 02:45:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poCyl-0000u9-B8; Sun, 16 Apr 2023 20:44:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poCyk-0000tv-5X for help-guix@gnu.org; Sun, 16 Apr 2023 20:44:22 -0400 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poCyh-0005Im-Da for help-guix@gnu.org; Sun, 16 Apr 2023 20:44:21 -0400 Received: from fews02-sea.riseup.net (unknown [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4Q07bh2k14z9tGG; Mon, 17 Apr 2023 00:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1681692256; bh=mgPGFGLIcT7hubhxCO8wfnKqNZrGuG0Z0MVfHjp6htU=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=Kv/TbbKnJ15GLGXmZYEQplpV9g3tzh2Or00h780rgh4+h0R+d2QsKQhj88z7dFTE2 UdRTltkRoGHKgBx39Mv0wlMQcyQgjFEfINDxzt8aMm1zsrfKYvOcnipkUyGieYi+qG stWONF4rm3FfLTMAnVadGDuujHSk2Qyy0iPYjjFM= X-Riseup-User-ID: B06E7D83BC144FCFA736FE142DC386126800BAEAC7801DF7B5BD9EFB3012B11D Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Q07bg3N5DzFq5V; Mon, 17 Apr 2023 00:44:15 +0000 (UTC) References: <6915D2F1-4062-47E7-B304-BB85483B4646@lepiller.eu> From: Csepp To: Julien Lepiller Cc: Andy Tai , help-guix@gnu.org Subject: Re: guix command line behavior upon network failure or package build failure Date: Mon, 17 Apr 2023 02:28:40 +0200 In-reply-to: <6915D2F1-4062-47E7-B304-BB85483B4646@lepiller.eu> Message-ID: <87r0sjban8.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681692301; a=rsa-sha256; cv=none; b=WDXl0uzyuA/Hon/p73HbYOpkSVADaID171TzJT6Dyscrja1HGk6tXpgcKcPJizOuo/J6JM zl6kvyvAXhD6KZzaBGm4AowCChUUwxU2vShZIfXeDBIbinxHR+fXC8UcfFVWQm0CID9KtZ pilqfNkTENLz/IFmnm31HHjOjlGofLOHqxsRCOAMA5+H+DpPmFLfl3gdrw24OPmuO4i2/k PhdJlDZgGHwiWLaYxzFfTic8eBcJnBhdVUPt/waDMrIMlhFh6W6RgMP50s1zs6lF7zpWox KqUy3j3loWQUvZx3hramGXilZ5QSl3FYO5PZX5hOQXb1GQjmvZQulBPzA8xsyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b="Kv/TbbKn"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681692301; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=c0XkQhRD/595qPt5FbsRlVdd2PXo7nSG6f0ABkr42yo=; b=GsaNkUS+SRaU3b0sRa+iweUuVIkk8IzfOdmnge46YcQP6HpNfdDxyayxr2kiJ/aQsO0OnG FitiKGP79rYFzF9qLMxX1CZJskHGZkInc778jdE2vovXYpF4Jn54rBAtNmVrTgBGP90z+c wuQvJij2/fApR8NZk+lXit0FloNINUZUUGE2T+Z9iMWK9XVUM4YDa5jDS2I35YoBzXXUiu uYGlHOOtg+wuOsR1JnXLgCvxfxho0MthBRRNF4HXFFqukOxOJVoV2iXzQoLSbddJxFuQ2m PX0V3ipKRaorP/iLgbZgNbdkz5CHE9+5WK4JEouSH+l7/kxy280JUzEUFbchEg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -5.10 X-Spam-Score: -5.10 X-Migadu-Queue-Id: D7AA219128 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b="Kv/TbbKn"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net X-TUID: hK88gDOJQIl8 Might also make sense to keep retrying. When downloading fails, proceed to a derivation that needs to be built locally, and maybe when a local build fails, try to see if the substitute server built it in the meantime, and just download that. On lower end machines with slow disks, having to re-run the derivation computations is a pretty big problem, this would eliminate one cause of it. Julien Lepiller writes: > Failing earlier might still be friendlier, as guix will not be working fo= r nothing. When guix upgrade fails, nothing is upgraded, after all. > > Guix has the --keep-going option you can use to continue downloading/buil= ding packages unrelated to the failure. > > Le 16 avril 2023 08:48:41 GMT+02:00, Andy Tai a =C3=A9cri= t=C2=A0: >>The user facing guix command has two modes of failure as I have seen, >>when doing "guix upgrade" or "guix package -u": >> >>1. if when downloading substitutes, if downloading fails due to >>network conditions, the whole command errors out (exits) >> >>2. if some software has to be built locally, and if the build fails, >>the whole command errors out (exits) >> >>is it possible to have the guix command keeps going and finishes other >>works that may be unrelated to the failure, and finally prints out >>messages about the packages that failed to update? This would be >>more user friendly and makes guix more usable for end users. Thanks >>