Skip to content

Commit 4ee8d84

Browse files
committed
Use --stage 2 explicitly in CI
- expand yaml anchors - don't use --stage 2 for dist; that's already the default
1 parent cdca337 commit 4ee8d84

File tree

24 files changed

+36
-36
lines changed

24 files changed

+36
-36
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,15 +406,15 @@ jobs:
406406
os: windows-latest-xl
407407
- name: x86_64-msvc-cargo
408408
env:
409-
SCRIPT: python x.py test src/tools/cargotest src/tools/cargo
409+
SCRIPT: python x.py --stage 2 test src/tools/cargotest src/tools/cargo
410410
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-lld"
411411
VCVARS_BAT: vcvars64.bat
412412
NO_DEBUG_ASSERTIONS: 1
413413
NO_LLVM_ASSERTIONS: 1
414414
os: windows-latest-xl
415415
- name: x86_64-msvc-tools
416416
env:
417-
SCRIPT: src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh x.py /tmp/toolstate/toolstates.json windows
417+
SCRIPT: src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh x.py --stage 2 /tmp/toolstate/toolstates.json windows
418418
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --save-toolstates=/tmp/toolstate/toolstates.json"
419419
os: windows-latest-xl
420420
- name: i686-mingw-1
@@ -598,7 +598,7 @@ jobs:
598598
os: macos-latest
599599
- name: x86_64-apple
600600
env:
601-
SCRIPT: "./x.py test"
601+
SCRIPT: "./x.py --stage 2 test"
602602
RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc"
603603
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
604604
MACOSX_DEPLOYMENT_TARGET: 10.8

src/ci/azure-pipelines/auto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# Note that the compiler is compiled to target 10.8 here because the Xcode
3737
# version that we're using, 8.2, cannot compile LLVM for OSX 10.7.
3838
x86_64-apple:
39-
SCRIPT: ./x.py test
39+
SCRIPT: ./x.py --stage 2 test
4040
INITIAL_RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc
4141
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
4242
MACOSX_DEPLOYMENT_TARGET: 10.8

src/ci/docker/host-aarch64/aarch64-gnu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ ENV RUST_CONFIGURE_ARGS \
2323
--enable-sanitizers \
2424
--enable-profiler \
2525
--enable-compiler-docs
26-
ENV SCRIPT python3 ../x.py test
26+
ENV SCRIPT python3 ../x.py --stage 2 test

src/ci/docker/host-x86_64/arm-android/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ENV TARGETS=arm-linux-androideabi
3131

3232
ENV RUST_CONFIGURE_ARGS --arm-linux-androideabi-ndk=/android/ndk/arm-14
3333

34-
ENV SCRIPT python3 ../x.py test --target $TARGETS
34+
ENV SCRIPT python3 ../x.py --stage 2 test --target $TARGETS
3535

3636
COPY scripts/sccache.sh /scripts/
3737
RUN sh /scripts/sccache.sh

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ COPY scripts/sccache.sh /scripts/
7878
RUN sh /scripts/sccache.sh
7979

8080
ENV RUST_CONFIGURE_ARGS --qemu-armhf-rootfs=/tmp/rootfs
81-
ENV SCRIPT python3 ../x.py test --target arm-unknown-linux-gnueabihf
81+
ENV SCRIPT python3 ../x.py --stage 2 test --target arm-unknown-linux-gnueabihf
8282

8383
ENV NO_CHANGE_USER=1

src/ci/docker/host-x86_64/disabled/asmjs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ENV EMCC_CFLAGS=-O1
3333
# Emscripten installation is user-specific
3434
ENV NO_CHANGE_USER=1
3535

36-
ENV SCRIPT python3 ../x.py test --target $TARGETS
36+
ENV SCRIPT python3 ../x.py --stage 2 test --target $TARGETS
3737

3838
# This is almost identical to the wasm32-unknown-emscripten target, so
3939
# running with assertions again is not useful

