From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: Re: =?utf-8?Q?What=E2=80=99s?= next? Date: Sat, 03 Jun 2017 14:16:28 -0700 Message-ID: <87lgp8pyab.fsf@gmail.com> References: <877f16z9eo.fsf@gnu.org> <2a1f34d4-3827-ebd9-cf25-e03d081b5a6f@openmailbox.org> <87shjqvcnp.fsf@gnu.org> <87tw44u332.fsf@gmail.com> <87wp8y2x2z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHGPQ-0002kz-7T for guix-devel@gnu.org; Sat, 03 Jun 2017 17:16:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHGPP-0005VS-2a for guix-devel@gnu.org; Sat, 03 Jun 2017 17:16:32 -0400 In-Reply-To: <87wp8y2x2z.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 30 May 2017 17:17:24 +0200") 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Hello Ludovic, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Maxim Cournoyer skribis: > >> Hi, >> >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Hi Brendan, >>> >>> Brendan Tildesley skribis: >>> >>>> One little annoyance I have is that guix takes every opportunity to >>>> update the list of substitutes when guix build, guix package -u, etc... >>>> is run, and fills my terminal with output like: >>>> >>>> substitute: updating list of substitutes from >>>> 'https://mirror.hydra.gnu.org'... 100.0% >>>> substitute: updating list of substitutes from >>>> 'https://mirror.hydra.gnu.org'... 100.0% >>>> substitute: updating list of substitutes from >>>> 'https://mirror.hydra.gnu.org'... 100.0% >>>> substitute: updating list of substitutes from >>>> 'https://mirror.hydra.gnu.org'... 100.0% >>>> ... >>> >>> I agree, it=E2=80=99s actually a huge annoyance. It relates to grafts = and how >>> they are implemented; I took a stab at fixing this a while back but the >>> approach turned out to be (mostly?) misguided: >>> >>> https://bugs.gnu.org/22990 >>> >>> Would be worth thinking through it again! >> >> Maybe we could make a timer variable configurable, so that at least it >> doesn't try to refresh this information at *every* guix command? > > That=E2=80=99s not what=E2=80=99s happening. When you see repeated lines= that go > directly to 100%, that=E2=80=99s because it=E2=80=99s fetching metadata f= or just a > single package, and does that one by one. > > In other cases, it fetches as many as possible at once, and uses HTTP > pipelining to send all these requests to hydra.gnu.org. My observation was that for the same exact command (I just tried: "guix environment emacs-el-mock") entered twice: --8<---------------cut here---------------start------------->8--- $ guix environment emacs-el-mock substitute: updating list of substitutes from 'https://bayfront.guixsd.org'= ... 0.0 substitute: updating list of substitutes from 'https://bayfront.guixsd.org'= ... 33.3 [...] # (downloads a bunch of substitute) [env]$ exit $ guix environment emacs-el-mock substitute: updating list of substitutes from 'https://bayfront.guixsd.org'= ... 100.0% substitute: updating list of substitutes from 'https://bayfront.guixsd.org'= ... 100.0% substitute: updating list of substitutes from 'https://bayfront.guixsd.org'= ... 100.0% [env]$ --8<---------------cut here---------------end--------------->8--- We can see that a connection is made to the substitute server(s) and data is retrieved each time the command is entered. Why does it need to refresh the list of substitutes the second time? Everything needed is already in the store. Maxim