unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: guix-devel@gnu.org, Mathieu Othacehe <othacehe@gnu.org>
Subject: Re: 02/06: installer: Check if ci.guix.gnu.org can be reached.
Date: Sun, 16 Jan 2022 22:25:43 +0100	[thread overview]
Message-ID: <874k631ig8.fsf@gnu.org> (raw)
In-Reply-To: <20220114133129.E8757C0DA29@vcs2.savannah.gnu.org> (guix-commits@gnu.org's message of "Fri, 14 Jan 2022 08:31:28 -0500 (EST)")

Hi,

guix-commits@gnu.org skribis:

> commit ee897e5f51104f41b3c2a0c2cbc7eb4e6c1e4d3e
> Author: Mathieu Othacehe <othacehe@gnu.org>
> AuthorDate: Tue Dec 28 11:19:55 2021 +0100
>
>     installer: Check if ci.guix.gnu.org can be reached.
>     
>     * gnu/installer.scm (installer-program): Add gnutls extension.
>     * gnu/installer/newt/network.scm (wait-service-online): Check if the CI server
>     can be reached.

[...]

> +  (define (ci-available?)
> +    (dynamic-wind
> +      (lambda ()
> +        (sigaction SIGALRM
> +          (lambda _ #f))
> +        (alarm 3))
> +      (lambda ()
> +        (false-if-exception
> +         (= (response-code
> +             (http-request "https://ci.guix.gnu.org"))
> +            200)))

What about replacing the hard-coded URL with a reference to
‘%default-substitute-urls’?

Since it’s a list, we could check that at least one of the URLs in that
list is reachable.

Also, perhaps replace ‘http-request’ (which does GET by default) by
‘http-head’?

My 2¢,
Ludo’.


           reply	other threads:[~2022-01-16 21:26 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20220114133129.E8757C0DA29@vcs2.savannah.gnu.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874k631ig8.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=othacehe@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).