GNU bug report logs - #40381
Guix shouldn't request substitutes for profile derivations

Previous Next

Package: guix;

Reported by: pkill9 <pkill9 <at> runbox.com>

Date: Wed, 1 Apr 2020 20:24:02 UTC

Severity: normal

Tags: moreinfo

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40381 in the body.
You can then email your comments to 40381 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#40381; Package guix. (Wed, 01 Apr 2020 20:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to pkill9 <pkill9 <at> runbox.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 01 Apr 2020 20:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: pkill9 <pkill9 <at> runbox.com>
To: bug-guix <at> gnu.org
Subject: Guix shouldn't request substitutes for profile derivations
Date: Wed, 1 Apr 2020 21:18:46 +0100
I see that Guix is requesting substitutes from the build servers before
it builds a profile derivation. 




Information forwarded to bug-guix <at> gnu.org:
bug#40381; Package guix. (Thu, 02 Apr 2020 10:45:02 GMT) Full text and rfc822 format available.

Message #8 received at 40381 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: pkill9 <pkill9 <at> runbox.com>
Cc: 40381 <at> debbugs.gnu.org
Subject: Re: bug#40381: Guix shouldn't request substitutes for profile
 derivations
Date: Thu, 02 Apr 2020 12:44:42 +0200
Hi,

pkill9 <pkill9 <at> runbox.com> skribis:

> I see that Guix is requesting substitutes from the build servers before
> it builds a profile derivation. 

Can you show more precisely what you mean by pasting a command and its
output?

With the recent changes in the implementation of grafts, what happens is
usually this:

  $ guix build foo
  updating the list of substitutes…
  The following things will be built/downloaded:
  …

  updating the list of substitutes…
  The following things will be built/downloaded:
  …

The second stage here typically includes profile.drv as well as grafts.
All this is expected behavior.

Detailed behavior depends on what’s in /gnu/store, the freshness of
substitute info in /var/guix/substitute/cache, and applicable grafts for
the package(s) at hand.

Thanks,
Ludo’.




Added tag(s) moreinfo. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 14 Apr 2020 16:40:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#40381; Package guix. (Sun, 26 Apr 2020 15:59:01 GMT) Full text and rfc822 format available.

Message #13 received at 40381 <at> debbugs.gnu.org (full text, mbox):

From: pkill9 <pkill9 <at> runbox.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 40381 <at> debbugs.gnu.org
Subject: Re: bug#40381: Guix shouldn't request substitutes for profile
 derivations
Date: Sun, 26 Apr 2020 16:58:34 +0100
Hi Ludovic

> Can you show more precisely what you mean by pasting a command and its
> output?
> 
> With the recent changes in the implementation of grafts, what happens
> is usually this:
> 
>   $ guix build foo
>   updating the list of substitutes…
>   The following things will be built/downloaded:
>   …
> 
>   updating the list of substitutes…
>   The following things will be built/downloaded:
>   …
> 
> The second stage here typically includes profile.drv as well as
> grafts. All this is expected behavior.

I think that since profile.drv is always produced locally on the
machine, then it's unnecessary to update the list of substitutes
when it's on that second stage.




Information forwarded to bug-guix <at> gnu.org:
bug#40381; Package guix. (Sun, 26 Apr 2020 20:21:02 GMT) Full text and rfc822 format available.

Message #16 received at 40381 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: pkill9 <pkill9 <at> runbox.com>
Cc: 40381 <at> debbugs.gnu.org
Subject: Re: bug#40381: Guix shouldn't request substitutes for profile
 derivations
Date: Sun, 26 Apr 2020 22:20:38 +0200
Hi,

pkill9 <pkill9 <at> runbox.com> skribis:

>> Can you show more precisely what you mean by pasting a command and its
>> output?
>> 
>> With the recent changes in the implementation of grafts, what happens
>> is usually this:
>> 
>>   $ guix build foo
>>   updating the list of substitutes…
>>   The following things will be built/downloaded:
>>   …
>> 
>>   updating the list of substitutes…
>>   The following things will be built/downloaded:
>>   …
>> 
>> The second stage here typically includes profile.drv as well as
>> grafts. All this is expected behavior.
>
> I think that since profile.drv is always produced locally on the
> machine, then it's unnecessary to update the list of substitutes
> when it's on that second stage.

I don’t observe this, or rather I cannot blame profile.drv for this.

