File tree 3 files changed +19
-10
lines changed
3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,13 @@ prepare:
99
99
100
100
# # MSVC native builders
101
101
102
+ # Set of tests that should represent half of the time of the test suite.
103
+ # Used to split tests across multiple CI runners.
102
104
# this intentionally doesn't use `$(BOOTSTRAP)` so we can test the shebang on Windows
103
105
ci-msvc-py :
104
- $(Q )$(CFG_SRC_DIR ) /x.py test --stage 2 tidy
106
+ $(Q )$(CFG_SRC_DIR ) /x.py test --stage 2 --skip=compiler --skip=src
105
107
ci-msvc-ps1 :
106
- $(Q )$(CFG_SRC_DIR ) /x.ps1 test --stage 2 --skip tidy
108
+ $(Q )$(CFG_SRC_DIR ) /x.ps1 test --stage 2 --skip=tests --skip=coverage-map --skip=coverage-run --skip=library --skip=tidyselftest
107
109
ci-msvc : ci-msvc-py ci-msvc-ps1
108
110
109
111
# # MingW native builders
Original file line number Diff line number Diff line change @@ -258,11 +258,11 @@ impl PathSet {
258
258
259
259
// internal use only
260
260
fn check ( p : & TaskPath , needle : & Path , module : Kind ) -> bool {
261
- if let Some ( p_kind ) = & p . kind {
262
- p . path . ends_with ( needle ) && * p_kind == module
263
- } else {
264
- p . path . ends_with ( needle )
265
- }
261
+ let check_path = || {
262
+ // This order is important for retro-compatibility, as `starts_with` was introduced later.
263
+ p . path . ends_with ( needle ) || p . path . starts_with ( needle )
264
+ } ;
265
+ if let Some ( p_kind ) = & p . kind { check_path ( ) && * p_kind == module } else { check_path ( ) }
266
266
}
267
267
268
268
/// Return all `TaskPath`s in `Self` that contain any of the `needles`, removing the
Original file line number Diff line number Diff line change @@ -372,11 +372,18 @@ auto:
372
372
# Windows Builders #
373
373
# #####################
374
374
375
- - image : x86_64-msvc
375
+ # x86_64-msvc is split into two jobs to run tests in parallel.
376
+ - image : x86_64-msvc-1
376
377
env :
377
378
RUST_CONFIGURE_ARGS : --build=x86_64-pc-windows-msvc --enable-profiler
378
- SCRIPT : make ci-msvc
379
- << : *job-windows-8c
379
+ SCRIPT : make ci-msvc-py
380
+ << : *job-windows
381
+
382
+ - image : x86_64-msvc-2
383
+ env :
384
+ RUST_CONFIGURE_ARGS : --build=x86_64-pc-windows-msvc --enable-profiler
385
+ SCRIPT : make ci-msvc-ps1
386
+ << : *job-windows
380
387
381
388
- image : i686-msvc
382
389
env :
You can’t perform that action at this time.
0 commit comments