Skip to content

Commit 399c23c

Browse files
dschogitster
authored andcommitted
ci(visual-studio): actually run the tests in parallel
Originally, the CI/PR builds that build and test using Visual Studio were implemented imitating `linux-clang`, i.e. still using the `Makefile`-based build infrastructure. Later (but still before the patches made their way into git.git's `master`), however, this was changed to generate Visual Studio project files and build the binaries using `MSBuild`, as this reflects more accurately how Visual Studio users would want to build Git (internally, Visual Studio uses `MSBuild`, or at least something very similar). During that transition, we needed to implement a new way to run the test suite in parallel, as Visual Studio users typically will only have a Git Bash available (which does not ship with `make` nor with support for `prove`): we simply implemented a new test helper to run the test suite. This helper even knows how to run the tests in parallel, but due to a mistake on this developer's part, it was never turned on in the CI/PR builds. This results in 2x-3x longer run times of the test phase. Let's use the `--jobs=10` option to fix this. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 711cd6d commit 399c23c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ jobs:
255255
256256
cd t &&
257257
PATH=\"`$PWD/helper:`$PATH\" &&
258-
test-tool.exe run-command testsuite -V -x --write-junit-xml \
258+
test-tool.exe run-command testsuite --jobs=10 -V -x --write-junit-xml \
259259
`$(test-tool.exe path-utils slice-tests \
260260
`$SYSTEM_JOBPOSITIONINPHASE `$SYSTEM_TOTALJOBSINPHASE t[0-9]*.sh)
261261
"@

0 commit comments

Comments
 (0)