From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +I0CMcCu6mBjDQAAgWs5BA (envelope-from ) for ; Sun, 11 Jul 2021 10:41:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oEe5LMCu6mDoOAAAB5/wlQ (envelope-from ) for ; Sun, 11 Jul 2021 08:41:36 +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 4D60920BB0 for ; Sun, 11 Jul 2021 10:41:36 +0200 (CEST) Received: from localhost ([::1]:43018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2V1r-0008Fg-8N for larch@yhetil.org; Sun, 11 Jul 2021 04:41:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2V1P-0008FW-Um for guix-devel@gnu.org; Sun, 11 Jul 2021 04:41:07 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:45936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2V1K-0000oO-ST; Sun, 11 Jul 2021 04:41:07 -0400 Received: by mail-wr1-x42c.google.com with SMTP id t5so5916152wrw.12; Sun, 11 Jul 2021 01:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=9Fds5kdWl8rgRuccH8QZAe2BzlAcQGl1Zvg4QNT6/8g=; b=HdecFja41yWg00ZlI29CXv1pls6k1o8oGQs9/cm/okKXR7NdUs5oWwbjKRC90OLVaM 5xHrBhbt6g1+qItdI3GfsUu56uA83jaxMD6QJRnqyb5aah+UA12MyEwyxFFJYr9osX8h XnIzVOpKnTrn39JPd9SjTr+BIsQgS09KbauPCc2d8p/OyPsHzF1/oURjSRnxxfVX7Hlx PNUGt2K+oe/FdHUsQrWtCb/H60tGjJVHc6lSW8ghSBjG8y6DiMslTlgdpmh+ECfURZfn BZwcQ3bk9/6vPK+Z1E3VqV41QXdSvCVOZw1iaLB+469eNsx1d5jF1L+moTdh+WzKR25p uTVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=9Fds5kdWl8rgRuccH8QZAe2BzlAcQGl1Zvg4QNT6/8g=; b=cKXSA2TtVLnzwfuow9bURHKMOVxZ/GTep74Ps3GBpHhTbtXDaJxd84HEQaL/5fG1Af SNeoIIrYPON5A4yXPBQxLKkz8p+QDwluHp9ozIiLBwIXRKL9k42ND6AP0LAvwI/2wYX7 E0F5hCEsJ0wF+Vbtg7OyWNA1hZRQj++RaP4XSQN6mOud9CoTRKFVsit+VMxDDo6rYFGR 41NjQgKENvdRjevo7/1lEGgxcetCxfb87F9ZaXXi+RUA4/fOwZ9FCTh1RqJVghkcrAXK 5cs7wQmHjLgaeT5htBNCxNODDlAjspNetow9CtzgGto7wdTLMpwiLEbIguiNJ4wI7rL4 PgjA== X-Gm-Message-State: AOAM533ZhJb9zk9ANHcve1w0m0T++hcLCqILzyEjFzMnfdTlxUIb6s7f pvcjlEBcUczGS63KZUqZoUgWAknYPMI= X-Google-Smtp-Source: ABdhPJxbEmsBEBCrrA2riLto4gOwRL0Zr2I2WKNU9AKE5dY0noBf1r6w2a/ijdGOmGpDhclQLkCi/w== X-Received: by 2002:a5d:6984:: with SMTP id g4mr21271451wru.381.1625992860511; Sun, 11 Jul 2021 01:41:00 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id x18sm10306027wrw.19.2021.07.11.01.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 01:41:00 -0700 (PDT) From: zimoun To: Leo Famulari , Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: guix weather exit status? In-Reply-To: References: <87r1g6b593.fsf@gnu.org> Date: Sun, 11 Jul 2021 10:40:21 +0200 Message-ID: <86mtqti6q2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: , Cc: guix-devel@gnu.org 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=1625992896; 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=9Fds5kdWl8rgRuccH8QZAe2BzlAcQGl1Zvg4QNT6/8g=; b=V/GURpEAcuv5eptR1vyOEqolqUXDLPkTCzTB4mVfp7DXWdIuLVHLYS/DHbzPXqIDbxJUNv UEfy/3Mz1ps/jrP+ZNleqwpjEq4qhmmOY1G+C/MK6A7DTl0Cf58J/msTem4/SOf9zkN0WJ bWhCeGjO5BoFqhcdh67nwFPlbZNJBCT1hW3cKiCAV2l63qJ9iLCEDaTBeFzHH8LKFL+83g JOCJBomDMfUJZtcz6dKEUlSewQYIXng9svENex/yoAh9yd891N1FaKOAK9xe+AjPJtmaYb JhDSsGfxDKlbiVci3iNR3io3hVJyb5mRU3Ut23eE3U3B8H93FOjj+2wRkuu2Dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625992896; a=rsa-sha256; cv=none; b=bIFTX9MDAg46CtlK8B80ZwBezy21s1AwNwwSYbCLwdRa2GmNJqPh1EGXWp0sBGWN/2Ks/u LfW1Mh+mBb4NtDniavPTMQH3n8p+8ZcwFVKuEr3sYa6Z+EB73RedQ2zHK0UIBa78/8GHhH 1bOnTm4iWmHK3/ldqEBxV9IVf5p820IXRJQ10cmcwQc88CD5DrS2p2L8wxzlYeM8Gw+T9D dCWJluIuBZtLIeuYlK4jHOG/XvBFuo1+HFk2pHNuRgrhtxXn2lEOFWT/vZGGPtSS4fuUOF Nraas6fkra7LE7hQ3xvK2Rw0wE4n1qhr+eetH7HsN4bPN1Xv2Q2LCkNTPDbklA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=HdecFja4; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=HdecFja4; dmarc=pass (policy=none) header.from=gmail.com; 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: 4D60920BB0 X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: m3tPAiWpQkSv Hi, On Sat, 10 Jul 2021 at 18:06, Leo Famulari wrote: > On Sat, Jul 10, 2021 at 04:41:44PM +0200, Ludovic Court=C3=A8s wrote: >> I agree we could change (or rather refine) semantics to exit with >> non-zero when overall coverage is below 100%. In the example above, it >> should return 0. > > Maybe we could distinguish between various cases like this: > > 0 means 100% coverage > 1 means a substitute is available, but not from all servers > 2 means a substitute is not available > > This would preserve the current meaning of 0, while still allowing `guix > weather` to be used in scripts to "wait for a substitute". What about two or more packages? =E2=80=9Cguix weather foo bar=E2=80=9D wh= en the package =E2=80=99foo=E2=80=99 is available on one server and =E2=80=99bar= =E2=80=99 is not at all. Or if =E2=80=99foo=E2=80=99 is available on one server and =E2=80=99bar=E2=80=99 = on the other. Etc. We could have: 0 100% all servers 1 100% from one server 2 100% from a server mix 3 one or more substitute is missing WDYT? Cheers, simon