GNU bug report logs -
#37553
[PATCH] inferior: Change to using guix-repl.
Previous Next
Reported by: Christopher Baines <mail <at> cbaines.net>
Date: Sun, 29 Sep 2019 13:02:01 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37553 in the body.
You can then email your comments to 37553 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#37553
; Package
guix-patches
.
(Sun, 29 Sep 2019 13:02:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Christopher Baines <mail <at> cbaines.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 29 Sep 2019 13:02:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Rather than machine-repl, that was removed in [1]. While this could work if
the %load-path is such that a module that defines machine-repl is loaded, I
believe the intent is that the (guix scripts repl) module comes from the Guix
managing the inferior. Therefore, matching the changes in [1], switch to
calling the guix-repl function with the right arguments.
1: 92a4087bf4862d5ba9b77111eba3c68c2a1c4679
* guix/inferior.scm (inferior-pipe): Call guix-repl, rather than machine-repl,
and add necessary arguments.
---
guix/inferior.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/guix/inferior.scm b/guix/inferior.scm
index dcbc954432..7c0143062b 100644
--- a/guix/inferior.scm
+++ b/guix/inferior.scm
@@ -137,7 +137,8 @@ it's an old Guix."
`(begin
(primitive-load ,(search-path %load-path
"guix/scripts/repl.scm"))
- ((@ (guix scripts repl) machine-repl))))))
+ ((@ (guix scripts repl) guix-repl)
+ "-t" "machine")))))
pipe)))
(define* (port->inferior pipe #:optional (close close-port))
--
2.23.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37553
; Package
guix-patches
.
(Sun, 29 Sep 2019 15:21:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 37553 <at> debbugs.gnu.org (full text, mbox):
Rather than (guix scripts repl), from which the machine-repl procedure was
removed in [1].
1: 92a4087bf4862d5ba9b77111eba3c68c2a1c4679
* guix/inferior.scm (inferior-pipe): Load (guix repl) rather than (guix
scripts repl).
---
guix/inferior.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/inferior.scm b/guix/inferior.scm
index dcbc954432..dcffb7b4ab 100644
--- a/guix/inferior.scm
+++ b/guix/inferior.scm
@@ -137,7 +137,7 @@ it's an old Guix."
`(begin
(primitive-load ,(search-path %load-path
"guix/scripts/repl.scm"))
- ((@ (guix scripts repl) machine-repl))))))
+ ((@ (guix repl) machine-repl))))))
pipe)))
(define* (port->inferior pipe #:optional (close close-port))
--
2.23.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37553
; Package
guix-patches
.
(Sun, 29 Sep 2019 15:58:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 37553 <at> debbugs.gnu.org (full text, mbox):
Rather than (guix scripts repl), from which the machine-repl procedure was
removed in [1].
1: 92a4087bf4862d5ba9b77111eba3c68c2a1c4679
* guix/inferior.scm (inferior-pipe): Load (guix repl) rather than (guix
scripts repl).
---
guix/inferior.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/guix/inferior.scm b/guix/inferior.scm
index dcbc954432..d6d2053ab8 100644
--- a/guix/inferior.scm
+++ b/guix/inferior.scm
@@ -136,8 +136,8 @@ it's an old Guix."
(object->string
`(begin
(primitive-load ,(search-path %load-path
- "guix/scripts/repl.scm"))
- ((@ (guix scripts repl) machine-repl))))))
+ "guix/repl.scm"))
+ ((@ (guix repl) machine-repl))))))
pipe)))
(define* (port->inferior pipe #:optional (close close-port))
--
2.23.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37553
; Package
guix-patches
.
(Tue, 01 Oct 2019 08:57:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 37553 <at> debbugs.gnu.org (full text, mbox):
Hi,
Christopher Baines <mail <at> cbaines.net> skribis:
> Rather than (guix scripts repl), from which the machine-repl procedure was
> removed in [1].
>
> 1: 92a4087bf4862d5ba9b77111eba3c68c2a1c4679
>
> * guix/inferior.scm (inferior-pipe): Load (guix repl) rather than (guix
> scripts repl).
> ---
> guix/inferior.scm | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/guix/inferior.scm b/guix/inferior.scm
> index dcbc954432..d6d2053ab8 100644
> --- a/guix/inferior.scm
> +++ b/guix/inferior.scm
> @@ -136,8 +136,8 @@ it's an old Guix."
> (object->string
> `(begin
> (primitive-load ,(search-path %load-path
> - "guix/scripts/repl.scm"))
> - ((@ (guix scripts repl) machine-repl))))))
> + "guix/repl.scm"))
> + ((@ (guix repl) machine-repl))))))
> pipe)))
This one LGTM!
(Note that this code is only used when spawning an inferior for a
revision that dates back to before ‘guix repl’ existed, so before July
2018.)
Thanks,
Ludo’.
Reply sent
to
Christopher Baines <mail <at> cbaines.net>
:
You have taken responsibility.
(Tue, 01 Oct 2019 19:27:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Christopher Baines <mail <at> cbaines.net>
:
bug acknowledged by developer.
(Tue, 01 Oct 2019 19:27:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 37553-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi,
>
> Christopher Baines <mail <at> cbaines.net> skribis:
>
>> Rather than (guix scripts repl), from which the machine-repl procedure was
>> removed in [1].
>>
>> 1: 92a4087bf4862d5ba9b77111eba3c68c2a1c4679
>>
>> * guix/inferior.scm (inferior-pipe): Load (guix repl) rather than (guix
>> scripts repl).
>> ---
>> guix/inferior.scm | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/guix/inferior.scm b/guix/inferior.scm
>> index dcbc954432..d6d2053ab8 100644
>> --- a/guix/inferior.scm
>> +++ b/guix/inferior.scm
>> @@ -136,8 +136,8 @@ it's an old Guix."
>> (object->string
>> `(begin
>> (primitive-load ,(search-path %load-path
>> - "guix/scripts/repl.scm"))
>> - ((@ (guix scripts repl) machine-repl))))))
>> + "guix/repl.scm"))
>> + ((@ (guix repl) machine-repl))))))
>> pipe)))
>
> This one LGTM!
Great :) I've pushed it as 2cd599f005bb91ae120a66824b8efbac81a27a69.
> (Note that this code is only used when spawning an inferior for a
> revision that dates back to before ‘guix repl’ existed, so before July
> 2018.)
Yep, I've been experimenting with loading older revisions in to the Guix
Data Service, and this is one of the issues I came across.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37553
; Package
guix-patches
.
(Wed, 02 Oct 2019 09:32:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 37553-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Christopher Baines <mail <at> cbaines.net> skribis:
> Yep, I've been experimenting with loading older revisions in to the Guix
> Data Service, and this is one of the issues I came across.
Nice! I’ve been thinking we should have time-traveling continuous
integration. Like checking that we can build some Guix revision of the
past in between two ‘core-updates’ merges.
It would also be useful to flag known-bad revisions, but in a way the
Data Service is already doing that for recent revisions.
Thanks,
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37553
; Package
guix-patches
.
(Sun, 06 Oct 2019 08:47:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 37553-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi,
>
> Christopher Baines <mail <at> cbaines.net> skribis:
>
>> Yep, I've been experimenting with loading older revisions in to the Guix
>> Data Service, and this is one of the issues I came across.
>
> Nice! I’ve been thinking we should have time-traveling continuous
> integration. Like checking that we can build some Guix revision of the
> past in between two ‘core-updates’ merges.
>
> It would also be useful to flag known-bad revisions, but in a way the
> Data Service is already doing that for recent revisions.
So I've been looking at retrying failed jobs in the Guix Data Service,
there are a few where it's just networking issues talking to Savannah.
I guess it could be useful to have a list of revisions which can't be
used through guix pull or a channel, and that information could also be
used in the Guix Data Service.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37553
; Package
guix-patches
.
(Sun, 06 Oct 2019 08:59:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 37553-done <at> debbugs.gnu.org (full text, mbox):
Hi Chris,
Christopher Baines <mail <at> cbaines.net> skribis:
> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> Hi,
>>
>> Christopher Baines <mail <at> cbaines.net> skribis:
>>
>>> Yep, I've been experimenting with loading older revisions in to the Guix
>>> Data Service, and this is one of the issues I came across.
>>
>> Nice! I’ve been thinking we should have time-traveling continuous
>> integration. Like checking that we can build some Guix revision of the
>> past in between two ‘core-updates’ merges.
>>
>> It would also be useful to flag known-bad revisions, but in a way the
>> Data Service is already doing that for recent revisions.
>
> So I've been looking at retrying failed jobs in the Guix Data Service,
> there are a few where it's just networking issues talking to Savannah.
Cool.
> I guess it could be useful to have a list of revisions which can't be
> used through guix pull or a channel, and that information could also be
> used in the Guix Data Service.
Yes, thanks for looking into it!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 03 Nov 2019 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.