* [bug#40497] [PATCH] reconfigure: Don't call build-derivations for upgrade-services test
@ 2020-04-07 21:14 Christopher Baines
2020-04-23 21:49 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2020-04-07 21:14 UTC (permalink / raw)
To: 40497
This commit adjusts the upgrade-services system test to not build anything
when computing the derivation for the system test. I came across this when
looking at issues computing the system test derivations to store in the Guix
Data Service.
* gnu/tests/reconfigure.scm (run-upgrade-services-test): Remove the use of,
and definition for ensure-service-file.
---
gnu/tests/reconfigure.scm | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/gnu/tests/reconfigure.scm b/gnu/tests/reconfigure.scm
index 8b85920979..928a210a94 100644
--- a/gnu/tests/reconfigure.scm
+++ b/gnu/tests/reconfigure.scm
@@ -136,14 +136,6 @@ Shepherd (PID 1) by unloading obsolete services and loading new services."
(stop #~(const #t))
(respawn? #f)))
- ;; Return the Shepherd service file for SERVICE, after ensuring that it
- ;; exists in the store.
- (define (ensure-service-file service)
- (let ((file (shepherd-service-file service)))
- (mlet* %store-monad ((store-object (lower-object file))
- (_ (built-derivations (list store-object))))
- (return file))))
-
(define (test enable-dummy disable-dummy)
(with-imported-modules '((gnu build marionette))
#~(begin
@@ -187,10 +179,12 @@ Shepherd (PID 1) by unloading obsolete services and loading new services."
(test-end)
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
- (mlet* %store-monad ((file (ensure-service-file dummy-service)))
- (let ((enable (upgrade-services-program (list file) '(dummy) '() '()))
+ (gexp->derivation
+ "upgrade-services"
+ (let* ((file (shepherd-service-file dummy-service))
+ (enable (upgrade-services-program (list file) '(dummy) '() '()))
(disable (upgrade-services-program '() '() '(dummy) '())))
- (gexp->derivation "upgrade-services" (test enable disable)))))
+ (test enable disable))))
(define* (run-install-bootloader-test)
"Run a test of an OS running INSTALL-BOOTLOADER-PROGRAM, which installs a
--
2.26.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#40497] [PATCH] reconfigure: Don't call build-derivations for upgrade-services test
2020-04-07 21:14 [bug#40497] [PATCH] reconfigure: Don't call build-derivations for upgrade-services test Christopher Baines
@ 2020-04-23 21:49 ` Ludovic Courtès
2020-04-26 18:44 ` bug#40497: " Christopher Baines
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2020-04-23 21:49 UTC (permalink / raw)
To: Christopher Baines; +Cc: 40497
Hi,
Christopher Baines <mail@cbaines.net> skribis:
> This commit adjusts the upgrade-services system test to not build anything
> when computing the derivation for the system test. I came across this when
> looking at issues computing the system test derivations to store in the Guix
> Data Service.
>
> * gnu/tests/reconfigure.scm (run-upgrade-services-test): Remove the use of,
> and definition for ensure-service-file.
LGTM, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#40497: [PATCH] reconfigure: Don't call build-derivations for upgrade-services test
2020-04-23 21:49 ` Ludovic Courtès
@ 2020-04-26 18:44 ` Christopher Baines
0 siblings, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2020-04-26 18:44 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 40497-done
[-- Attachment #1: Type: text/plain, Size: 612 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Christopher Baines <mail@cbaines.net> skribis:
>
>> This commit adjusts the upgrade-services system test to not build anything
>> when computing the derivation for the system test. I came across this when
>> looking at issues computing the system test derivations to store in the Guix
>> Data Service.
>>
>> * gnu/tests/reconfigure.scm (run-upgrade-services-test): Remove the use of,
>> and definition for ensure-service-file.
>
> LGTM, thanks!
Great, I've pushed this as 53aa66c3dff8a59b5c596691d9126db6a2327983,
thanks for taking a look!
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-26 18:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-07 21:14 [bug#40497] [PATCH] reconfigure: Don't call build-derivations for upgrade-services test Christopher Baines
2020-04-23 21:49 ` Ludovic Courtès
2020-04-26 18:44 ` bug#40497: " Christopher Baines
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).