Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git tests in visual studio: 14 tests failed out of 966 #3966

Closed
1 task done
taras-janea opened this issue Aug 1, 2022 · 16 comments · Fixed by #3977
Closed
1 task done

git tests in visual studio: 14 tests failed out of 966 #3966

taras-janea opened this issue Aug 1, 2022 · 16 comments · Fixed by #3977

Comments

@taras-janea
Copy link

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
    64-bit
$ git --version --build-options

$ git --version --build-options
git version 2.37.1.windows.1
cpu: x86_64
built from commit: 323a697
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.19044.1826]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
I've installed latest version of git-sdk.
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Visual studio information:


Microsoft Visual Studio Community 2022
Version 17.2.6
VisualStudio.17.Release/17.2.6+32630.192
Microsoft .NET Framework
Version 4.8.04084

Installed Version: Community

Visual C++ 2022   00482-90000-00000-AA438
Microsoft Visual C++ 2022

ASP.NET and Web Tools 2019   17.2.393.26812
ASP.NET and Web Tools 2019

Azure App Service Tools v3.0.0   17.2.393.26812
Azure App Service Tools v3.0.0

C# Tools   4.2.0-4.22281.5+8d3180e5f00d42f0f0295165f756f368f0cbfa44
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Cookiecutter   17.0.22089.1
Provides tools for finding, instantiating and customizing templates in cookiecutter format.

Linux Core Dump Debugging   1.0.9.32408
Enables debugging of Linux core dumps.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Node.js Tools   1.5.40404.3 Commit Hash:dd524a7d0ee653de8b7b32a93ca22f2d57cd2419
Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager   6.2.1
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Python - Profiling support   17.0.22089.1
Profiling support for Python projects.

Python - VC Project Support   17.0.21344.1
Provides support for launching C++ projects with Python debugging enabled.

Python with Pylance   17.0.22089.1
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Test Adapter for Boost.Test   1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test.  The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test   1.0
Enables Visual Studio's testing tools with unit tests written for Google Test.  The use terms and Third Party Notices are available in the extension installation directory.

TypeScript Tools   17.0.10418.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   4.2.0-4.22281.5+8d3180e5f00d42f0f0295165f756f368f0cbfa44
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Linux Development   1.0.9.32408
Visual C++ for Linux Development

Visual Studio IntelliCode   2.2
AI-assisted development for Visual Studio.

Details

  • Which terminal/shell are you running Git from?
  I've opened root folder C:\git-sdk-64\usr\src\git via Visual Studio (as written in readme), but it didn't opened it as a solution.
  In order to build I've opened C:\git-sdk-64\usr\src\git\contrib\buildsystems\CMakeLists.txt in Visual Studio then and git was built   successfully.
After git was successfully built I've run the tests via Visual Studio Menu: Test -> Run CTest for git
  • What did you expect to occur after running these commands?
I've expected that tests will run successfully.
  • What actually happened instead?
14 of them failed:
99% tests passed, 14 tests failed out of 966
Total Test time (real) = 193432.42 sec
The following tests FAILED:
	 42 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t0060-path-utils.sh (Failed)
	 98 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t1092-sparse-checkout-compatibility.sh (Timeout)
	318 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t3701-add-interactive.sh (Failed)
	389 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t4053-diff-no-index.sh (Timeout)
	542 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t5516-fetch-push.sh (Timeout)
	587 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t5572-pull-submodule.sh (Timeout)
	691 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t6421-merge-partial-clone.sh (Timeout)
	693 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t6423-merge-rename-directories.sh (Timeout)
	708 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t6438-submodule-directory-file-conflicts.sh (Timeout)
	741 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t7112-reset-submodule.sh (Timeout)
	746 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t7400-submodule-basic.sh (Timeout)
	750 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t7406-submodule-update.sh (Timeout)
	801 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t7609-mergetool--lib.sh (Failed)
	802 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t7610-mergetool.sh (Failed)
Errors while running CTest
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?
    not relevant
@taras-janea
Copy link
Author

@dscho
Copy link
Member

dscho commented Aug 1, 2022

