From 7bd7679fb3dbe7bad46dd59c11d68c5d8a521ccb Mon Sep 17 00:00:00 2001 From: Daria Sukhonina Date: Wed, 10 Jun 2026 15:44:36 +0300 Subject: [PATCH 1/2] Make parallel frontend job run test in parallel --- .../optional-x86_64-gnu-parallel-frontend/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ci/docker/host-x86_64/optional-x86_64-gnu-parallel-frontend/Dockerfile b/src/ci/docker/host-x86_64/optional-x86_64-gnu-parallel-frontend/Dockerfile index 8f7c7ebe35559..6ffd03301d403 100644 --- a/src/ci/docker/host-x86_64/optional-x86_64-gnu-parallel-frontend/Dockerfile +++ b/src/ci/docker/host-x86_64/optional-x86_64-gnu-parallel-frontend/Dockerfile @@ -31,6 +31,8 @@ ENV RUST_CONFIGURE_ARGS \ --enable-compiler-docs \ --set llvm.libzstd=true +# Compile each test sequentially to achieve max thread utilization by a single rustc process +ENV RUST_TEST_THREADS 1 + # Build the toolchain with multiple parallel frontend threads and then run tests -# Tests are still compiled serially at the moment (intended to be changed in follow-ups). -ENV SCRIPT python3 ../x.py --stage 2 test --set rust.parallel-frontend-threads=4 +ENV SCRIPT python3 ../x.py --stage 2 test --set rust.parallel-frontend-threads=4 -- --parallel-frontend-threads=4 --iteration-count=2 From 8b83b7889bc68ea216412646f52bc7fb4a64a50a Mon Sep 17 00:00:00 2001 From: Daria Sukhonina Date: Thu, 11 Jun 2026 12:19:42 +0300 Subject: [PATCH 2/2] a --- .../optional-x86_64-gnu-parallel-frontend/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ci/docker/host-x86_64/optional-x86_64-gnu-parallel-frontend/Dockerfile b/src/ci/docker/host-x86_64/optional-x86_64-gnu-parallel-frontend/Dockerfile index 6ffd03301d403..9996c17aaa4b3 100644 --- a/src/ci/docker/host-x86_64/optional-x86_64-gnu-parallel-frontend/Dockerfile +++ b/src/ci/docker/host-x86_64/optional-x86_64-gnu-parallel-frontend/Dockerfile @@ -35,4 +35,4 @@ ENV RUST_CONFIGURE_ARGS \ ENV RUST_TEST_THREADS 1 # Build the toolchain with multiple parallel frontend threads and then run tests -ENV SCRIPT python3 ../x.py --stage 2 test --set rust.parallel-frontend-threads=4 -- --parallel-frontend-threads=4 --iteration-count=2 +ENV SCRIPT python3 ../x.py --stage 2 test --set rust.parallel-frontend-threads=4 "--" --parallel-frontend-threads=4 --iteration-count=2