Skip to content

Commit ba9759d

Browse files
committed
ci: Use mirrors for kernel.org in install-musl.sh
We have had a high number of CI failures in the past few days due to errors like: #9 857.0 curl: (28) Failed to connect to kernel.org port 443 after 135536 ms: Couldn't connect to server #9 ERROR: process "/bin/sh -c /install-musl.sh arm" did not complete successfully: exit code: 28 Replace the Alpine kernel.org URLs with a rust-lang mirror to mitigate this.
1 parent ec63a9d commit ba9759d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ci/install-musl.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,15 @@ git clone -n --depth=1 --filter=tree:0 -b "${alpine_version}-stable" "$alpine_gi
112112
echo "\$sha512sums" > alpine-sha512sums
113113
EOF
114114

115-
# Retrieve all the variables
116-
sh APKBUILD.vars
115+
# Use a mirror since kernel.org can be a bit inconsistent
116+
sed -i 's|https://kernel.org/pub/linux/kernel|https://ci-mirrors.rust-lang.org/linux/kernel|g' \
117+
APKBUILD.vars
117118

118119
cat APKBUILD.vars
119120

121+
# Retrieve all the variables
122+
sh APKBUILD.vars
123+
120124
kernel_version=$(tr -d "[:space:]" < alpine-kernver)
121125
pkg_version=$(tr -d "[:space:]" < alpine-pkgver)
122126

0 commit comments

Comments
 (0)