Thank you for the report!

To dig deeper, you can pass the options -i -v -x to the respective test scripts. You can do this by editing this line: https://github.com/git-for-windows/git/blob/v2.37.1.windows.1/contrib/buildsystems/CMakeLists.txt#L1126. This will give us not only a detailed trace of the commands that were run, but also the error messages.

To avoid running the entire test suite again, edit https://github.com/git-for-windows/git/blob/v2.37.1.windows.1/contrib/buildsystems/CMakeLists.txt#L1121.

@taras-janea
Copy link
Author

You are welcome.
Here is the output for the first failing test in the list with -i -v -x t0060-path-utils-output.log

@dscho
Copy link
Member

dscho commented Aug 1, 2022

[...]
++ mkdir -p '/usr/src/git/t/trash directory.t0060-path-utils/bin' pretend/mingw64/bin pretend/mingw64/libexec/git-core pretend/usr/bin
++ cp /usr/src/git/t/../contrib/buildsystems/out/build/x64-Debug/git.exe pretend/mingw64/bin/
++ cp /usr/src/git/t/../contrib/buildsystems/out/build/x64-Debug/git.exe pretend/mingw64/libexec/git-core/
++ echo 'env | grep MSYSTEM='
++ write_script '/usr/src/git/t/trash directory.t0060-path-utils/bin/git-test-home'
++ echo '#!/bin/sh'
++ cat
++ chmod +x '/usr/src/git/t/trash directory.t0060-path-utils/bin/git-test-home'
++ echo 'echo mingw64'
++ write_script pretend/mingw64/bin/git-test-bin
++ echo '#!/bin/sh'
++ cat
++ chmod +x pretend/mingw64/bin/git-test-bin
++ echo 'echo usr'
++ write_script pretend/usr/bin/git-test-bin2
++ echo '#!/bin/sh'
++ cat
++ chmod +x pretend/usr/bin/git-test-bin2
++ MSYSTEM=
++ GIT_EXEC_PATH=
++ pretend/mingw64/libexec/git-core/git.exe test-home
C:/git-sdk-64/usr/src/git/t/trash directory.t0060-path-utils/pretend/mingw64/libexec/git-core/git.exe: error while loading shared > libraries: iconv-2.dll: cannot open shared object file: No such file or directory
error: last command exited with $?=127
not ok 219 - MSYSTEM/PATH is adjusted if necessary
#	
#		mkdir -p "$HOME"/bin pretend/mingw64/bin \
#			pretend/mingw64/libexec/git-core pretend/usr/bin &&
#		cp "$GIT_EXEC_PATH"/git.exe pretend/mingw64/bin/ &&
#		cp "$GIT_EXEC_PATH"/git.exe pretend/mingw64/libexec/git-core/ &&
#		echo "env | grep MSYSTEM=" | write_script "$HOME"/bin/git-test-home &&
#		echo "echo mingw64" | write_script pretend/mingw64/bin/git-test-bin &&
#		echo "echo usr" | write_script pretend/usr/bin/git-test-bin2 &&
#	
#		(
#			MSYSTEM= &&
#			GIT_EXEC_PATH= &&
#			pretend/mingw64/libexec/git-core/git.exe test-home >actual &&
#			pretend/mingw64/libexec/git-core/git.exe test-bin >>actual &&
#			pretend/mingw64/bin/git.exe test-bin2 >>actual
#		) &&
#		test_write_lines MSYSTEM=$MSYSTEM mingw64 usr >expect &&
#		test_cmp expect actual
#	
1..219

This comes from https://github.com/git-for-windows/git/blob/v2.37.1.windows.1/t/t0060-path-utils.sh#L563-L581, and the reason this fails is that it cannot find a required .dll file because we only copy the executable. Probably something like this needs to be inserted after the existing cp commands:

