all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Mathieu Othacehe <m.othacehe@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Plan for a release!
Date: Sat, 21 Mar 2020 16:46:36 +0100	[thread overview]
Message-ID: <87k13d1zj7.fsf@gnu.org> (raw)
In-Reply-To: <87k13fjo2i.fsf@gmail.com> (Mathieu Othacehe's message of "Fri, 20 Mar 2020 11:52:21 +0100")

Hi Mathieu!

Mathieu Othacehe <m.othacehe@gmail.com> skribis:

>>> Done, but it’d be nice to add more test of the installer!
>>
>> I can help on that. Maybe adding:
>>
>> * More partitioning patterns
>> * More DE & services
>
> Turns out, when selecting GNOME in choose-services call of (gnu tests
> install), it triggers downloads during "guix system init ..." call.
>
> I guess it's normal because the installer image does not contain those
> packages. However, as there's no connection, it fails.
>
> Not sure, we can go further?

Yes: you need to have ‘installation-os-for-gui-tests’ (or preferably a
variant thereof) include all the services/packages needed for the target
config.

In the manual installation tests we use ‘define-os-with-source’ to both
embed the target OS and its references in the installation image *and*
have the source of the target OS available in /etc/target-config.scm in
the installation image.

The 2nd step is not relevant here, but the first step remains necessary.

> From 11193c030fa64cc3e2f6505062b7aa4fa9b2a2f4 Mon Sep 17 00:00:00 2001
> From: Mathieu Othacehe <m.othacehe@gmail.com>
> Date: Fri, 20 Mar 2020 11:36:33 +0100
> Subject: [PATCH] tests: install: Abort when one installation step fails.
>
> When marionette-eval calls fail in gui-test-program, the installation
> continues which results in two scenarios:
>
> - hang forever at the next marionette-eval call,
>
> - keep going and start a broken installation, which is annoying because it
> clears the terminal and hides the error.
>
> Make sure that gui-test-program is exited with #f return code when one of the
> marionette-eval calls fail.
>
> * gnu/tests/install.scm (gui-test-program): Add a new macro
> "marionette-eval*". Use it to abort to prompt 'gui-test and return #f when one
> on the marionette-eval calls fail.

[...]

> +      (define-syntax-rule (marionette-eval* exp marionette)
> +        (unless (marionette-eval exp marionette)
> +          (abort-to-prompt 'gui-test)))

It’d be IMO clearer, although technically equivalent, to make it:

  (or (marionette-eval exp marionette)
      (throw 'marionette-eval-failure 'exp))

Perhaps you don’t even need to catch it.

Thanks for working on this!

Ludo’.

  parent reply	other threads:[~2020-03-21 15:46 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24 21:38 Plan for a release! Ludovic Courtès
2020-02-24 22:55 ` Vincent Legoll
2020-02-25 14:00   ` Jonathan Brielmaier
2020-02-25 15:15     ` Vincent Legoll
2020-02-24 23:35 ` zimoun
2020-02-25 15:47 ` Joshua Branson
2020-03-05  4:54 ` jbranso
2020-03-08 12:04   ` pelzflorian (Florian Pelz)
2020-03-08 21:03     ` kmscon not working on MacBook Ludovic Courtès
2020-03-09  7:43       ` pelzflorian (Florian Pelz)
2020-03-09  9:48         ` Vincent Legoll
2020-03-09 16:45         ` Ludovic Courtès
2020-03-11  7:14           ` pelzflorian (Florian Pelz)
2020-03-11  7:25             ` pelzflorian (Florian Pelz)
2020-03-20  8:48             ` pelzflorian (Florian Pelz)
2020-03-20  8:51               ` pelzflorian (Florian Pelz)
2020-03-25 23:00               ` pelzflorian (Florian Pelz)
2020-03-26  2:26                 ` Bengt Richter
2020-03-26 16:53                   ` pelzflorian (Florian Pelz)
2020-03-29 10:26                     ` pelzflorian (Florian Pelz)
2020-03-08 12:35   ` Gnome takes more than 5 minutes to start Ricardo Wurmus
2020-03-08 21:04   ` Btrfs/udev issue Ludovic Courtès
2020-03-05 13:42 ` Plan for a release! jbranso
2020-03-05 16:45   ` sirgazil
2020-03-06 16:32     ` Joshua Branson
2020-03-05 21:09   ` Jan
2020-03-06 16:33     ` Joshua Branson
2020-03-06 16:51     ` Thunar cannot launch gio-launch-desktop Ricardo Wurmus
2020-03-06 17:57       ` Jan
2020-03-06 21:51         ` Ricardo Wurmus
2020-03-06 23:59           ` Jan
2020-03-07 23:41           ` Jan
2020-03-08  9:08             ` Ricardo Wurmus
2020-03-08 22:05               ` Jan
2020-03-08 23:41               ` Jan
2020-03-09 22:41               ` Jan
2020-03-06  6:44   ` Plan for a release! pelzflorian (Florian Pelz)
2020-03-06  9:58     ` John Soo
2020-03-08 12:33   ` Ricardo Wurmus
2020-03-08 21:10   ` Ludovic Courtès
2020-03-12 13:54 ` Ludovic Courtès
2020-03-18 16:53   ` Ludovic Courtès
2020-03-18 17:31     ` Ricardo Wurmus
2020-03-18 17:49     ` Mathieu Othacehe
2020-03-20 10:52       ` Mathieu Othacehe
2020-03-20 13:13         ` Gábor Boskovits
2020-03-20 13:58           ` Mathieu Othacehe
2020-03-21 15:46         ` Ludovic Courtès [this message]
2020-03-23 14:05           ` Mathieu Othacehe
2020-03-26 11:55             ` Ludovic Courtès
2020-03-26 12:37               ` Vincent Legoll
2020-03-26 14:24                 ` 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

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

  git send-email \
    --in-reply-to=87k13d1zj7.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=m.othacehe@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.