src/ci/docker/host-x86_64/disabled/dist-armv7-android/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ENV RUST_CONFIGURE_ARGS \
3333
# build to finish we use --warn-unresolved-symbols. Note that the missing
3434
# symbols does not affect std, only the compiler (llvm) and cargo (openssl).
3535
ENV SCRIPT \
36-
python3 ../x.py build src/llvm --host $HOSTS --target $HOSTS && \
36+
python3 ../x.py --stage 2 build src/llvm --host $HOSTS --target $HOSTS && \
3737
(export RUSTFLAGS="\"-C link-arg=-Wl,--warn-unresolved-symbols\""; \
3838
rm /android/ndk/arm && \
3939
ln -s /android/ndk/arm-14 /android/ndk/arm && \

src/ci/docker/host-x86_64/disabled/dist-i686-android/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ENV RUST_CONFIGURE_ARGS \
3333
# build to finish we use --warn-unresolved-symbols. Note that the missing
3434
# symbols does not affect std, only the compiler (llvm) and cargo (openssl).
3535
ENV SCRIPT \
36-
python3 ../x.py build src/llvm --host $HOSTS --target $HOSTS && \
36+
python3 ../x.py --stage 2 build src/llvm --host $HOSTS --target $HOSTS && \
3737
(export RUSTFLAGS="\"-C link-arg=-Wl,--warn-unresolved-symbols\""; \
3838
rm /android/ndk/x86 && \
3939
ln -s /android/ndk/x86-14 /android/ndk/x86 && \

src/ci/docker/host-x86_64/disabled/riscv64gc-linux/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ COPY scripts/sccache.sh /scripts/
9797
RUN sh /scripts/sccache.sh
9898

9999
ENV RUST_CONFIGURE_ARGS --qemu-riscv64-rootfs=/tmp/rootfs
100-
ENV SCRIPT python3 ../x.py test --target riscv64gc-unknown-linux-gnu
100+
ENV SCRIPT python3 ../x.py --stage 2 test --target riscv64gc-unknown-linux-gnu
101101

102102
ENV NO_CHANGE_USER=1

src/ci/docker/host-x86_64/dist-i586-gnu-i586-i686-musl/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ ENV CFLAGS_i586_unknown_linux_musl=-Wa,-mrelax-relocations=no
4646
ENV TARGETS=i586-unknown-linux-gnu,i686-unknown-linux-musl
4747

4848
ENV SCRIPT \
49-
python3 ../x.py test --target $TARGETS && \
49+
python3 ../x.py --stage 2 test --target $TARGETS && \
5050
python3 ../x.py dist --target $TARGETS,i586-unknown-linux-musl

src/ci/docker/host-x86_64/dist-various-1/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ ENV RUST_CONFIGURE_ARGS \
192192
--disable-docs
193193

194194
ENV SCRIPT \
195-
python3 ../x.py test --target $RUN_MAKE_TARGETS src/test/run-make && \
195+
python3 ../x.py --stage 2 test --target $RUN_MAKE_TARGETS src/test/run-make && \
196196
python3 ../x.py dist --target $TARGETS
197197

198198
# sccache

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ COPY scripts/sccache.sh /scripts/
2020
RUN sh /scripts/sccache.sh
2121

2222
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu --disable-optimize-tests
23-
ENV SCRIPT python3 ../x.py test
23+
ENV SCRIPT python3 ../x.py --stage 2 test
2424

2525
# FIXME(#59637) takes too long on CI right now
2626
ENV NO_LLVM_ASSERTIONS=1 NO_DEBUG_ASSERTIONS=1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN sh /scripts/sccache.sh
2222
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu
2323
# Exclude some tests that are unlikely to be platform specific, to speed up
2424
# this slow job.
25-
ENV SCRIPT python3 ../x.py test \
25+
ENV SCRIPT python3 ../x.py --stage 2 test \
2626
--exclude src/bootstrap \
2727
--exclude src/test/rustdoc-js \
2828
--exclude src/tools/error_index_generator \

src/ci/docker/host-x86_64/mingw-check/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ RUN sh /scripts/sccache.sh
2222
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
2323

2424
ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
25-
ENV SCRIPT python3 ../x.py test src/tools/expand-yaml-anchors && \
25+
ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
2626
python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu && \
2727
python3 ../x.py build --stage 0 src/tools/build-manifest && \
2828
python3 ../x.py test --stage 0 src/tools/compiletest && \
29-
python3 ../x.py test src/tools/tidy && \
29+
python3 ../x.py test --stage 2 src/tools/tidy && \
3030
python3 ../x.py doc --stage 0 library/std && \
3131
/scripts/validate-toolstate.sh

src/ci/docker/host-x86_64/test-various/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ENV RUST_CONFIGURE_ARGS \
4040
ENV NO_DEBUG_ASSERTIONS=1
4141

4242
ENV WASM_TARGETS=wasm32-unknown-unknown
43-
ENV WASM_SCRIPT python3 /checkout/x.py test --target $WASM_TARGETS \
43+
ENV WASM_SCRIPT python3 /checkout/x.py --stage 2 test --target $WASM_TARGETS \
4444
src/test/run-make \
4545
src/test/ui \
4646
src/test/compile-fail \
@@ -49,13 +49,13 @@ ENV WASM_SCRIPT python3 /checkout/x.py test --target $WASM_TARGETS \
4949
library/core
5050

5151
ENV NVPTX_TARGETS=nvptx64-nvidia-cuda
52-
ENV NVPTX_SCRIPT python3 /checkout/x.py test --target $NVPTX_TARGETS \
52+
ENV NVPTX_SCRIPT python3 /checkout/x.py --stage 2 test --target $NVPTX_TARGETS \
5353
src/test/run-make \
5454
src/test/assembly
5555

5656
ENV MUSL_TARGETS=x86_64-unknown-linux-musl \
5757
CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc \
5858
CXX_x86_64_unknown_linux_musl=x86_64-linux-musl-g++
59-
ENV MUSL_SCRIPT python3 /checkout/x.py test --target $MUSL_TARGETS
59+
ENV MUSL_SCRIPT python3 /checkout/x.py --stage 2 test --target $MUSL_TARGETS
6060

6161
ENV SCRIPT $WASM_SCRIPT && $NVPTX_SCRIPT && $MUSL_SCRIPT

src/ci/docker/host-x86_64/wasm32/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ENV NO_CHANGE_USER=1
5252

5353
# FIXME: Re-enable these tests once https://github.com/rust-lang/cargo/pull/7476
5454
# is picked up by CI
55-
ENV SCRIPT python3 ../x.py test --target $TARGETS \
55+
ENV SCRIPT python3 ../x.py test --stage 2 --target $TARGETS \
5656
--exclude library/core \
5757
--exclude library/alloc \
5858
--exclude library/proc_macro \

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ ENV RUST_CONFIGURE_ARGS \
4040
--set target.x86_64-unknown-linux-gnu.cxx=clang++
4141

4242
ENV SCRIPT \
43-
python3 ../x.py build && \
44-
python3 ../x.py test src/test/run-make-fulldeps --test-args clang
43+
python3 ../x.py --stage 2 build && \
44+
python3 ../x.py --stage 2 test src/test/run-make-fulldeps --test-args clang

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ COPY scripts/sccache.sh /scripts/
1919
RUN sh /scripts/sccache.sh
2020

2121
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu --set rust.ignore-git=false
22-
ENV SCRIPT python3 ../x.py test distcheck
22+
ENV SCRIPT python3 ../x.py --stage 2 test distcheck
2323
ENV DIST_SRC 1
2424

25-
# The purpose of this builder is to test that we can `./x.py test` successfully
25+
# The purpose of this builder is to test that we can `./x.py --stage 2 test` successfully
2626
# from a tarball, not to test LLVM/rustc's own set of assertions. These cause a
2727
# significant hit to CI compile time (over a half hour as observed in #61185),
2828
# so disable assertions for this builder.

src/ci/docker/host-x86_64/x86_64-gnu-full-bootstrap/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN sh /scripts/sccache.sh
2121
ENV RUST_CONFIGURE_ARGS \
2222
--build=x86_64-unknown-linux-gnu \
2323
--enable-full-bootstrap
24-
ENV SCRIPT python3 ../x.py build
24+
ENV SCRIPT python3 ../x.py --stage 2 build
2525

2626
# In general this just slows down the build and we're just a smoke test that
2727
# a full bootstrap works in general, so there's not much need to take this

src/ci/docker/host-x86_64/x86_64-gnu-llvm-8/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ENV RUST_CONFIGURE_ARGS \
3030
--enable-llvm-link-shared \
3131
--set rust.thin-lto-import-instr-limit=10
3232

33-
ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy && \
33+
ENV SCRIPT python2.7 ../x.py --stage 2 test --exclude src/tools/tidy && \
3434
# Run the `mir-opt` tests again but this time for a 32-bit target.
3535
# This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
3636
# both 32-bit and 64-bit outputs updated by the PR author, before
@@ -43,7 +43,7 @@ ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy && \
4343
# This also requires `--pass=build` because we can't execute the tests
4444
# on the `x86_64` host when they're built as `armv5te` binaries.
4545
# (we're only interested in the MIR output, so this doesn't matter)
46-
python2.7 ../x.py test src/test/mir-opt --pass=build \
46+
python2.7 ../x.py --stage 2 test src/test/mir-opt --pass=build \
4747
--target=armv5te-unknown-linux-gnueabi && \
4848
# Run the UI test suite again, but in `--pass=check` mode
4949
#
@@ -53,9 +53,9 @@ ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy && \
5353
# FIXME: We ideally want to test this in 32-bit mode, but currently
5454
# (due to the LLVM problems mentioned above) that isn't readily
5555
# possible.
56-
python2.7 ../x.py test src/test/ui --pass=check && \
56+
python2.7 ../x.py --stage 2 test src/test/ui --pass=check && \
5757
# Run tidy at the very end, after all the other tests.
58-
python2.7 ../x.py test src/tools/tidy
58+
python2.7 ../x.py --stage 2 test src/tools/tidy
5959

6060
# The purpose of this container isn't to test with debug assertions and
6161
# this is run on all PRs, so let's get speedier builds by disabling these extra

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ RUN sh /scripts/sccache.sh
2121
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu \
2222
--disable-optimize-tests \
2323
--set rust.test-compare-mode
24-
ENV SCRIPT python3 ../x.py test
24+
ENV SCRIPT python3 ../x.py --stage 2 test

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ COPY host-x86_64/x86_64-gnu-tools/checktools.sh /tmp/
2222
ENV RUST_CONFIGURE_ARGS \
2323
--build=x86_64-unknown-linux-gnu \
2424
--save-toolstates=/tmp/toolstate/toolstates.json
25-
ENV SCRIPT /tmp/checktools.sh ../x.py
25+
ENV SCRIPT /tmp/checktools.sh ../x.py --stage 2

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ ENV RUST_CONFIGURE_ARGS \
2323
--enable-sanitizers \
2424
--enable-profiler \
2525
--enable-compiler-docs
26-
ENV SCRIPT python3 ../x.py test
26+
ENV SCRIPT python3 ../x.py --stage 2 test

src/ci/github-actions/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ jobs:
471471

472472
- name: x86_64-msvc-cargo
473473
env:
474-
SCRIPT: python x.py test src/tools/cargotest src/tools/cargo
474+
SCRIPT: python x.py --stage 2 test src/tools/cargotest src/tools/cargo
475475
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-lld
476476
VCVARS_BAT: vcvars64.bat
477477
# FIXME(#59637)
@@ -481,7 +481,7 @@ jobs:
481481

482482
- name: x86_64-msvc-tools
483483
env:
484-
SCRIPT: src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh x.py /tmp/toolstate/toolstates.json windows
484+
SCRIPT: src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh x.py --stage 2 /tmp/toolstate/toolstates.json windows
485485
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --save-toolstates=/tmp/toolstate/toolstates.json
486486
<<: *job-windows-xl
487487

@@ -613,7 +613,7 @@ jobs:
613613

614614
- name: x86_64-apple
615615
env:
616-
SCRIPT: ./x.py test
616+
SCRIPT: ./x.py --stage 2 test
617617
RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc
618618
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
619619
MACOSX_DEPLOYMENT_TARGET: 10.8

0 commit comments

Comments
 (0)