Received: (at 30647) by debbugs.gnu.org; 1 Mar 2018 21:30:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 01 16:30:19 2018 Received: from localhost ([127.0.0.1]:39804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1erVmM-0006XS-M3 for submit <at> debbugs.gnu.org; Thu, 01 Mar 2018 16:30:18 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:41436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1erVmJ-0006XI-1J for 30647 <at> debbugs.gnu.org; Thu, 01 Mar 2018 16:30:15 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 712A41010C; Thu, 1 Mar 2018 22:30:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IlCTyEg3ISYb; Thu, 1 Mar 2018 22:30:13 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 028A619E; Thu, 1 Mar 2018 22:30:12 +0100 (CET) From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Oleg Pykhalov <go.wigust@HIDDEN> Subject: Re: [bug#30647] [PATCH] guix build: Support '--remote-log-file=PACKAGE'. References: <20180228141959.19789-1-go.wigust@HIDDEN> <87po4ou5ie.fsf@HIDDEN> <87606ge8c5.fsf@HIDDEN> <874lm06ic9.fsf@HIDDEN> <87606f3it9.fsf@HIDDEN> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 01 Mar 2018 22:30:12 +0100 In-Reply-To: <87606f3it9.fsf@HIDDEN> (Oleg Pykhalov's message of "Thu, 01 Mar 2018 18:40:50 +0300") Message-ID: <878tbb4h7f.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30647 Cc: 30647 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) Oleg Pykhalov <go.wigust@HIDDEN> skribis: > ludo@HIDDEN (Ludovic Court=C3=A8s) writes: > >>>>> =E2=80=98--remote-log-file=E2=80=99 allows to get a URL for a build l= og file on a substitute >>>>> server regardless is it built locally. =E2=80=98--log-file=E2=80=99 = returns always local >>>>> build log file. >>>> >>>> What did you think of having =E2=80=98--log-file=E2=80=99 transparentl= y fall back to >>>> searching for log files on substitute servers? >> >> To put it differently: what do you dislike about the current behavior? > > Suppose package build failed locally. I want to receive a log from a > remote server. I could do it manually by: > > 1. Removing local failed log. > 2. =E2=80=98wget=E2=80=99, but I need to know a URL. The URL scheme is documented and easy to use (info "(guix) Invoking guix publish"). That=E2=80=99s why I don=E2=80=99t find wget to be much of a pr= oblem. >> No no: keep the current behavior, but print something when we=E2=80=99re= looking >> for a remote log file (currently it silently checks whether the remote >> log file is available.) > > Still not clear to me. If =E2=80=98guix --log-file=E2=80=99 checks for a= remote log > file, then it gets a valid URL to a remote build log file for free, > doesn't it? Correct. See =E2=80=98log-url=E2=80=99 in (guix scripts build). >>> I don't think mixing those in one output is good, because for example >>> you cannot do like: >>> >>> diff -u <(guix build --log-file hello) <(guix build --remote-log-file h= ello) >> >> I see. I guess I=E2=80=99ve never wanted that, or rather, when I do, I >> explicitly wget the remote log file. :-) > > Could I ask What's your workflow for =E2=80=98wget=E2=80=99? Something like: $ guix build foo /gnu/store/xyz-foo $ wget -O log https://berlin.guixsd.org/log/xyz-foo =20=20 >>> As a better approach in addition to =E2=80=98--no-substitutes=E2=80=99,= maybe we could >>> implement =E2=80=98--only-substitutes=E2=80=99 (as I remember Nix has i= t)? Such flag >>> will return a remote log file and will avoid building packages locally. >> >> That could be an option, but that=E2=80=99s much more work (not limited = to log >> file handling.) > > Yes, but benefits (especially avoid building packages locally) are > worth. > > If you don't agree with the patch, I'll not complain and will try to > work on =E2=80=98--only-substitutes=E2=80=99. :-) Heheh. :-) IIRC, --only-substitutes in Nix is used together with --upgrade, no? Some considered it questionable from a security standpoint when we last discussed it: <https://bugs.gnu.org/26608>. Thanks, Ludo=E2=80=99.
guix-patches@HIDDEN:bug#30647; Package guix-patches.
Full text available.Received: (at 30647) by debbugs.gnu.org; 1 Mar 2018 21:23:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 01 16:23:34 2018 Received: from localhost ([127.0.0.1]:39795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1erVfq-0006Mn-Le for submit <at> debbugs.gnu.org; Thu, 01 Mar 2018 16:23:34 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:41386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1erVfo-0006Mf-M3 for 30647 <at> debbugs.gnu.org; Thu, 01 Mar 2018 16:23:33 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 3C91F1179E; Thu, 1 Mar 2018 22:23:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WYwTRJBiOL8c; Thu, 1 Mar 2018 22:23:31 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 15EFA11631; Thu, 1 Mar 2018 22:23:30 +0100 (CET) From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Tobias Geerinckx-Rice <me@HIDDEN> Subject: Re: [bug#30647] [PATCH] guix build: Support '--remote-log-file=PACKAGE'. References: <20180228141959.19789-1-go.wigust@HIDDEN> <87po4ou5ie.fsf@HIDDEN> <940aba4e5d289b70aa499525c0093704@HIDDEN> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 01 Mar 2018 22:23:30 +0100 In-Reply-To: <940aba4e5d289b70aa499525c0093704@HIDDEN> (Tobias Geerinckx-Rice's message of "Thu, 01 Mar 2018 16:16:36 +0100") Message-ID: <87d10n4hil.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30647 Cc: 30647 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) Hey Tobias, Tobias Geerinckx-Rice <me@HIDDEN> skribis: > On 2018-02-28 23:13, ludo@HIDDEN wrote: >> What did you think of having =E2=80=98--log-file=E2=80=99 transparently = fall back to >> searching for log files on substitute servers? >> >> I find it handy, but also wondered if it might surprise users that such >> a trivially-looking option connects to external servers. > > It would pleasantly surprise me :-) Good. :-) > TBH, I don't see the difference between this & all other actions that > already connect to external servers. > > Is this different? Will it ignore =E2=80=99--no-substitutes=E2=80=99, or = ping servers > outside of user-approved substitute-urls? Does it need to? It=E2=80=99s not really different, indeed. (The only thing is that the lis= t of substitute URLs that is used by =E2=80=98--log-file=E2=80=99 can differ fro= m that of guix-daemon; but that=E2=80=99s a bug, really.) >> I thought about having it print something when it does so. > > Like a progress bar? Seems more eye-catching than yet another > warning. Or something more permanent in/next to the downloaded log? =E2=80=98--log-file=E2=80=99 just probes remote servers without actually do= wnloading the log, so a progress bar wouldn=E2=80=99t be useful. I was thinking of a message like: info: looking for build log at https://=E2=80=A6/log/=E2=80=A6-foo Ludo=E2=80=99.
guix-patches@HIDDEN:bug#30647; Package guix-patches.
Full text available.
Received: (at 30647) by debbugs.gnu.org; 1 Mar 2018 15:41:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 01 10:41:04 2018
Received: from localhost ([127.0.0.1]:39474 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1erQKO-0002mD-7S
for submit <at> debbugs.gnu.org; Thu, 01 Mar 2018 10:41:04 -0500
Received: from mail-wr0-f178.google.com ([209.85.128.178]:46138)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <go.wigust@HIDDEN>) id 1erQKM-0002lb-2a
for 30647 <at> debbugs.gnu.org; Thu, 01 Mar 2018 10:41:02 -0500
Received: by mail-wr0-f178.google.com with SMTP id m12so6945471wrm.13
for <30647 <at> debbugs.gnu.org>; Thu, 01 Mar 2018 07:41:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:cc:subject:references:date:in-reply-to:message-id
:user-agent:mime-version;
bh=0hmVE5+KPWgircU+cKRk6sxaF3S8mZOTgum3LfoJoWw=;
b=kFXQ2aLmihNn+L0WTsJ0EbG/yGZOMQUs9AH8Cpb1lGKSciiUJWdCC1g0zhBPNncf9Z
FZbz34Dl0qQcxCnaoZWLP86dNFdHhFK3i+IW6W4/MSZ2KFa7WsdM/KxWe0p+e9o7eWd/
0XXutlhnnzCXxci7yinISyddugsa526sLP1UyhlJk73NYvFNjZsYV+PwIcxwEkuvLfEY
zWxsWU2b+mUHdzw35Y36I2AqW4uFNUqqprhR20yFHC0BUOssTGsjpL9WXV5jnEITUnXJ
0qw7g5Xzcj9Najez7u/X3WlCT0cQ+sZevdecCRsIbwMcWY6FQQaJ50guyO2C6BFU5+d+
otGg==
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:references:date:in-reply-to
:message-id:user-agent:mime-version;
bh=0hmVE5+KPWgircU+cKRk6sxaF3S8mZOTgum3LfoJoWw=;
b=dh6qC08nfRnDhR/SRYGBWhi8c3J7Pl2LDQNaPfR9Bsl6rbD5SO/CUa+ZZFBEL17zoe
wu6VKX0Aaj77wMC3COaCq6QWR1g/CYDDBiDEoN3oa0u5YrQn0vtoxHj5W5IgIPFq0dBD
JwN/nZb9mVdWjw2lLKkdEA0pvjQe+h+Z0Pi46TXM2x+esFBcfj1vkabsyhKTzV66r537
pqI93bmNwSwF718iKFESaM7RNcSt1JIWX2pgAED5ri2lKwAALOAVvr4anf1z8unQZMza
uFtFsbcgrHc8XpgtNAXjpy8setQs38zw7gSOwt5Sqfv2hv+pKUYqmI2r590gQlBf2bYy
Hrjg==
X-Gm-Message-State: AElRT7GmdYvQu6hDx91Ycy/OK/zEhhxKBkBTd3AizK0mi1fFmk3/yLcT
K4l4pDym1RN5ISM4KBpNwOoRWQ==
X-Google-Smtp-Source: AG47ELvL/hJ6bacyS3yi/XVqjIQZja6DLznZ1HmH5FO1QtKQqO5SLM3bPQmLA4FQctD4PLwAwzpW/w==
X-Received: by 10.25.229.129 with SMTP id i1mr1806035lfk.66.1519918855622;
Thu, 01 Mar 2018 07:40:55 -0800 (PST)
Received: from magnolia (ppp78-37-138-236.pppoe.avangarddsl.ru.
[78.37.138.236])
by smtp.gmail.com with ESMTPSA id n11sm922055lje.15.2018.03.01.07.40.54
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Thu, 01 Mar 2018 07:40:54 -0800 (PST)
From: Oleg Pykhalov <go.wigust@HIDDEN>
To: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: Re: [bug#30647] [PATCH] guix build: Support
'--remote-log-file=PACKAGE'.
References: <20180228141959.19789-1-go.wigust@HIDDEN>
<87po4ou5ie.fsf@HIDDEN> <87606ge8c5.fsf@HIDDEN>
<874lm06ic9.fsf@HIDDEN>
Date: Thu, 01 Mar 2018 18:40:50 +0300
In-Reply-To: <874lm06ic9.fsf@HIDDEN> ("Ludovic
\=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
\=\?utf-8\?Q\?s\?\= message of "Thu, 01 Mar 2018 14:22:46 +0100")
Message-ID: <87606f3it9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 30647
Cc: 30647 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
ludo@HIDDEN (Ludovic Court=C3=A8s) writes:
>>>> =E2=80=98--remote-log-file=E2=80=99 allows to get a URL for a build lo=
g file on a substitute
>>>> server regardless is it built locally. =E2=80=98--log-file=E2=80=99 r=
eturns always local
>>>> build log file.
>>>
>>> What did you think of having =E2=80=98--log-file=E2=80=99 transparently=
fall back to
>>> searching for log files on substitute servers?
>
> To put it differently: what do you dislike about the current behavior?
Suppose package build failed locally. I want to receive a log from a
remote server. I could do it manually by:
1. Removing local failed log.
2. =E2=80=98wget=E2=80=99, but I need to know a URL.
3. Hydra web interface, which is slow (especially multiple packages).
> No no: keep the current behavior, but print something when we=E2=80=99re =
looking
> for a remote log file (currently it silently checks whether the remote
> log file is available.)
Still not clear to me. If =E2=80=98guix --log-file=E2=80=99 checks for a r=
emote log
file, then it gets a valid URL to a remote build log file for free,
doesn't it?
>> I don't think mixing those in one output is good, because for example
>> you cannot do like:
>>
>> diff -u <(guix build --log-file hello) <(guix build --remote-log-file he=
llo)
>
> I see. I guess I=E2=80=99ve never wanted that, or rather, when I do, I
> explicitly wget the remote log file. :-)
Could I ask What's your workflow for =E2=80=98wget=E2=80=99?
> So I guess I=E2=80=99m unconvinced about the need for a separate
> =E2=80=98--remote-log-file=E2=80=99 option.
>
> What do people think? Ricardo?
Maybe CC him? Or is it a bad etiquette for a mailing list, because he
is subscribed?
>> As a better approach in addition to =E2=80=98--no-substitutes=E2=80=99, =
maybe we could
>> implement =E2=80=98--only-substitutes=E2=80=99 (as I remember Nix has it=
)? Such flag
>> will return a remote log file and will avoid building packages locally.
>
> That could be an option, but that=E2=80=99s much more work (not limited t=
o log
> file handling.)
Yes, but benefits (especially avoid building packages locally) are
worth.
If you don't agree with the patch, I'll not complain and will try to
work on =E2=80=98--only-substitutes=E2=80=99. :-)
Oleg.
--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlqYHwIACgkQckbhHGm3
lWnx8w//Zve5wIw99HUQccFzPYQT016DdInm6OVQ3uDQLNT9c+3EjG43j7E21df0
qJJkMj+iUWGyc9P3Wny8yF4jU2Pemw+sz3WSGH5czhD4/a+5XE4FfnkT/aQhTV4N
zbQzbsYwUxxPC4MJVLP3xpoN48DAGGRA4s11cYtELKnfSpsqByENfPkJ2JDYU0vj
FmYHu97LTSrdX49NMwTof2PtJeshtR7sLUMXD2SkKixj+LfRVv+jafbS29gk71vr
LqIydTuUuHArAdzdb9/CWtmzY1stEd0h0HAtuySGL7BRitOu+i/rz8uj96vlxYrm
/gOPcGIbYHfhZUNt61yP9H8SGGgLiCeHV2CgfpzItp7Cea9IO8v+/O2x3Rpw3bXr
a/yILKVZO4p/BLAjVGxNMKBH1P5Sy+Tl1lzLgwvjkL0JYXzKILYsZaP71nO8WHJ2
2KVjG6Eth6aBXtHkL6rvOK3qZFC9hYYk46SYoKb9Z++AaioNK9JaARYLzZLBFcmv
uAWQ+vgjpAiKnPLXtOjcVt1iLw7uaE9X9e397FFWid94wlidCzgqu7OQnp6R10Fr
gXrvd6QgREewUU7P13eH1s4IKDgs8WDP+mbnzV8Rm+nBHqqWi3PNXzCMTxtHzORI
cWFhCVKZ1YM0/2oapNWH5bIcpEvy202gBmNPEGyHmPRv+oQ2uWQ=
=aijF
-----END PGP SIGNATURE-----
--=-=-=--
guix-patches@HIDDEN:bug#30647; Package guix-patches.
Full text available.Received: (at 30647) by debbugs.gnu.org; 1 Mar 2018 15:16:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 01 10:16:46 2018 Received: from localhost ([127.0.0.1]:39454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1erPws-0002DB-G5 for submit <at> debbugs.gnu.org; Thu, 01 Mar 2018 10:16:46 -0500 Received: from tobias.gr ([51.15.135.5]:47540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <me@HIDDEN>) id 1erPwq-0002D1-Bz for 30647 <at> debbugs.gnu.org; Thu, 01 Mar 2018 10:16:44 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id af6e966b; Thu, 1 Mar 2018 15:16:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h= mime-version:content-type:content-transfer-encoding:date:from:to :cc:subject:in-reply-to:references:message-id; s=2018; bh=NbVYK4 X7waScaCQ85pc6Ov6d4/hjiBF9SUPHpJpb9us=; b=imjoIOPB3kpWHw7PspuZIt jsFOoeiAMLthubW2bFh0gDg4NcyAkV7wqv1JWECjIfzdCtQqdDEwafdMEP4dhlLJ 0Be2k6Yqxg4aDjEHDnM0uvTpPfq8nBtG4tFk1szJ5+rvRkYrUQJIKKVFzF5l+ph7 VSee21C+vBoN042gppLNT6pzDUzJKoQHwALRCkgq3qqIZDpa9QkTcV4txme1bF2f D21fCt2YbDCVl6x3bbs6gqAbUh2IWZNTSzyQZsVPInpwyqiwzyvkUKogXU2UZGGd co4ZgC8R8Wa04zjki959eaNK1mmjc7e7ARylJPZtkU1pxRPNmrmCjs5xgZwulU+A == Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 91f8d076 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Thu, 1 Mar 2018 15:16:40 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 01 Mar 2018 16:16:36 +0100 From: Tobias Geerinckx-Rice <me@HIDDEN> To: ludo@HIDDEN Subject: Re: [bug#30647] [PATCH] guix build: Support '--remote-log-file=PACKAGE'. Organization: tobias.gr In-Reply-To: <87po4ou5ie.fsf@HIDDEN> References: <20180228141959.19789-1-go.wigust@HIDDEN> <87po4ou5ie.fsf@HIDDEN> Message-ID: <940aba4e5d289b70aa499525c0093704@HIDDEN> X-Sender: me@HIDDEN User-Agent: Roundcube Webmail X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30647 Cc: 30647 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) Hullo, On 2018-02-28 23:13, ludo@HIDDEN wrote: > What did you think of having ‘--log-file’ transparently fall back to > searching for log files on substitute servers? > > I find it handy, but also wondered if it might surprise users that such > a trivially-looking option connects to external servers. It would pleasantly surprise me :-) (...well, not really ‘surprise’ — just more Guixy network-transparent goodness.) TBH, I don't see the difference between this & all other actions that already connect to external servers. Is this different? Will it ignore ’--no-substitutes’, or ping servers outside of user-approved substitute-urls? Does it need to? > I thought about having it print something when it does so. Like a progress bar? Seems more eye-catching than yet another warning. Or something more permanent in/next to the downloaded log? Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity.
guix-patches@HIDDEN:bug#30647; Package guix-patches.
Full text available.Received: (at 30647) by debbugs.gnu.org; 1 Mar 2018 13:22:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 01 08:22:51 2018 Received: from localhost ([127.0.0.1]:38307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1erOAd-0007aZ-Dz for submit <at> debbugs.gnu.org; Thu, 01 Mar 2018 08:22:51 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:38002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1erOAb-0007aR-OG for 30647 <at> debbugs.gnu.org; Thu, 01 Mar 2018 08:22:50 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 3B59211571; Thu, 1 Mar 2018 14:22:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o0j4i5YUDeWA; Thu, 1 Mar 2018 14:22:47 +0100 (CET) Received: from ribbon (unknown [193.50.110.134]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 460BC10A43; Thu, 1 Mar 2018 14:22:47 +0100 (CET) From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Oleg Pykhalov <go.wigust@HIDDEN> Subject: Re: [bug#30647] [PATCH] guix build: Support '--remote-log-file=PACKAGE'. References: <20180228141959.19789-1-go.wigust@HIDDEN> <87po4ou5ie.fsf@HIDDEN> <87606ge8c5.fsf@HIDDEN> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 01 Mar 2018 14:22:46 +0100 In-Reply-To: <87606ge8c5.fsf@HIDDEN> (Oleg Pykhalov's message of "Thu, 01 Mar 2018 07:19:22 +0300") Message-ID: <874lm06ic9.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30647 Cc: 30647 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) Hello, Oleg Pykhalov <go.wigust@HIDDEN> skribis: > ludo@HIDDEN (Ludovic Court=C3=A8s) writes: > >> Oleg Pykhalov <go.wigust@HIDDEN> skribis: >> >>> =E2=80=98--remote-log-file=E2=80=99 allows to get a URL for a build log= file on a substitute >>> server regardless is it built locally. =E2=80=98--log-file=E2=80=99 re= turns always local >>> build log file. >> >> What did you think of having =E2=80=98--log-file=E2=80=99 transparently = fall back to >> searching for log files on substitute servers? > > Sorry, I don't understand the question. Does the =E2=80=9Cfall back=E2= =80=9D mean the > behavior before a patch? To put it differently: what do you dislike about the current behavior? >> I find it handy, but also wondered if it might surprise users that such >> a trivially-looking option connects to external servers. I thought >> about having it print something when it does so. Would address your >> concerns? > > Do you mean always connect to the external server and print a URL for a > log file in addition to path of local log file? No no: keep the current behavior, but print something when we=E2=80=99re lo= oking for a remote log file (currently it silently checks whether the remote log file is available.) > I don't think mixing those in one output is good, because for example > you cannot do like: > > diff -u <(guix build --log-file hello) <(guix build --remote-log-file hel= lo) I see. I guess I=E2=80=99ve never wanted that, or rather, when I do, I explicitly wget the remote log file. :-) So I guess I=E2=80=99m unconvinced about the need for a separate =E2=80=98--remote-log-file=E2=80=99 option. What do people think? Ricardo? > As a better approach in addition to =E2=80=98--no-substitutes=E2=80=99, m= aybe we could > implement =E2=80=98--only-substitutes=E2=80=99 (as I remember Nix has it)= ? Such flag > will return a remote log file and will avoid building packages locally. That could be an option, but that=E2=80=99s much more work (not limited to = log file handling.) Thanks, Ludo=E2=80=99.
guix-patches@HIDDEN:bug#30647; Package guix-patches.
Full text available.
Received: (at 30647) by debbugs.gnu.org; 1 Mar 2018 04:19:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 28 23:19:39 2018
Received: from localhost ([127.0.0.1]:38114 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1erFgw-0007qd-SG
for submit <at> debbugs.gnu.org; Wed, 28 Feb 2018 23:19:39 -0500
Received: from mail-lf0-f53.google.com ([209.85.215.53]:41701)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <go.wigust@HIDDEN>) id 1erFgt-0007qM-Ke
for 30647 <at> debbugs.gnu.org; Wed, 28 Feb 2018 23:19:36 -0500
Received: by mail-lf0-f53.google.com with SMTP id m69so6818192lfe.8
for <30647 <at> debbugs.gnu.org>; Wed, 28 Feb 2018 20:19:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:cc:subject:references:date:in-reply-to:message-id
:user-agent:mime-version;
bh=vHZAd4V/eQbKsBFaCEu4FvU9N5gvRdKsGPhqUbjpIeY=;
b=lKhbiShgtNNuqL3O/djQpFK2T4wMH1ZskZ3dZucC886pH2/+V6LWXxrwxDuP6GhGKf
ajXhbALZa7ctiG9/zJ7lx+VazOmTATVUlKCID1UwBQxS/g2k1wzfWli1xmFuIdKJSdrd
fmygvqtrAsktkDFsExEskaH4mfMqhvJOMHwu3r9nmMdQjVpcO8ezsVPkSpYp482j8Pvv
5PE2H8ImXZ+BQyrZK55pOgnBnKUCowVFxUnXksr0lg4ZGpUU6SaQPZScaroQhVR2Ntrg
EAok3427vWBcAFFuEiA2b+Ge8lC6b5sYf/gz4zAgLRhOssvu/1Y9SLF5CUi5JxsqxzEa
QeRw==
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:references:date:in-reply-to
:message-id:user-agent:mime-version;
bh=vHZAd4V/eQbKsBFaCEu4FvU9N5gvRdKsGPhqUbjpIeY=;
b=M9IsFnhydLIBMD6PHa00QrV5VbpwMdm1i2A+bljtJdHZxRXqQTX1AJswFm5CpJGGUn
vaIgp3QwBTGvljUzt7RCieEBYIbTx3tOOmsBTfBrNzLN3zQVDlrj5YpBZcf7jp+dGuTD
JfBsIyCqe3uVjiqPSsHdknR/zrZ3tt+T/mp03JV0370MdORwRUH1RFQBz3LZ/926Lcez
T8iTdJ6zcWA3raCD+OiO/JHhsdj5SF3rCDB5FSoCPtvySrUWbFeqQqUGAldDwgaGVyoe
MT0dz+GJmv0OSpN4FmJKvxHexV+gb+Qei8PK1joith8AKo0bEgSu1HU1OkMiMo1KTuzz
DDlA==
X-Gm-Message-State: APf1xPCddEt2oeXp57srlaSYWsv32MEaAUA3iaXYR87n/vF0k6o6FJVb
qTgEi2bzqNDUQOdSFa80r6on/g==
X-Google-Smtp-Source: AG47ELt+0dUf1WkrQdMGr/NO58LknTEwy27NGkkcFgS4kvj/qmYS6i2StNCGZtBmnqlm43SUg5h/kA==
X-Received: by 10.46.85.68 with SMTP id j65mr316765ljb.55.1519877968611;
Wed, 28 Feb 2018 20:19:28 -0800 (PST)
Received: from magnolia (ppp78-37-138-236.pppoe.avangarddsl.ru.
[78.37.138.236])
by smtp.gmail.com with ESMTPSA id 26sm668697ljs.93.2018.02.28.20.19.26
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Wed, 28 Feb 2018 20:19:27 -0800 (PST)
From: Oleg Pykhalov <go.wigust@HIDDEN>
To: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: Re: [bug#30647] [PATCH] guix build: Support
'--remote-log-file=PACKAGE'.
References: <20180228141959.19789-1-go.wigust@HIDDEN>
<87po4ou5ie.fsf@HIDDEN>
Date: Thu, 01 Mar 2018 07:19:22 +0300
In-Reply-To: <87po4ou5ie.fsf@HIDDEN> ("Ludovic
\=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
\=\?utf-8\?Q\?s\?\= message of "Wed, 28 Feb 2018 23:13:45 +0100")
Message-ID: <87606ge8c5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30647
Cc: 30647 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Hello Ludovic,
ludo@HIDDEN (Ludovic Court=C3=A8s) writes:
> Oleg Pykhalov <go.wigust@HIDDEN> skribis:
>
>> =E2=80=98--remote-log-file=E2=80=99 allows to get a URL for a build log =
file on a substitute
>> server regardless is it built locally. =E2=80=98--log-file=E2=80=99 ret=
urns always local
>> build log file.
>
> What did you think of having =E2=80=98--log-file=E2=80=99 transparently f=
all back to
> searching for log files on substitute servers?
Sorry, I don't understand the question. Does the =E2=80=9Cfall back=E2=80=
=9D mean the
behavior before a patch?
> I find it handy, but also wondered if it might surprise users that such
> a trivially-looking option connects to external servers. I thought
> about having it print something when it does so. Would address your
> concerns?
Do you mean always connect to the external server and print a URL for a
log file in addition to path of local log file? I don't think mixing
those in one output is good, because for example you cannot do like:
=2D-8<---------------cut here---------------start------------->8---
diff -u <(guix build --log-file hello) <(guix build --remote-log-file hello)
=2D-8<---------------cut here---------------end--------------->8---
As a better approach in addition to =E2=80=98--no-substitutes=E2=80=99, may=
be we could
implement =E2=80=98--only-substitutes=E2=80=99 (as I remember Nix has it)? =
Such flag
will return a remote log file and will avoid building packages locally.
Oleg.
--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlqXf0oACgkQckbhHGm3
lWkSsA/9HW9SxDKpaOTVNhsCIaAhE7h8WqJR7kLfKAlPPoy2afR9bVgGpoUNqt+f
yW2tqBxUmaQLZg8vzv8/RedHKY9x2yAa1svIPTjmEeagj883dy8I1eEXqMn293m2
omWJpvBLiFFV5WwRautx52W6SsCHB+5n1HuQnYiAwXCk8Z8SfXeYy2XgeqMue8DU
ZmKqlZ36lrEGWLobKFzXUeYMnm3KcBMUIVKFc0Rf3HmmrkWdzNd3U8sU2wTOoKJJ
aKUjtTxywhbG+CLaHb0OF6R/b6a0Advtii/s7O+egs+lNNJlDJbXfMKi8Dm+MeKt
o6+Gyi7Z4vGoNVPNZhqQduDQo/QbkxPUct3fQanMc+Ciq8Ts5+cR3lKQ2m7VIC5A
yn10ipMgS50dhM8nbq6PZRZn1zudg2wvxot5y5u1aePWKBpvTondgKzIAj7gz1ku
mkAuyLI52qWM6PpF9NGkrW3kTEFZzyj3190/9Lo6wQSch//PVq2dbDTJL5TCbVz3
J8vlasekHwWeVaNYhc/kE/a1SKktg5C6woyITA3oD2ZuriwK6MQAc4Xpp0Rrsoer
yvARKOGsiwh/nYbqsv6+eKZbvK5uXsm3hwn8U6Da21aFQygeuq3s+/sQ1kSmTukO
7mhDCpauUxzT8784ALl6pU+Ixi6Tow0kqNPEo19ptw+/UFW61XM=
=M7dp
-----END PGP SIGNATURE-----
--=-=-=--
guix-patches@HIDDEN:bug#30647; Package guix-patches.
Full text available.Received: (at 30647) by debbugs.gnu.org; 28 Feb 2018 22:13:49 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 28 17:13:49 2018 Received: from localhost ([127.0.0.1]:37995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1er9yu-0007xj-R1 for submit <at> debbugs.gnu.org; Wed, 28 Feb 2018 17:13:48 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:33160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1er9yt-0007xc-JU for 30647 <at> debbugs.gnu.org; Wed, 28 Feb 2018 17:13:47 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1277B11B47; Wed, 28 Feb 2018 23:13:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1d2HfuaI7dR3; Wed, 28 Feb 2018 23:13:46 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 5756F10C6B; Wed, 28 Feb 2018 23:13:46 +0100 (CET) From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Oleg Pykhalov <go.wigust@HIDDEN> Subject: Re: [bug#30647] [PATCH] guix build: Support '--remote-log-file=PACKAGE'. References: <20180228141959.19789-1-go.wigust@HIDDEN> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 28 Feb 2018 23:13:45 +0100 In-Reply-To: <20180228141959.19789-1-go.wigust@HIDDEN> (Oleg Pykhalov's message of "Wed, 28 Feb 2018 17:19:59 +0300") Message-ID: <87po4ou5ie.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30647 Cc: 30647 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) Hello Oleg, Oleg Pykhalov <go.wigust@HIDDEN> skribis: > =E2=80=98--remote-log-file=E2=80=99 allows to get a URL for a build log f= ile on a substitute > server regardless is it built locally. =E2=80=98--log-file=E2=80=99 retu= rns always local > build log file. What did you think of having =E2=80=98--log-file=E2=80=99 transparently fal= l back to searching for log files on substitute servers? I find it handy, but also wondered if it might surprise users that such a trivially-looking option connects to external servers. I thought about having it print something when it does so. Would address your concerns? Thanks, Ludo=E2=80=99.
guix-patches@HIDDEN:bug#30647; Package guix-patches.
Full text available.
Received: (at submit) by debbugs.gnu.org; 28 Feb 2018 14:21:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 28 09:21:00 2018
Received: from localhost ([127.0.0.1]:36611 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1er2bM-0007VN-76
for submit <at> debbugs.gnu.org; Wed, 28 Feb 2018 09:21:00 -0500
Received: from eggs.gnu.org ([208.118.235.92]:41177)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <go.wigust@HIDDEN>) id 1er2bL-0007VB-9t
for submit <at> debbugs.gnu.org; Wed, 28 Feb 2018 09:20:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <go.wigust@HIDDEN>) id 1er2bC-0007o3-TN
for submit <at> debbugs.gnu.org; Wed, 28 Feb 2018 09:20:54 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45881)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1er2bC-0007nx-Ph
for submit <at> debbugs.gnu.org; Wed, 28 Feb 2018 09:20:50 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60316)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from <go.wigust@HIDDEN>) id 1er2b6-00011F-E4
for guix-patches@HIDDEN; Wed, 28 Feb 2018 09:20:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <go.wigust@HIDDEN>) id 1er2b3-0007fd-3Y
for guix-patches@HIDDEN; Wed, 28 Feb 2018 09:20:44 -0500
Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:47012)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1er2b2-0007f6-Nl
for guix-patches@HIDDEN; Wed, 28 Feb 2018 09:20:41 -0500
Received: by mail-lf0-x22e.google.com with SMTP id r80so3726051lfe.13
for <guix-patches@HIDDEN>; Wed, 28 Feb 2018 06:20:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:cc:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=ckRg2g1M0xfpPqTcVvIjqajlboISHELNNGeLYAY+CYw=;
b=PhAgIdAcjKfOgOuRVGRzogkdEBtVa9uKgVeVPQAhjnDOF2D1ESzbHzDdhp9pITWzGh
67dE6lQ7zZWKuPqFU/o9sI0HWQG4h35KswZ0TgYUaGRbn80Mm9xwWsAeFzVESxz0zQKV
AZ3uEgaIy7X8CSrH/yuIh12J8sn71Cs7qWh7tbirAyxHAH9TWLwlcGoxBzhHh7fXFLWw
LdTGzfMgK0D6p6vOtMOuqRs9IOgMvoM8JHKNk8YHUAPG53FVy7xEZdb6d4VNbfqq7F9k
to41fNICn/xpWtjJSrE5Oq7C7dUUtRKCDAbi9tBbSOuovymNr08xldyZnQJVbA2n94fM
YPlg==
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:date:message-id:mime-version
:content-transfer-encoding;
bh=ckRg2g1M0xfpPqTcVvIjqajlboISHELNNGeLYAY+CYw=;
b=R2e7Wg83216Er7EMcRkWsjs1oT0qar5Ld32xezMfq26VqXE5b86EteJOoKvglWGraw
/DDWzaBa4TGpcuL2eOnEjk2QpHEg+lZpEtK9FL8zASRvJc6tzCIX103hxz+YHYTF3qxT
fHw7xR4agGIxKveD88J6EQYA3ygPkZDAvKy5K8OI0TfXAAztpSv8Lrji1SypQknzS9gO
qaSIT+DhXN2HyubxQ40jcO3gttgi7LARiztjVsw8Md4LnCPd0k0C83d+aidCfqjoUx5F
eL9YGjusKryL+IhQAq+S01CdMeKBsSoO2UuCJiZU6LTZ/chTN4PdYi4U9SgXyF21ayiR
p6rA==
X-Gm-Message-State: APf1xPCsXagJIzQbq94jqkLPEvtO5ub1lXD5TMIDryYFNe6KV36mzeLl
qVVnCZVjqjFGbwu3kTPeaUNwvw==
X-Google-Smtp-Source: AG47ELt2nVNmzxcXfuVLCtk94eLYaigy5vATAkjOFUjzql0CkPLPWU75BFScSBy0Pnd5X0tkqdTqkQ==
X-Received: by 10.25.37.139 with SMTP id l133mr13593437lfl.70.1519827639027;
Wed, 28 Feb 2018 06:20:39 -0800 (PST)
Received: from localhost.localdomain (92-100-174-247.dynamic.avangarddsl.ru.
[92.100.174.247])
by smtp.gmail.com with ESMTPSA id d3sm375991lfj.95.2018.02.28.06.20.37
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 28 Feb 2018 06:20:38 -0800 (PST)
From: Oleg Pykhalov <go.wigust@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] guix build: Support '--remote-log-file=PACKAGE'.
Date: Wed, 28 Feb 2018 17:19:59 +0300
Message-Id: <20180228141959.19789-1-go.wigust@HIDDEN>
X-Mailer: git-send-email 2.16.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
Cc: Oleg Pykhalov <go.wigust@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)
‘--remote-log-file’ allows to get a URL for a build log file on a substitute
server regardless is it built locally. ‘--log-file’ returns always local
build log file.
* guix/scripts/build.scm (show-build-log): Split function.
(show-remote-build-log): New function.
(guix-build): Add this.
* doc/guix.texi (Invoking guix build): Document this.
---
doc/guix.texi | 18 +++++++++---------
guix/scripts/build.scm | 31 ++++++++++++++++++++++---------
2 files changed, 31 insertions(+), 18 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 24db16761..782e532ce 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -5812,9 +5812,8 @@ more on GC roots.
@item --log-file
@cindex build logs, access
-Return the build log file names or URLs for the given
-@var{package-or-derivation}, or raise an error if build logs are
-missing.
+Return the build log file names @var{package-or-derivation}, or raise an
+error if build logs are missing.
This works regardless of how packages or derivations are specified. For
instance, the following invocations are equivalent:
@@ -5826,15 +5825,16 @@ guix build --log-file guile
guix build --log-file -e '(@@ (gnu packages guile) guile-2.0)'
@end example
-If a log is unavailable locally, and unless @code{--no-substitutes} is
-passed, the command looks for a corresponding log on one of the
-substitute servers (as specified with @code{--substitute-urls}.)
+@item --remote-log-file
+@cindex build logs, access
+
+Same as @code{--log-file} but on one of the substitute servers (as
+specified with @code{--substitute-urls}.
-So for instance, imagine you want to see the build log of GDB on MIPS,
-but you are actually on an @code{x86_64} machine:
+For example, you want to see the build log of GDB on MIPS:
@example
-$ guix build --log-file gdb -s mips64el-linux
+$ guix build --remote-log-file gdb -s mips64el-linux
https://hydra.gnu.org/log/@dots{}-gdb-7.10
@end example
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index 57f2d82c5..c45271e50 100644
--- a/guix/scripts/build.scm
+++ b/guix/scripts/build.scm
@@ -601,6 +601,9 @@ must be one of 'package', 'all', or 'transitive'~%")
(option '("log-file") #f #f
(lambda (opt name arg result)
(alist-cons 'log-file? #t result)))
+ (option '("remote-log-file") #f #f
+ (lambda (opt name arg result)
+ (alist-cons 'remote-log-file? #t result)))
(append %transformation-options
%standard-build-options)))
@@ -691,15 +694,20 @@ package '~a' has no source~%")
(map (cut transform store <>)
(options->things-to-build opts)))))
-(define (show-build-log store file urls)
- "Show the build log for FILE, falling back to remote logs from URLS if
-needed."
- (let ((log (or (log-file store file)
- (log-url store file #:base-urls urls))))
+(define (show-build-log store file)
+ "Show the build log for FILE."
+ (let ((log (log-file store file)))
(if log
(format #t "~a~%" log)
(leave (G_ "no build log for '~a'~%") file))))
+(define (show-remote-build-log store file urls)
+ "Show the remote build log for FILE from URLS."
+ (let ((log (log-url store file #:base-urls urls)))
+ (if log
+ (format #t "~a~%" log)
+ (leave (G_ "no remote build log for '~a'~%") file))))
+
;;;
;;; Entry point.
@@ -713,6 +721,9 @@ needed."
(define quiet?
(assoc-ref opts 'quiet?))
+ (define (derivation-file-names drv items)
+ (delete-duplicates (append (map derivation-file-name drv) items)))
+
(with-error-handling
;; Ask for absolute file names so that .drv file names passed from the
;; user to 'read-derivation' are absolute when it returns.
@@ -744,6 +755,7 @@ needed."
opts)))
(unless (or (assoc-ref opts 'log-file?)
+ (assoc-ref opts 'remote-log-file?)
(assoc-ref opts 'derivations-only?))
(show-what-to-build store drv
#:use-substitutes?
@@ -752,10 +764,11 @@ needed."
#:mode mode))
(cond ((assoc-ref opts 'log-file?)
- (for-each (cut show-build-log store <> urls)
- (delete-duplicates
- (append (map derivation-file-name drv)
- items))))
+ (for-each (cut show-build-log store <>)
+ (derivation-file-names drv items)))
+ ((assoc-ref opts 'remote-log-file?)
+ (for-each (cut show-remote-build-log store <> urls)
+ (derivation-file-names drv items)))
((assoc-ref opts 'derivations-only?)
(format #t "~{~a~%~}" (map derivation-file-name drv))
(for-each (cut register-root store <> <>)
--
2.16.1
Oleg Pykhalov <go.wigust@HIDDEN>:guix-patches@HIDDEN.
Full text available.guix-patches@HIDDEN:bug#30647; Package guix-patches.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.