unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: bo0od <bo0od@riseup.net>,Leo Famulari <leo@famulari.name>
Cc: 48166@debbugs.gnu.org
Subject: bug#48166: Dont stop the upgrade process - Better guix handling when Package failed to build
Date: Sun, 02 May 2021 21:50:39 -0400	[thread overview]
Message-ID: <3C1DFBAD-68E9-4B7C-9610-222DAFF8A745@lepiller.eu> (raw)
In-Reply-To: <e0b306c2-82bb-438f-cb30-3f9e064e2d96@riseup.net>

[-- Attachment #1: Type: text/plain, Size: 2422 bytes --]

I don't think --keep-going works as you expect it to. When you do guix upgrade, guix creates a derivation for your new profile and proceeds to build it. If it has dependents that need to be built (packages that were updated), it builds them as they are needed to build the new profile.

If one of them fails, guix fails early by default. --keep-going will, well, keep going and guix will build the rest of the dependents that are independent from that failure.

However, it will eventually fail (late) when it tries to finally build the derivation for the new derivation: itqdepends on other derivations that already failed. Not sure how it reports the failures, but it might be easier to list all the failures in one try, and apply your workaround.

To do what you want (create a new generations ignoring failures) is not easy to implement. We would have to "change our mind" and build a different derivation for that new profile.

Le 2 mai 2021 21:00:02 GMT-04:00, bo0od <bo0od@riseup.net> a écrit :
> > I think you can use `guix package --upgrade . --keep-going`:
>
>Thank you for the hint, sorry i didnt know this command exist.
>
>Currently i cant test this because i dont have a package which has an 
>error in the building (previous icedove bug should be fixed) to see how
>
>this is going to go.
>
>- First question:
>
>Why this is not default? and what not default should be:
>
>--stop-at-error or --dont-proceed-error ..(or whatever)
>
>- Second question:
>
>Does it show the error at the end or during the upgrade or both (same
>as 
>my example before)? So user is aware that one or more of his packages 
>didnt upgraded.
>
>- If second question is yes then that command can replace 
>--do-not-upgrade in my previous workaround faster implementation but
>not 
>ultimate.
>
>
>
>
>Leo Famulari:
>> On Sun, May 02, 2021 at 08:29:31PM +0000, bo0od wrote:
>>> Current (manual) solution is:
>>>
>>> guix package --upgrade . --do-not-upgrade x
>> 
>> I think you can use `guix package --upgrade . --keep-going`:
>> 
>>
>https://guix.gnu.org/manual/devel/en/html_node/Common-Build-Options.html
>> 
>> --keep-going
>> -k
>> 
>>      Keep going when some of the derivations fail to build; return
>only once all the builds have either completed or failed.
>> 
>>      The default behavior is to stop as soon as one of the specified
>derivations has failed.
>> 

[-- Attachment #2: Type: text/html, Size: 3171 bytes --]

  reply	other threads:[~2021-05-03  1:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-02 20:29 bug#48166: Dont stop the upgrade process - Better guix handling when Package failed to build bo0od
2021-05-02 20:55 ` Leo Famulari
2021-05-03  1:00   ` bo0od
2021-05-03  1:50     ` Julien Lepiller [this message]
2021-05-03  2:25       ` bo0od
2021-05-04 19:57       ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C1DFBAD-68E9-4B7C-9610-222DAFF8A745@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=48166@debbugs.gnu.org \
    --cc=bo0od@riseup.net \
    --cc=leo@famulari.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).