Can you show more precisely what you mean by pasting a command and its
output?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#40381; Package guix. (Mon, 27 Apr 2020 03:36:01 GMT) Full text and rfc822 format available.

Message #19 received at 40381 <at> debbugs.gnu.org (full text, mbox):

From: pkill9 <pkill9 <at> runbox.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 40381 <at> debbugs.gnu.org
Subject: Re: bug#40381: Guix shouldn't request substitutes for profile
 derivations
Date: Mon, 27 Apr 2020 04:35:12 +0100
Hi,

> Can you show more precisely what you mean by pasting a command and its
> output?

So it seems it tries to look for substitutes when the profile hooks are built,
not when profile.drv is built.

Here is the output without build hooks:
```
itsme <at> antelope ~> guix environment --ad-hoc hello
The following derivation will be built:
   /gnu/store/gkz9hzjpc9pj1np7vi5pwb4xhmssk55d-profile.drv
building profile with 1 package...
Welcome to fish, the friendly interactive shell
itsme <at> antelope ~ [Guix env: /gnu/store/nsi48y..]>
```

And here is output with build hooks:
```
itsme <at> antelope ~> guix environment --ad-hoc man-db hello
substitute: updating substitutes from 'https://berlin.guixsd.org'... 100.0%
substitute: updating substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivation will be built:
   /gnu/store/w623j5spid7kyxjdp6xbgxs2r5scpjkn-profile.drv
The following profile hooks will be built:
   /gnu/store/14d1mgn1mwz66mj28rwjmnkddskf4zm0-info-dir.drv
   /gnu/store/7rrkqrdpxahk8g0927d56lpgz3n1kl6z-manual-database.drv
   /gnu/store/8h76m85hiyilv0mj053i9n7k2nxb0wf1-ca-certificate-bundle.drv
   /gnu/store/ia5d18hpmza375dizljqi2x12zlirwqi-fonts-dir.drv
building CA certificate bundle...
building fonts directory...
building directory of Info manuals...
building database for manual pages...
building profile with 2 packages...
Welcome to fish, the friendly interactive shell
itsme <at> antelope ~ [Guix env: /gnu/store/9qv380..]>
```





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 30 Apr 2020 23:24:02 GMT) Full text and rfc822 format available.

Notification sent to pkill9 <pkill9 <at> runbox.com>:
bug acknowledged by developer. (Thu, 30 Apr 2020 23:24:02 GMT) Full text and rfc822 format available.

Message #24 received at 40381-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: pkill9 <pkill9 <at> runbox.com>
Cc: 40381-done <at> debbugs.gnu.org
Subject: Re: bug#40381: Guix shouldn't request substitutes for profile
 derivations
Date: Fri, 01 May 2020 01:22:51 +0200
Hi,

pkill9 <pkill9 <at> runbox.com> skribis:

> So it seems it tries to look for substitutes when the profile hooks are built,
> not when profile.drv is built.
>
> Here is the output without build hooks:
> ```
> itsme <at> antelope ~> guix environment --ad-hoc hello
> The following derivation will be built:
>    /gnu/store/gkz9hzjpc9pj1np7vi5pwb4xhmssk55d-profile.drv
> building profile with 1 package...
> Welcome to fish, the friendly interactive shell
> itsme <at> antelope ~ [Guix env: /gnu/store/nsi48y..]>
> ```
>
> And here is output with build hooks:
> ```
> itsme <at> antelope ~> guix environment --ad-hoc man-db hello
> substitute: updating substitutes from 'https://berlin.guixsd.org'... 100.0%
> substitute: updating substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> The following derivation will be built:
>    /gnu/store/w623j5spid7kyxjdp6xbgxs2r5scpjkn-profile.drv
> The following profile hooks will be built:
>    /gnu/store/14d1mgn1mwz66mj28rwjmnkddskf4zm0-info-dir.drv
>    /gnu/store/7rrkqrdpxahk8g0927d56lpgz3n1kl6z-manual-database.drv
>    /gnu/store/8h76m85hiyilv0mj053i9n7k2nxb0wf1-ca-certificate-bundle.drv
>    /gnu/store/ia5d18hpmza375dizljqi2x12zlirwqi-fonts-dir.drv

Looks like manual-database.drv was the only hook not mark as
non-substitutable.

Fixed in 69de98391d720b92206d5e45072ecd3944d95774.

Thanks,
Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 29 May 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 331 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.