about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-11-16 15:59:43 +0900
committerGitHub <noreply@github.com>2021-11-16 15:59:43 +0900
commit3c1d5779ae625cfd27fb4f4ba581ae5799b7a97a (patch)
tree06217e7aeb86af463587737cc8347476b14da3a3
parentcdc12ba5a3b57ef9fe4b1e990ee77569e4dfbae4 (diff)
parent9c7f4f481453006f1834d013c18e57e556623f2f (diff)
downloadrust-3c1d5779ae625cfd27fb4f4ba581ae5799b7a97a.tar.gz
rust-3c1d5779ae625cfd27fb4f4ba581ae5799b7a97a.zip
Rollup merge of #90928 - Mark-Simulacrum:fix-date-logging, r=pietroalbini
Use a different server for checking clock drift

The detectportal.firefox.com server seems to return a random-ish date; for
example I see the following across 5 curl's done consecutively locally, where
the real date is approximately 15 Nov 2021 06:36 UTC.

Date: Mon, 15 Nov 2021 13:34:53 GMT
Date: Mon, 15 Nov 2021 12:20:21 GMT
Date: Mon, 15 Nov 2021 00:06:47 GMT
Date: Mon, 15 Nov 2021 17:14:33 GMT
Date: Mon, 15 Nov 2021 13:33:21 GMT
-rwxr-xr-xsrc/ci/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ci/run.sh b/src/ci/run.sh
index a21b40cfb77..948445427d9 100755
--- a/src/ci/run.sh
+++ b/src/ci/run.sh
@@ -117,7 +117,7 @@ datecheck() {
   echo -n "  local time: "
   date
   echo -n "  network time: "
-  curl -fs --head http://detectportal.firefox.com/success.txt | grep ^Date: \
+  curl -fs --head http://ci-caches.rust-lang.org | grep ^Date: \
       | sed 's/Date: //g' || true
   echo "== end clock drift check =="
 }