mbox series

[bug#58017,0/2] Retry nar downloads upon failure

Message ID 20220923061616.5453-1-ludo@gnu.org
Headers show
Series Retry nar downloads upon failure | expand

Message

Ludovic Courtès Sept. 23, 2022, 6:16 a.m. UTC
Hello!

This is a long overdue fix for <https://issues.guix.gnu.org/57978>:
when a nar cannot be downloaded from its “preferred” location,
‘guix substitute --substitute’ will now retry once for each substitute
URL instead of failing right away.

This should address the most common issues such as transient
networking failures.

Comments?

Thanks,
Ludo’.

Ludovic Courtès (2):
  substitute: Split nar download.
  substitute: Retry downloading when a nar is unavailable.

 guix/scripts/substitute.scm | 157 +++++++++++++++++++++++++++---------
 tests/substitute.scm        | 113 ++++++++++++++++++++++++++
 2 files changed, 231 insertions(+), 39 deletions(-)


base-commit: a09655b20850d065333ec333e6e184b604f606a8

Comments

Ludovic Courtès Sept. 28, 2022, 9:24 p.m. UTC | #1
Hi,

Ludovic Courtès <ludo@gnu.org> skribis:

>   substitute: Split nar download.
>   substitute: Retry downloading when a nar is unavailable.

Pushed as 8bd4126917f59f4af9a4323c3d5699201862dca2.  The ‘guix’ package
has yet to be updated.

Thanks,
Ludo’.