Skip to content

Commit fe66833

Browse files
committed
Auto merge of #133632 - MarcoIeni:split-x86_64-msvc, r=Kobzol
CI: split x86_64-msvc job try-job: x86_64-msvc-1 try-job: x86_64-msvc-2
2 parents f415c07 + 70ab84d commit fe66833

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

src/bootstrap/mk/Makefile.in

+9-4
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,18 @@ tidy:
9797
prepare:
9898
$(Q)$(BOOTSTRAP) build --stage 2 --dry-run
9999

100+
STAGE_2_TEST_SET1 := test --stage 2 --skip=compiler --skip=src
101+
STAGE_2_TEST_SET2 := test --stage 2 --skip=tests --skip=coverage-map --skip=coverage-run --skip=library --skip=tidyselftest
102+
100103
## MSVC native builders
101104

105+
# Set of tests that should represent half of the time of the test suite.
106+
# Used to split tests across multiple CI runners.
102107
# this intentionally doesn't use `$(BOOTSTRAP)` so we can test the shebang on Windows
103108
ci-msvc-py:
104-
$(Q)$(CFG_SRC_DIR)/x.py test --stage 2 tidy
109+
$(Q)$(CFG_SRC_DIR)/x.py $(STAGE_2_TEST_SET1)
105110
ci-msvc-ps1:
106-
$(Q)$(CFG_SRC_DIR)/x.ps1 test --stage 2 --skip tidy
111+
$(Q)$(CFG_SRC_DIR)/x.ps1 $(STAGE_2_TEST_SET2)
107112
ci-msvc: ci-msvc-py ci-msvc-ps1
108113

109114
## MingW native builders
@@ -112,9 +117,9 @@ ci-msvc: ci-msvc-py ci-msvc-ps1
112117
# Used to split tests across multiple CI runners.
113118
# Test both x and bootstrap entrypoints.
114119
ci-mingw-x:
115-
$(Q)$(CFG_SRC_DIR)/x test --stage 2 --skip=compiler --skip=src
120+
$(Q)$(CFG_SRC_DIR)/x $(STAGE_2_TEST_SET1)
116121
ci-mingw-bootstrap:
117-
$(Q)$(BOOTSTRAP) test --stage 2 --skip=tests --skip=coverage-map --skip=coverage-run --skip=library --skip=tidyselftest
122+
$(Q)$(BOOTSTRAP) $(STAGE_2_TEST_SET2)
118123
ci-mingw: ci-mingw-x ci-mingw-bootstrap
119124

120125
.PHONY: dist

src/ci/github-actions/jobs.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,18 @@ auto:
420420
# Windows Builders #
421421
######################
422422

423-
- image: x86_64-msvc
423+
# x86_64-msvc is split into two jobs to run tests in parallel.
424+
- image: x86_64-msvc-1
424425
env:
425426
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler
426-
SCRIPT: make ci-msvc
427-
<<: *job-windows-8c
427+
SCRIPT: make ci-msvc-py
428+
<<: *job-windows
429+
430+
- image: x86_64-msvc-2
431+
env:
432+
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler
433+
SCRIPT: make ci-msvc-ps1
434+
<<: *job-windows
428435

429436
- image: i686-msvc
430437
env:

0 commit comments

Comments
 (0)