Skip to content

Commit 7869d20

Browse files
committed
Auto merge of #1486 - pietroalbini:switch-mirrors-bucket, r=gnzlbg
ci: switch to the rust-lang-ci-mirrors bucket for mirrors Previously mirrors were stored in the rust-lang-ci2 bucket, which is meant to store temporary data (the CI artifacts). This switches the code to fetch from the new mirrors bucket. The old files won't be removed, but they won't be backed up either. r? @gnzlbg
2 parents fd963f4 + 30133d9 commit 7869d20

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

ci/docker/mips-unknown-linux-musl/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN mkdir /toolchain
88

99
# Note that this originally came from:
1010
# https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
11-
RUN curl --retry 5 -L https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
11+
RUN curl --retry 5 -L https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/libc/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
1212
tar xjf - -C /toolchain --strip-components=1
1313

1414
ENV PATH=$PATH:/rust/bin:/toolchain/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.15/bin \

ci/docker/mipsel-unknown-linux-musl/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN mkdir /toolchain
88

99
# Note that this originally came from:
1010
# https://downloads.openwrt.org/snapshots/trunk/malta/generic/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
11-
RUN curl --retry 5 -L https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
11+
RUN curl --retry 5 -L https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/libc/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
1212
tar xjf - -C /toolchain --strip-components=2
1313

1414
ENV PATH=$PATH:/rust/bin:/toolchain/bin \

ci/run.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
set -ex
77

8+
MIRRORS_URL="https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/libc"
9+
810
TARGET="${1}"
911

1012
# If we're going to run tests inside of a qemu image, then we don't need any of
@@ -21,21 +23,21 @@ if [ "$QEMU" != "" ]; then
2123
# image is .gz : download and uncompress it
2224
qemufile="$(echo "${QEMU%.gz}" | sed 's/\//__/g')"
2325
if [ ! -f "${tmpdir}/${qemufile}" ]; then
24-
curl --retry 5 "https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/${QEMU}" | \
26+
curl --retry 5 "${MIRRORS_URL}/${QEMU}" | \
2527
gunzip -d > "${tmpdir}/${qemufile}"
2628
fi
2729
elif [ -z "${QEMU#*.xz}" ]; then
2830
# image is .xz : download and uncompress it
2931
qemufile="$(echo "${QEMU%.xz}" | sed 's/\//__/g')"
3032
if [ ! -f "${tmpdir}/${qemufile}" ]; then
31-
curl --retry 5 "https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/${QEMU}" | \
33+
curl --retry 5 "${MIRRORS_URL}/${QEMU}" | \
3234
unxz > "${tmpdir}/${qemufile}"
3335
fi
3436
else
3537
# plain qcow2 image: just download it
3638
qemufile="$(echo "${QEMU}" | sed 's/\//__/g')"
3739
if [ ! -f "${tmpdir}/${qemufile}" ]; then
38-
curl --retry 5 "https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/${QEMU}" \
40+
curl --retry 5 "${MIRRORS_URL}/${QEMU}" | \
3941
> "${tmpdir}/${qemufile}"
4042
fi
4143
fi

0 commit comments

Comments
 (0)