From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erQLP-0004mE-Bi for guix-patches@gnu.org; Thu, 01 Mar 2018 10:42:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erQLK-0002Cz-FX for guix-patches@gnu.org; Thu, 01 Mar 2018 10:42:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59810) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erQLK-0002Cr-Bv for guix-patches@gnu.org; Thu, 01 Mar 2018 10:42:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1erQLJ-0002nU-TA for guix-patches@gnu.org; Thu, 01 Mar 2018 10:42:01 -0500 Subject: [bug#30647] [PATCH] guix build: Support '--remote-log-file=PACKAGE'. Resent-Message-ID: From: Oleg Pykhalov References: <20180228141959.19789-1-go.wigust@gmail.com> <87po4ou5ie.fsf@gnu.org> <87606ge8c5.fsf@gmail.com> <874lm06ic9.fsf@gnu.org> Date: Thu, 01 Mar 2018 18:40:50 +0300 In-Reply-To: <874lm06ic9.fsf@gnu.org> ("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@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 30647@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (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----- --=-=-=--