all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Hartmut Goebel <h.goebel@crazy-compilers.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Best-practice to "develop" a system-config / service?
Date: Sat, 11 Nov 2017 14:51:55 +0100	[thread overview]
Message-ID: <87tvy0hqis.fsf@gnu.org> (raw)
In-Reply-To: <132a3313-27ac-210c-8156-41fa3e06d46f@crazy-compilers.com> (Hartmut Goebel's message of "Sat, 11 Nov 2017 14:22:59 +0100")

Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> Am 11.11.2017 um 12:31 schrieb Ludovic Courtès:
>> I think all you want, to test your KDE service, is to:
>>
>>   1. Write an OS config that uses the service.
>>
>>   2. Run “./pre-inst-env guix system vm that-config.scm”, run the VM,
>>      and check if it works.
>>
>> That’s really all it takes to develop and test a system service.
>
> Not in my case. Plasma heavily relies on plugins and such. I have added
> about 50 package to the system configuration to make Plasma start. Now I
> need [1] to iterately remove (and re-add) packages (not services!) to
> learn what are actual the minimum requirements.
>
> Creating a new VM for each iteration is *much* too time-consuming – no
> matter if using "vm-image" or "vm" –, let alone since this required to
> reboot the machine each time. Even if I would try to write a test-case
> for this [2], each cycle would take too much time.

Well, I’ve always used the above approach to test system services as I
worked on them, and the 10–30 seconds it took for ‘guix system vm’ to
complete as I tweak the service were never that much of a hindrance to
me.

But yeah, I understand you’re using ‘vm-image’, so it’s a different
story since ‘vm-image’ takes ages.

Now, it seems to me that the workflow you describe has become this
complicated just because of the slowness of Plasma in the VM.  To me
that’s something worth investigating.  Granted a VM with a 9p-mounted
store is slower than a bare metal system, but it shouldn’t be this slow.
Something’s wrong.

> On a Fedora-like system I would simply 'rpm -e PACKAGENAME`.
> Unfortunately guix is not able to uninstall a package it does not know
> (see <https://lists.gnu.org/archive/html/guix-devel/2017-11/msg00160.html>).

It cannot uninstall a propagated package, if that’s what you mean.

Ludo’.

  reply	other threads:[~2017-11-11 13:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-09 10:36 Best-practice to "develop" a system-config / service? Hartmut Goebel
2017-11-10  0:15 ` Marius Bakke
2017-11-11 11:31 ` Ludovic Courtès
2017-11-11 13:05   ` Speed of qemu VM sharing the store (was: Best-practice to "develop" a system-config / service?) Hartmut Goebel
2017-11-11 13:45     ` Speed of qemu VM sharing the store Ludovic Courtès
2017-11-12 10:19       ` Hartmut Goebel
2017-11-11 13:22   ` Best-practice to "develop" a system-config / service? Hartmut Goebel
2017-11-11 13:51     ` Ludovic Courtès [this message]
2017-11-12 15:50       ` Hartmut Goebel
2017-11-13 10:44         ` Ludovic Courtès
2017-11-18  9:09           ` Hartmut Goebel

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=87tvy0hqis.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=h.goebel@crazy-compilers.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.