Skip to content

Commit 2ead65f

Browse files
committed
ci: Upgrade non-dist Linux testers from 16.04 to 22.04
1 parent 1cff564 commit 2ead65f

File tree

5 files changed

+16
-46
lines changed

5 files changed

+16
-46
lines changed

src/ci/docker/host-x86_64/i686-gnu-nopt/Dockerfile

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:22.04
22

3+
ARG DEBIAN_FRONTEND=noninteractive
34
RUN apt-get update && apt-get install -y --no-install-recommends \
45
g++-multilib \
56
make \
@@ -20,18 +21,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2021
COPY scripts/sccache.sh /scripts/
2122
RUN sh /scripts/sccache.sh
2223

23-
COPY scripts/cmake.sh /scripts/
24-
RUN /scripts/cmake.sh
25-
2624
RUN mkdir -p /config
2725
RUN echo "[rust]" > /config/nopt-std-config.toml
2826
RUN echo "optimize = false" >> /config/nopt-std-config.toml
2927

30-
# We are intentionally allowing an old toolchain on this builder (and that's
31-
# incompatible with LLVM downloads today).
32-
ENV NO_DOWNLOAD_CI_LLVM 1
33-
34-
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu --disable-optimize-tests \
35-
--set llvm.allow-old-toolchain
28+
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu --disable-optimize-tests
3629
ENV SCRIPT python3 ../x.py test --stage 0 --config /config/nopt-std-config.toml library/std \
3730
&& python3 ../x.py --stage 2 test

src/ci/docker/host-x86_64/i686-gnu/Dockerfile

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:22.04
22

3+
ARG DEBIAN_FRONTEND=noninteractive
34
RUN apt-get update && apt-get install -y --no-install-recommends \
45
g++-multilib \
56
make \
@@ -20,14 +21,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2021
COPY scripts/sccache.sh /scripts/
2122
RUN sh /scripts/sccache.sh
2223

23-
COPY scripts/cmake.sh /scripts/
24-
RUN /scripts/cmake.sh
25-
26-
# We are intentionally allowing an old toolchain on this builder (and that's
27-
# incompatible with LLVM downloads today).
28-
ENV NO_DOWNLOAD_CI_LLVM 1
29-
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu \
30-
--set llvm.allow-old-toolchain
24+
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu
3125
# Exclude some tests that are unlikely to be platform specific, to speed up
3226
# this slow job.
3327
ENV SCRIPT python3 ../x.py --stage 2 test \

src/ci/docker/host-x86_64/x86_64-gnu-aux/Dockerfile

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:22.04
22

3+
ARG DEBIAN_FRONTEND=noninteractive
34
RUN apt-get update && apt-get install -y --no-install-recommends \
45
g++ \
56
make \
@@ -23,13 +24,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2324
COPY scripts/sccache.sh /scripts/
2425
RUN sh /scripts/sccache.sh
2526

26-
COPY scripts/cmake.sh /scripts/
27-
RUN /scripts/cmake.sh
28-
29-
# We are intentionally allowing an old toolchain on this builder (and that's
30-
# incompatible with LLVM downloads today).
31-
ENV NO_DOWNLOAD_CI_LLVM 1
32-
33-
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu \
34-
--set llvm.allow-old-toolchain
27+
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu
3528
ENV RUST_CHECK_TARGET check-aux

src/ci/docker/host-x86_64/x86_64-gnu-distcheck/Dockerfile

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:22.04
22

3+
ARG DEBIAN_FRONTEND=noninteractive
34
RUN apt-get update && apt-get install -y --no-install-recommends \
45
g++ \
56
make \
@@ -19,14 +20,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1920
COPY scripts/sccache.sh /scripts/
2021
RUN sh /scripts/sccache.sh
2122

22-
COPY scripts/cmake.sh /scripts/
23-
RUN /scripts/cmake.sh
24-
25-
# We are intentionally allowing an old toolchain on this builder (and that's
26-
# incompatible with LLVM downloads today).
23+
# We are disabling CI LLVM since distcheck is an offline build.
2724
ENV NO_DOWNLOAD_CI_LLVM 1
2825

29-
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu --set rust.ignore-git=false \
30-
--set llvm.allow-old-toolchain
26+
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu --set rust.ignore-git=false
3127
ENV SCRIPT python3 ../x.py --stage 2 test distcheck
3228
ENV DIST_SRC 1

src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:22.04
22

3+
ARG DEBIAN_FRONTEND=noninteractive
34
RUN apt-get update && apt-get install -y --no-install-recommends \
45
g++ \
56
make \
@@ -27,6 +28,7 @@ RUN apt-get install -y \
2728
libdbus-1-3 \
2829
libexpat1 \
2930
libfontconfig1 \
31+
libgbm1 \
3032
libgcc1 \
3133
libgconf-2-4 \
3234
libgdk-pixbuf2.0-0 \
@@ -59,9 +61,6 @@ RUN apt-get install -y \
5961
COPY scripts/sccache.sh /scripts/
6062
RUN sh /scripts/sccache.sh
6163

62-
COPY scripts/cmake.sh /scripts/
63-
RUN /scripts/cmake.sh
64-
6564
COPY host-x86_64/x86_64-gnu-tools/checktools.sh /tmp/
6665

6766
RUN curl -sL https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz | tar -xJ
@@ -80,12 +79,7 @@ COPY host-x86_64/x86_64-gnu-tools/browser-ui-test.version /tmp/
8079
# the local version of the package is different than the one used by the CI.
8180
RUN npm install -g browser-ui-test@$(head -n 1 /tmp/browser-ui-test.version) --unsafe-perm=true
8281

83-
# We are intentionally allowing an old toolchain on this builder (and that's
84-
# incompatible with LLVM downloads today).
85-
ENV NO_DOWNLOAD_CI_LLVM 1
86-
8782
ENV RUST_CONFIGURE_ARGS \
88-
--set llvm.allow-old-toolchain \
8983
--build=x86_64-unknown-linux-gnu \
9084
--save-toolstates=/tmp/toolstate/toolstates.json
9185

0 commit comments

Comments
 (0)