unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32955: Cuirass: Some tests depend on 'guix-current', which makes them resource expensive
@ 2018-10-06 14:10 Clément Lassieur
  2018-10-06 14:37 ` Clément Lassieur
  2018-10-08 13:25 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Clément Lassieur @ 2018-10-06 14:10 UTC (permalink / raw)
  To: 32955

Hi,

Tests depending on 'guix-current' are expensive in terms of CPU and
storage usage since we need to build (current-guix) and then store a
couple of full system images.

They are built at each evaluation because they depend on 'guix-current'.
(And they all fail.)

    test.btrfs-root-os.x86_64-linux
    test.encrypted-root-os.x86_64-linux
    test.installed-extlinux-os.x86_64-linux
    test.separate-home-os.x86_64-linux
    test.raid-root-os.x86_64-linux
    test.separate-store-os.x86_64-linux
    test.iso-image-installer.x86_64-linux
    test.installed-os.x86_64-linux
    
    test.btrfs-root-os.i686-linux
    test.encrypted-root-os.i686-linux
    test.installed-extlinux-os.i686-linux
    test.separate-home-os.i686-linux
    test.raid-root-os.i686-linux
    test.separate-store-os.i686-linux
    test.iso-image-installer.i686-linux
    test.installed-os.i686-linux

It seems that the reason is explained by that comment in
gnu/tests/install.scm:

    ;; Since the image has no network access, use the
    ;; current Guix so the store items we need are in
    ;; the image and add packages provided.

Is there another way to get those tests to work without depending on
'guix-current'?

Clément

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32955: Cuirass: Some tests depend on 'guix-current', which makes them resource expensive
  2018-10-06 14:10 bug#32955: Cuirass: Some tests depend on 'guix-current', which makes them resource expensive Clément Lassieur
@ 2018-10-06 14:37 ` Clément Lassieur
  2018-10-07 12:16   ` Clément Lassieur
  2018-10-08 13:25 ` Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Clément Lassieur @ 2018-10-06 14:37 UTC (permalink / raw)
  To: 32955

Clément Lassieur <clement@lassieur.org> writes:

> Hi,
>
> Tests depending on 'guix-current' are expensive in terms of CPU and
> storage usage since we need to build (current-guix) and then store a
> couple of full system images.
>
> They are built at each evaluation because they depend on 'guix-current'.
> (And they all fail.)

I understand that 'guix-current' is only built once at each evaluation,
of course.  And now I wonder: is it the same one that is built for
guix-modular?  In that case it's not really useless.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32955: Cuirass: Some tests depend on 'guix-current', which makes them resource expensive
  2018-10-06 14:37 ` Clément Lassieur
@ 2018-10-07 12:16   ` Clément Lassieur
  0 siblings, 0 replies; 5+ messages in thread
From: Clément Lassieur @ 2018-10-07 12:16 UTC (permalink / raw)
  To: 32955-done

Clément Lassieur <clement@lassieur.org> writes:

> Clément Lassieur <clement@lassieur.org> writes:
>
>> Hi,
>>
>> Tests depending on 'guix-current' are expensive in terms of CPU and
>> storage usage since we need to build (current-guix) and then store a
>> couple of full system images.
>>
>> They are built at each evaluation because they depend on 'guix-current'.
>> (And they all fail.)
>
> I understand that 'guix-current' is only built once at each evaluation,
> of course.  And now I wonder: is it the same one that is built for
> guix-modular?  In that case it's not really useless.

Closing it, because those builds are idle most of the time, until they
fail.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32955: Cuirass: Some tests depend on 'guix-current', which makes them resource expensive
  2018-10-06 14:10 bug#32955: Cuirass: Some tests depend on 'guix-current', which makes them resource expensive Clément Lassieur
  2018-10-06 14:37 ` Clément Lassieur
@ 2018-10-08 13:25 ` Ludovic Courtès
  2018-10-08 13:44   ` Clément Lassieur
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2018-10-08 13:25 UTC (permalink / raw)
  To: Clément Lassieur; +Cc: 32955

Hello,

Clément Lassieur <clement@lassieur.org> skribis:

> Tests depending on 'guix-current' are expensive in terms of CPU and
> storage usage since we need to build (current-guix) and then store a
> couple of full system images.

[...]

> Is there another way to get those tests to work without depending on
> 'guix-current'?

These tests are indeed expensive.  However the motivation here is
precisely to test a complete installation procedure using the current
Guix in the installation image.  If we were to change that we’d be
testing something different and much less interesting.

So I think there’s not much we can do here.

Does that make sense?

(Note that all the other system tests use just whatever snapshot the
‘guix’ package refers to, which is good enough for them because they
don’t test things where Guix itself is involved.)

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32955: Cuirass: Some tests depend on 'guix-current', which makes them resource expensive
  2018-10-08 13:25 ` Ludovic Courtès
@ 2018-10-08 13:44   ` Clément Lassieur
  0 siblings, 0 replies; 5+ messages in thread
From: Clément Lassieur @ 2018-10-08 13:44 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 32955

Ludovic Courtès <ludo@gnu.org> writes:

> Hello,
>
> Clément Lassieur <clement@lassieur.org> skribis:
>
>> Tests depending on 'guix-current' are expensive in terms of CPU and
>> storage usage since we need to build (current-guix) and then store a
>> couple of full system images.
>
> [...]
>
>> Is there another way to get those tests to work without depending on
>> 'guix-current'?
>
> These tests are indeed expensive.  However the motivation here is
> precisely to test a complete installation procedure using the current
> Guix in the installation image.  If we were to change that we’d be
> testing something different and much less interesting.
>
> So I think there’s not much we can do here.
>
> Does that make sense?

Yes it does :-)  Thank you for the reply!

> (Note that all the other system tests use just whatever snapshot the
> ‘guix’ package refers to, which is good enough for them because they
> don’t test things where Guix itself is involved.)
>
> Thanks,
> Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-08 14:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-06 14:10 bug#32955: Cuirass: Some tests depend on 'guix-current', which makes them resource expensive Clément Lassieur
2018-10-06 14:37 ` Clément Lassieur
2018-10-07 12:16   ` Clément Lassieur
2018-10-08 13:25 ` Ludovic Courtès
2018-10-08 13:44   ` Clément Lassieur

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).