case "$GIT_EXEC_PATH"/*.dll in
*'/*.dll) ;; # no `.dll` files to be copied
*)
	cp "$GIT_EXEC_PATH"/*.dll pretend/mingw64/bin/ &&
	cp "$GIT_EXEC_PATH"/*.dll pretend/mingw64/libexec/git-core/
	;;
esac

I am a bit puzzled, though, that the CI runs succeed because the vs-test job builds Git using the CMake definition and should fail in the same way as indicated (because the iconv-2.dll file is not in the PATH unless copied, only libiconv-2.dll is).

Oh wait, it's probably this line that solves this puzzle: https://github.com/git-for-windows/git/blob/v2.37.1.windows.1/ci/lib.sh#L209

Could you edit the CMakeLists.txt file again to include the --no-bin-wrappers option?

@taras-janea
Copy link
Author

Not sure whether I've got it right, because if I run test with --no-bin-wrappers option, I'm getting errors:

$ ./t0060-path-utils.sh --no-bin-wrappers
./t0060-path-utils.sh: line 40: test-tool: command not found
./t0060-path-utils.sh: line 49: test-tool: command not found
./t0060-path-utils.sh: line 83: test_expect_success: command not found
./t0060-path-utils.sh: line 84: test_expect_success: command not found
./t0060-path-utils.sh: line 11: test-tool: command not found
./t0060-path-utils.sh: line 12: test_expect_success: command not found
./t0060-path-utils.sh: line 11: test-tool: command not found
./t0060-path-utils.sh: line 12: test_expect_success: command not found
./t0060-path-utils.sh: line 11: test-tool: command not found
./t0060-path-utils.sh: line 12: test_expect_success: command not found
./t0060-path-utils.sh: line 11: test-tool: command not found
./t0060-path-utils.sh: line 12: test_expect_success: command not found
./t0060-path-utils.sh: line 11: test-tool: command not found
./t0060-path-utils.sh: line 12: test_expect_success: command not found
./t0060-path-utils.sh: line 11: test-tool: command not found

@dscho
Copy link
Member

dscho commented Aug 6, 2022

@taras-janea I meant via CTest. You will need to edit the CMakeLists.txt file to add the --no-bin-wrappers option to the invocation at https://github.com/git-for-windows/git/blob/v2.37.1.windows.1/contrib/buildsystems/CMakeLists.txt#L1126 and then run the tests again.

If you want to run the test scripts via the command line, you will need to run them in Git Bash.

@taras-janea
Copy link
Author

Yes, I ran it via Git Bash.
The same result with --no-bin-wrappers option via CTest:
LastTestsFailed.log
LastTest.log

@dscho
Copy link
Member

dscho commented Aug 8, 2022

Hrm. I now brushed off my Visual Studio instance, built Git for Windows from the current main branch and with this diff, t0060 is passing (ignore the last hunk, that edit is made by the CMake configuration):

diff --git a/contrib/buildsystems/CMakeLists.txt b/contrib/buildsystems/CMakeLists.txt
index 199410c4ac24..8fdfe942cbbf 100644
--- a/contrib/buildsystems/CMakeLists.txt
+++ b/contrib/buildsystems/CMakeLists.txt
@@ -1118,12 +1118,13 @@ if(NOT ${CMAKE_BINARY_DIR}/CMakeCache.txt STREQUAL ${CACHE_PATH})
 	file(COPY ${CMAKE_SOURCE_DIR}/contrib/completion/git-completion.bash DESTINATION ${CMAKE_BINARY_DIR}/contrib/completion/)
 endif()
 
-file(GLOB test_scipts "${CMAKE_SOURCE_DIR}/t/t[0-9]*.sh")
+# file(GLOB test_scipts "${CMAKE_SOURCE_DIR}/t/t[0-9]*.sh")
+file(GLOB test_scipts "${CMAKE_SOURCE_DIR}/t/t0060*.sh")
 
 #test
 foreach(tsh ${test_scipts})
 	add_test(NAME ${tsh}
-		COMMAND ${SH_EXE} ${tsh}
+		COMMAND ${SH_EXE} ${tsh} --no-bin-wrappers -ivx
 		WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/t)
 endforeach()
 
diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh
index c88c205b96be..e889e7bc1b6f 100755
--- a/t/t0060-path-utils.sh
+++ b/t/t0060-path-utils.sh
@@ -565,6 +565,13 @@ test_expect_success MINGW 'MSYSTEM/PATH is adjusted if necessary' '
 		pretend/mingw64/libexec/git-core pretend/usr/bin &&
 	cp "$GIT_EXEC_PATH"/git.exe pretend/mingw64/bin/ &&
 	cp "$GIT_EXEC_PATH"/git.exe pretend/mingw64/libexec/git-core/ &&
+	case "$GIT_EXEC_PATH"/*.dll in
+	"*.dll") ;; # no `.dll` files to be copied
+	*)
+		cp "$GIT_EXEC_PATH"/*.dll pretend/mingw64/bin/ &&
+		cp "$GIT_EXEC_PATH"/*.dll pretend/mingw64/libexec/git-core/
+		;;
+	esac &&
 	echo "env | grep MSYSTEM=" | write_script "$HOME"/bin/git-test-home &&
 	echo "echo mingw64" | write_script pretend/mingw64/bin/git-test-bin &&
 	echo "echo usr" | write_script pretend/usr/bin/git-test-bin2 &&
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 29f38dabf0aa..3c88a121905a 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -548,7 +548,10 @@ write_script () {
 		echo "#!${2-"$SHELL_PATH"}" &&
 		cat
 	} >"$1" &&
-	chmod +x "$1"
+	if test_have_prereq !MINGW
+	then
+		chmod +x "$1"
+	fi
 }
 
 # Usage: test_hook [options] <hook-name> <<-\EOF
diff --git a/t/test-lib.sh b/t/test-lib.sh
index fc93073ac938..1f95919d717b 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -50,7 +50,7 @@ then
 	# elsewhere
 	TEST_OUTPUT_DIRECTORY=$TEST_DIRECTORY
 fi
-GIT_BUILD_DIR="${TEST_DIRECTORY%/t}"
+GIT_BUILD_DIR="$TEST_DIRECTORY/../contrib/buildsystems/out/build/x64-Debug"
 if test "$TEST_DIRECTORY" = "$GIT_BUILD_DIR"
 then
 	echo "PANIC: Running in a $TEST_DIRECTORY that doesn't end in '/t'?" >&2

@dscho
Copy link
Member

dscho commented Aug 8, 2022

I now also tried t1092 and while it admittedly took a long time, it did not time out but passed instead:

Test project C:/git-sdk-64/usr/src/vs2017-test/contrib/buildsystems/out/build/x64-Debug
    Start 1: C:/git-sdk-64/usr/src/vs2017-test/contrib/buildsystems/../../t/t1092-sparse-checkout-compatibility.sh
1/1 Test #1: C:/git-sdk-64/usr/src/vs2017-test/contrib/buildsystems/../../t/t1092-sparse-checkout-compatibility.sh ...   Passed  452.10 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 452.12 sec

@dscho
Copy link
Member

dscho commented Aug 9, 2022

@taras-janea could you please verify that #3977 fixes the issues you reported?

@taras-janea
Copy link
Author

I confirm that t0060-path-utils.sh is passing now, I'll check the rest that were failing as well.

Test project C:/git-sdk-64/usr/src/git/contrib/buildsystems/out/build/x64-Debug
    Start 1: C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t0060-path-utils.sh
1/1 Test #1: C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t0060-path-utils.sh ...   Passed   43.36 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) =  43.38 sec

@taras-janea
Copy link
Author

taras-janea commented Aug 10, 2022

t1092 is still failing due to timeout (tried couple of times):

Test project C:/git-sdk-64/usr/src/git/contrib/buildsystems/out/build/x64-Debug
    Start 1: C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t1092-sparse-checkout-compatibility.sh
1/1 Test #1: C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t1092-sparse-checkout-compatibility.sh ...***Timeout 1500.05 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 1500.67 sec
The following tests FAILED:
	  1 - C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t1092-sparse-checkout-compatibility.sh (Timeout)
Errors while running CTest
Output from these tests are in: C:/git-sdk-64/usr/src/git/contrib/buildsystems/out/build/x64-Debug/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
``
[LastTest.log](https://github.com/git-for-windows/git/files/9302294/LastTest.log)
`

@dscho
Copy link
Member

dscho commented Aug 10, 2022

Is there a way to increase the timeout? I am afraid that the test script really takes that long, and there is little Git for Windows can do about it, it's an upstream Git problem.

@taras-janea
Copy link
Author

I've found two ways to set the timeout for the ctest:
The first one is to set it like global one for the all tests:

set(CTEST_TEST_TIMEOUT, 3000)

The second one, for each test separately:

add_test(sometest ...)
set_tests_properties(sometest PROPERTIES TIMEOUT 30) 

Now, interesting thing that test started passing after Windows reboot (that was triggered during sleep for updates I guess):

Test project C:/git-sdk-64/usr/src/git/contrib/buildsystems/out/build/x64-Debug
    Start 1: C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t1092-sparse-checkout-compatibility.sh
1/1 Test #1: C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t1092-sparse-checkout-compatibility.sh ...   Passed  466.94 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 466.97 sec

I'll test the rest of the failing tests.

@taras-janea
Copy link
Author

All tests have been passed except one that's failing with timeout, because it actually takes almost one hour to execute:
1/1 Test #1: C:/git-sdk-64/usr/src/git/contrib/buildsystems/../../t/t7112-reset-submodule.sh ... Passed 3549.57 sec

Therefore, there are two ways: either to speed-up the test or increase the timeout for the test like by adding:
set_tests_properties("${CMAKE_SOURCE_DIR}/t/t7112-reset-submodule.sh" PROPERTIES TIMEOUT 4000)
after foreach(tsh ${test_scipts}) loop body.

@dscho
Copy link
Member

dscho commented Aug 22, 2022

either to speed-up the test or increase the timeout for the test

The lots easier option is to increase the time-out (which I will do).

Speeding up the test will most likely center on turning git submodule into a built-in (you probably will not believe this, but... it is currently implemented as a Unix shell script, and running those outside of their habitat comes at a hefty performance penalty).

dscho added a commit to dscho/git that referenced this issue Aug 22, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit to dscho/git that referenced this issue Aug 23, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
gitster pushed a commit to git/git that referenced this issue Aug 24, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
dscho added a commit to dscho/git that referenced this issue Oct 18, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit to dscho/git that referenced this issue Oct 18, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
gitster pushed a commit to git/git that referenced this issue Oct 19, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
avar pushed a commit to avar/git that referenced this issue Oct 20, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
avar pushed a commit to avar/git that referenced this issue Oct 21, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
avar pushed a commit to avar/git that referenced this issue Oct 26, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
dscho added a commit to dscho/git that referenced this issue Oct 28, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
rudyrigot pushed a commit to rudyrigot/git that referenced this issue Oct 28, 2022
As suggested in
git-for-windows#3966 (comment),
t7112 can run for well over one hour, which seems to be the default
maximum run time at least when running CTest-based tests in Visual
Studio.

Let's increase the time-out as a stop gap to unblock developers wishing
to run Git's test suite in Visual Studio.

Note: The actual run time is highly dependent on the circumstances. For
example, in Git's CI runs, the Windows-based tests typically take a bit
over 5 minutes to run. CI runs have the added benefit that Windows
Defender (the common anti-malware scanner on Windows) is turned off,
something many developers are not at liberty to do on their work
stations. When Defender is turned on, even on this developer's high-end
Ryzen system, t7112 takes over 15 minutes to run.

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
dscho added a commit that referenced this issue Nov 2, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
git-for-windows-ci pushed a commit that referenced this issue Nov 2, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 3, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 3, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
git-for-windows-ci pushed a commit that referenced this issue Nov 3, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 3, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 3, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
git-for-windows-ci pushed a commit that referenced this issue Nov 3, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 3, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 3, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 4, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 4, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 9, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 10, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
dscho added a commit that referenced this issue Nov 15, 2022
When building Git via Visual Studio and then running the tests via CTest
(which is made very easy by Visual Studio), there are test failures.
This PR intends to address those.

This closes #3966
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants