[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36404] [PATCH 0/3] Refactor out common behavior for system reconfig
From: |
Jakob L. Kreuze |
Subject: |
[bug#36404] [PATCH 0/3] Refactor out common behavior for system reconfiguration. |
Date: |
Fri, 05 Jul 2019 19:45:41 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Ludovic Courtès <address@hidden> writes:
> Note that writing tests could be tricky because it’s about testing the
> effect of these reconfigure actions. At any rate, let us know how it
> goes!
This is a _very_ preliminary patch series. I'm not nearly done with it
yet; the procedures in guix/scripts/system.scm that I've replaced have
some handling for i.e. installing the bootloader configuration without
running the installer script, which my reimplementations don't yet
support.
I'm sending this tonight to make sure I'm on the right track: is this
sort of what you meant by extracting the common behavior into scripts?
Also, I didn't include any tests as part of this series, but
implementing reconfiguration like this does, indeed, make testing for
'guix deploy' much, much easier. And we'll get some tests for the
behavior of 'guix system reconfigure' out of it, too!
Jakob L. Kreuze (3):
guix system: Add 'reconfigure' module.
machine: Reimplement 'managed-host-environment-type' deployment.
guix system: Reimplement 'reconfigure'.
Makefile.am | 1 +
gnu/machine/ssh.scm | 235 ++++++++--------------------
guix/scripts/system.scm | 162 ++++++-------------
guix/scripts/system/reconfigure.scm | 157 +++++++++++++++++++
4 files changed, 270 insertions(+), 285 deletions(-)
create mode 100644 guix/scripts/system/reconfigure.scm
--
2.22.0
signature.asc
Description: PGP signature
- [bug#36404] [PATCH 0/6] Add 'guix deploy'., Ricardo Wurmus, 2019/07/01
- [bug#36404] [PATCH 0/6] Add 'guix deploy'., Ludovic Courtès, 2019/07/01
- [bug#36404] [PATCH 0/6] Add 'guix deploy'., Ludovic Courtès, 2019/07/01
- [bug#36404] [PATCH 0/6] Add 'guix deploy'., Ludovic Courtès, 2019/07/01
- [bug#36404] [PATCH 0/6] Add 'guix deploy'., Jakob L. Kreuze, 2019/07/01
- [bug#36404] [PATCH 0/6] Add 'guix deploy'., Jakob L. Kreuze, 2019/07/02
- [bug#36404] [PATCH 0/6] Add 'guix deploy'., Jakob L. Kreuze, 2019/07/04
- [bug#36404] [PATCH 0/6] Add 'guix deploy'., Ludovic Courtès, 2019/07/05
- [bug#36404] [PATCH 0/3] Refactor out common behavior for system reconfiguration.,
Jakob L. Kreuze <=
- [bug#36404] [PATCH 1/3] guix system: Add 'reconfigure' module., Jakob L. Kreuze, 2019/07/05
- [bug#36404] [PATCH 2/3] machine: Reimplement 'managed-host-environment-type' deployment., Jakob L. Kreuze, 2019/07/05
- [bug#36404] [PATCH 3/3] guix system: Reimplement 'reconfigure'., Jakob L. Kreuze, 2019/07/05
- [bug#36404] [PATCH 3/3] guix system: Reimplement 'reconfigure'., Ludovic Courtès, 2019/07/06
- [bug#36404] [PATCH 2/3] machine: Reimplement 'managed-host-environment-type' deployment., Ludovic Courtès, 2019/07/06
- [bug#36404] [PATCH 2/3] machine: Reimplement 'managed-host-environment-type' deployment., Christopher Lemmer Webber, 2019/07/07
- [bug#36404] [PATCH 2/3] machine: Reimplement 'managed-host-environment-type' deployment., Ludovic Courtès, 2019/07/07
- [bug#36404] [PATCH 1/3] guix system: Add 'reconfigure' module., Ludovic Courtès, 2019/07/06
- [bug#36404] [PATCH 0/3] Refactor out common behavior for system reconfiguration., Ludovic Courtès, 2019/07/06
- [bug#36404] [PATCH 0/3] Refactor out common behavior for system reconfiguration., Christopher Lemmer Webber, 2019/07/07