From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kLBaIwho52C0WQEAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 23:03:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KGL3Hgho52B1YwAA1q6Kng (envelope-from ) for ; Thu, 08 Jul 2021 21:03:04 +0000 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 57CEC15441 for ; Thu, 8 Jul 2021 23:03:03 +0200 (CEST) Received: from localhost ([::1]:49872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1bAk-00045W-4f for larch@yhetil.org; Thu, 08 Jul 2021 17:03:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1ak1-0005u7-U1 for guix-devel@gnu.org; Thu, 08 Jul 2021 16:35:25 -0400 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:48761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1ajw-0005dH-OS for guix-devel@gnu.org; Thu, 08 Jul 2021 16:35:25 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 6AF912B00A4C; Thu, 8 Jul 2021 16:35:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 08 Jul 2021 16:35:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:subject:message-id:mime-version:content-type; s= mesmtp; bh=bte9TQ9lBcGfUi5rCtUymQcOK0xX3BCzKgOTogm51xc=; b=rsEgu buuocSZpa9xoAuiTNb6HzMJuUGJGJXkXlS/+8s9Fqk9HFWCbxODR2cDXw2QKViOs +prtz4icJkj2O5SzRd3g3LF6mLukPME3gmC8D/XCBxVbiHI/8UNITLUrLW7THzLm zEXeiEXOawzdMHoc1pKblQYxm5RCJxO1sXWneg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=bte9TQ9lBcGfUi5rCtUymQcOK0xX3 BCzKgOTogm51xc=; b=ePqA/i83s7kUk2U9j7DGuPbt9dhjxK0QcPudcDi0XlW/U aRparYLDQkOdEEippoZROn1AHaLlEpj7QAeK/mHIR93TygBGWgA9zPbLfAzmoAWR /cZ24dO7374heqLN7ntKKmKoD1PVWFE/eVqw66AoI33T5UQZfSgEOQ/4kDsQuxNR T3TYTH2SQ7H5PI+Z8alMpdY/EW6ZNW6+nrukxClpn+htru1T12DkMiNaoW59tgdR sbZHKeIBL9ZmBtoyTwzO23AVAZc+rzGNDoces9IUa3aCVoDLWkd9+Dg3UmNeRjfS FxdXlb9gqJJm5D5Jv8wD8wnEIbmRJrCYPanrb7xjQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrtdeggddugeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgofgfuqdetfeekvddqvddtucdlfedttddmnecujf gurhepfffhvffukfggtggusehttdertddttddvnecuhfhrohhmpefnvghoucfhrghmuhhl rghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpe euieduieejudffvdfhjedvgedvhefggfejvdevkeeffeelfeekueeijeduveetudenucff ohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 8 Jul 2021 16:35:15 -0400 (EDT) Date: Thu, 8 Jul 2021 16:35:03 -0400 From: Leo Famulari To: guix-devel@gnu.org Subject: guix weather exit status? Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=64.147.123.18; envelope-from=leo@famulari.name; helo=wnew4-smtp.messagingengine.com 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625778184; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bte9TQ9lBcGfUi5rCtUymQcOK0xX3BCzKgOTogm51xc=; b=cFDnscYICQ7oIjgRpWSxDAi1BhZDx384Uts4ZX9ZtdLWAyD9up2FevxsMoz0aK0jjU77+N o8Snx6iWspLj7wabVPgN/M9pIRHKU+t/0vehzPd/w9GIbOdHaEd8KfarKM9xpQmMsoQOPQ UYnm8xp8/PfH8ARh6nnIw7Anyun+6yoc6cn8wICZGYmTjsxf5WbRn03Yrh5P0OyA3MHzDl QKm3YQQrPgRYpGis4r9PEtjaTChudYSr5B2z/+ZHp7dWmP1ifrYikuMUiN0NL4tdJLvA17 Enki1c+amj9yU/tN0TOUfMt+FFIUA87J8BomRKXcoTmRMVRqp6AZRoFHMoxeQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625778184; a=rsa-sha256; cv=none; b=XAVMxVKs+CYsDax4NVqXt8AX9lR94+Gg4M8NYYk69uSHpX1liJWlrA9PaV9C+nWYwSkv0K nbNJFc/aXo2BOjJPLx6mSdUxh47HeKwRkqIs5WX2Cofd2lR0wPZgKIthhs0Byxq3pvCo/8 ULDjp5V6trWanF26vP99UAkqXQbycupnk40ZnPoEYqfkLa3vDcsthYTMZH/hStgVULRb2O uy4ks774JHaIZQfHDZxQEiCUZmoxu1+XZ9yFok9XT8H4S924Gb1LsAZwhRhMJ/QW4EzS6u ljq3I0rYNklKQW6QFYBOCK8NdRsPTYJNa7CHM/b4r7Iys1tU8BVNAqgUBXS8/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b="rsEgu bu"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="ePqA/i83"; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b="rsEgu bu"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="ePqA/i83"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 57CEC15441 X-Spam-Score: -1.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: f1VROZBSKkRX When a substitute is not available for all specified substitute servers, `guix weather` exits with a return code of '1', signaling failure. For example: ------ $ ./pre-inst-env guix weather linux-libre; echo $? computing 1 package derivations for x86_64-linux... looking for 1 store items on http://ci.guix.gnu.org... http://ci.guix.gnu.org 100.0% substitutes available (1 out of 1) at least 234.8 MiB of nars (compressed) 86.3 MiB on disk (uncompressed) 38 queued builds aarch64-linux: 31 (81.6%) powerpc64le-linux: 1 (2.6%) armhf-linux: 1 (2.6%) i686-linux: 5 (13.2%) build rate: .00 builds per hour x86_64-linux: 0.00 builds per hour aarch64-linux: 0.00 builds per hour i686-linux: 0.00 builds per hour looking for 1 store items on http://bordeaux.guix.gnu.org... http://bordeaux.guix.gnu.org 0.0% substitutes available (0 out of 1) unknown substitute sizes 0.0 MiB on disk (uncompressed) (continuous integration information unavailable) 1 ------ I expected it to return successfully because a substitute is available, but I see that it could also make sense if "success" means that a substitute is available from all servers. However, the current behaviour breaks the use case of "wait until a substitute is available and then download it", like this for example: $ while true; do guix weather linux-libre && break; sleep 600; done; guix build --no-grafts linux-libre I'm not sure if this topic was discussed previously... your thoughts?