* [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message.
@ 2024-12-15 6:53 Maxim Cournoyer
2024-12-15 18:19 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Maxim Cournoyer @ 2024-12-15 6:53 UTC (permalink / raw)
To: 74882
Cc: Tobias Geerinckx-Rice, Felix Lechner, Maxim Cournoyer,
Christopher Baines, Josselin Poiret, Ludovic Courtès,
Mathieu Othacehe, Simon Tournier, Tobias Geerinckx-Rice
* guix/scripts/substitute.scm (process-query): Attempt to precise the 'update
substitutes' message.
Suggested-by: Tobias Geerinckx-Rice <me@tobias.gr>
Reported-by: Felix Lechner <felix.lechner@lease-up.com>
Change-Id: I7b3f93f32b73a6a6175a035a09ab51a6e74e384b
---
guix/scripts/substitute.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 8db730a9c0..993951e33c 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -328,7 +328,7 @@ (define* (process-query port command
(erase-current-line (current-error-port)) ;erase current line
(force-output (current-error-port))
(format (current-error-port)
- (G_ "updating substitutes from '~a'... ~5,1f%")
+ (G_ "looking for suitable substitutes on '~a'... ~5,1f%")
url (* 100. (/ done total)))
(set! done (+ 1 done)))
base-commit: cfd4f56f75a20b6732d463180d211f796c9032e5
--
2.46.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message.
2024-12-15 6:53 [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message Maxim Cournoyer
@ 2024-12-15 18:19 ` Ludovic Courtès
2024-12-16 8:16 ` Maxim Cournoyer
0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2024-12-15 18:19 UTC (permalink / raw)
To: Maxim Cournoyer
Cc: Josselin Poiret, 74882, Simon Tournier, Mathieu Othacehe,
Tobias Geerinckx-Rice, Felix Lechner, Christopher Baines
Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
> * guix/scripts/substitute.scm (process-query): Attempt to precise the 'update
> substitutes' message.
[...]
> - (G_ "updating substitutes from '~a'... ~5,1f%")
> + (G_ "looking for suitable substitutes on '~a'... ~5,1f%")
Part of the challenge here is having something that fits on one line,
which is still 80 characters for many (heck, GNOME Console or whatever
it’s called these days, the incarnation of modernity, defaults to 80
columns!).
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message.
2024-12-15 18:19 ` Ludovic Courtès
@ 2024-12-16 8:16 ` Maxim Cournoyer
2024-12-17 14:36 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Maxim Cournoyer @ 2024-12-16 8:16 UTC (permalink / raw)
To: Ludovic Courtès
Cc: Josselin Poiret, 74882, Simon Tournier, Mathieu Othacehe,
Tobias Geerinckx-Rice, Felix Lechner, Christopher Baines
Hello!
Ludovic Courtès <ludo@gnu.org> writes:
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> * guix/scripts/substitute.scm (process-query): Attempt to precise the 'update
>> substitutes' message.
>
> [...]
>
>> - (G_ "updating substitutes from '~a'... ~5,1f%")
>> + (G_ "looking for suitable substitutes on '~a'... ~5,1f%")
>
> Part of the challenge here is having something that fits on one line,
> which is still 80 characters for many (heck, GNOME Console or whatever
> it’s called these days, the incarnation of modernity, defaults to 80
> columns!).
In the original case we have 80 - 37 => 43 characters available for the
server URL.
The above diff would reduce that to 33 characters available for the
server URL; that' sill enough for our current default substitute URLs
(https://ci.guix.gnu.org/ is 24 characters, while
https://bordeaux.guix.gnu.org/ is 30 characters) although doesn't leave
much headroom.
We could perhaps shorten to just "looking for substitutes on" (drop the
'suitable ' part) ? That'd be already an improvement when it comes to
more accurately reports what is actually happening.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message.
2024-12-16 8:16 ` Maxim Cournoyer
@ 2024-12-17 14:36 ` Ludovic Courtès
2024-12-18 6:37 ` bug#74882: " Maxim Cournoyer
0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2024-12-17 14:36 UTC (permalink / raw)
To: Maxim Cournoyer
Cc: Josselin Poiret, 74882, Simon Tournier, Mathieu Othacehe,
Tobias Geerinckx-Rice, Felix Lechner, Christopher Baines
Hi,
Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
> We could perhaps shorten to just "looking for substitutes on" (drop the
> 'suitable ' part) ? That'd be already an improvement when it comes to
> more accurately reports what is actually happening.
Yes, sounds good to me!
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#74882: [PATCH] scripts: substitute: Refine 'updating substitutes' message.
2024-12-17 14:36 ` Ludovic Courtès
@ 2024-12-18 6:37 ` Maxim Cournoyer
2024-12-18 15:01 ` [bug#74882] " Felix Lechner via Guix-patches via
0 siblings, 1 reply; 7+ messages in thread
From: Maxim Cournoyer @ 2024-12-18 6:37 UTC (permalink / raw)
To: Ludovic Courtès
Cc: Josselin Poiret, Simon Tournier, Mathieu Othacehe,
Tobias Geerinckx-Rice, 74882-done, Felix Lechner,
Christopher Baines
Hi,
Ludovic Courtès <ludo@gnu.org> writes:
> Hi,
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> We could perhaps shorten to just "looking for substitutes on" (drop the
>> 'suitable ' part) ? That'd be already an improvement when it comes to
>> more accurately reports what is actually happening.
>
> Yes, sounds good to me!
Done, see commit 3607e4cb0c.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message.
2024-12-18 6:37 ` bug#74882: " Maxim Cournoyer
@ 2024-12-18 15:01 ` Felix Lechner via Guix-patches via
2024-12-19 2:03 ` Maxim Cournoyer
0 siblings, 1 reply; 7+ messages in thread
From: Felix Lechner via Guix-patches via @ 2024-12-18 15:01 UTC (permalink / raw)
To: Maxim Cournoyer
Cc: Josselin Poiret, 74882, Simon Tournier, Mathieu Othacehe,
Ludovic Courtès, Tobias Geerinckx-Rice, Christopher Baines
Hi,
On Wed, Dec 18 2024, Maxim Cournoyer wrote:
> Done, see commit 3607e4cb0c.
Thanks for all the hard work. Changing the message, however, does not
address my concern.
My issue is that substitute servers are queried too often---and possibly
for the same packages after they were already found somewhere else.
I have a lot of substitute servers because I run a custom version of
Eudev, which in turn rebuilds much of Guix. Since I cannot, in general,
rely on the official substitute network, I cross-publish my stores
locally to minimize the local build effort.
Many system updates spend more than half the time on querying substitute
servers. Changing the message does not address that issue. Thanks!
Kind regards
Felix
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message.
2024-12-18 15:01 ` [bug#74882] " Felix Lechner via Guix-patches via
@ 2024-12-19 2:03 ` Maxim Cournoyer
0 siblings, 0 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2024-12-19 2:03 UTC (permalink / raw)
To: Felix Lechner
Cc: Josselin Poiret, 74882, Simon Tournier, Mathieu Othacehe,
Ludovic Courtès, Tobias Geerinckx-Rice, Christopher Baines
Hi Felix,
Felix Lechner <felix.lechner@lease-up.com> writes:
> Hi,
>
> On Wed, Dec 18 2024, Maxim Cournoyer wrote:
>
>> Done, see commit 3607e4cb0c.
>
> Thanks for all the hard work. Changing the message, however, does not
> address my concern.
>
> My issue is that substitute servers are queried too often---and possibly
> for the same packages after they were already found somewhere else.
>
> I have a lot of substitute servers because I run a custom version of
> Eudev, which in turn rebuilds much of Guix. Since I cannot, in general,
> rely on the official substitute network, I cross-publish my stores
> locally to minimize the local build effort.
>
> Many system updates spend more than half the time on querying substitute
> servers. Changing the message does not address that issue. Thanks!
Did you open an issue for it in the bug tracker? It'd be nice to have
the full context preserved. This is a probably tricky issue to
reproduce (due to setup) and debug, so I don't expect it to be resolved
in a 5 min debug session; documenting it is key, especially if you know
of a relatively simple way to reproduce it.
Note there are various reports of problems with substitute, e.g. #51472.
You may want to search the open issues to cross-reference your problem.
Thank you!
--
Maxim
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-12-19 2:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-15 6:53 [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message Maxim Cournoyer
2024-12-15 18:19 ` Ludovic Courtès
2024-12-16 8:16 ` Maxim Cournoyer
2024-12-17 14:36 ` Ludovic Courtès
2024-12-18 6:37 ` bug#74882: " Maxim Cournoyer
2024-12-18 15:01 ` [bug#74882] " Felix Lechner via Guix-patches via
2024-12-19 2:03 ` Maxim Cournoyer
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.