Repository navigation
Conversation
|
As almost guaranteed on Windows, results are 'interesting':
edit:
https://ci.appveyor.com/project/curlorg/curl/builds/54854526 test1664: -6: (%0a) 0, line 1[LF]
-7: (%0d) 0, line 1[LF]
-8: (%0d) 0, line 1[LF]
+6: (%00) 0, line 1[LF]
+7: (%00) 0, line 1[LF]
+8: (%0a) 0, line 1[LF] |
fc5cf59 to
3c4afb7
Compare
https://ci.appveyor.com/project/curlorg/curl/builds/54855420/job/71ccddu696xhn95q#L263 [FIXED → #23317] |
|
The stuck jobs (VS2017/VS2019/2022 Debug/shared): https://ci.appveyor.com/project/curlorg/curl/builds/54855581/job/0a64yq95t4psrhjy While three tunits.exe are stuck with a VS CRT popup window: Not possible to kill with normal Killing all three manually makes runtests finish, with this end result: so the three crashers are: 1394, 1623, 1720. With CRT GUI popups suppressed in test binaries, the same popped up instead from libcurl-d.dll: |
605c24e to
f43733a
Compare
|
VS2019 looks like particularly prone to problems. Two of them look like oddball compiler bugs:
|
where
are you referring to this curl_mprintf("%d: (%%%02x) %d, line %d\n",
/* Workaround for the expression erroneously returning NUL byte */
#if defined(_MSC_VER) && _MSC_VER == 1929 && _WIN64
i, (unsigned int)newl[i][0],
#else
i, (unsigned int)*orgline,
#endif
rc, (int)(line - orgline));*orgline (ie first char in the string that orgline points to) looks fine to me but based on the "" in the array of strings orgline could at the last iteration point to "" so *orgline is 0, which is then cast to an unsigned int right |
|
Riddle of the day, where are these memdebug line coming from?: ...with bogus-looking line numbers. edit: they must be coming from an old |
Patched in this subcommit: 0f1788d
It's happening in 3 tests in the middle of batch of ~10. Ref: #23306 (comment) Only these 3, only with this compiler, and consistently. |
That's really strange and I wonder if by silencing the test it covers up a genuine issue in curl_mprintf, like would printf give the same result |
|
More oddities:
|
976e5a2 to
4c7cbbc
Compare
After more tests: it's not a curl printf issue. The value is indeed Ref: https://ci.appveyor.com/project/curlorg/curl/builds/54856931/job/xtha45rcq0k0p29u?fullLog=true#L980 This code emitting it (from unit1664.c): for(i = 0; newl[i]; i++) {
const char *line = newl[i];
const char *orgline = line;
int rc = curlx_str_newline(&line);
#if defined(_MSC_VER) && _MSC_VER == 1929 && defined(_WIN64)
unsigned int v1 = (unsigned int)newl[i][0];
unsigned int v2 = (unsigned int)*orgline;
if(v1 != v2) {
curl_mprintf("MISMATCH-A?:|%%%08x|%%%08x|\n", v1, v2);
printf("MISMATCH-B?:|%%%08x|%%%08x|\n", v1, v2);
}
if((unsigned int)newl[i][0] != (unsigned int)*orgline) {
curl_mprintf("MISMATCH-1?:|%%%08x|%%%08x|\n",
(unsigned int)newl[i][0], (unsigned int)*orgline);
printf("MISMATCH-2?:|%%%08x|%%%08x|\n",
(unsigned int)newl[i][0], (unsigned int)*orgline);
}
#endifI'm not keen on saying "compiler bug" again, but it certainly looks like one. the alternate snippet: if((unsigned int)newl[i][0] != (unsigned int)*orgline) { // compares different
curl_mprintf("MISMATCH-1\n");
curl_mprintf("MISMATCH-2:|%%%02x|%%%02x|\n",
(unsigned int)newl[i][0], (unsigned int)*orgline); // prints identical
printf("MISMATCH-3:|%%%02x|%%%02x|\n",
(unsigned int)newl[i][0], (unsigned int)*orgline); // prints identical
} |
|
I have no idea. edit: what happens if you do it like |
It's still a mismatch: Aliasing/inlining going borked in the optimization phase perhaps? Also, doesn't happen in Debug builds. Not reproducing in this isolated example: This PR now lists 10+ weird issues, most of them "typical" Windowsy-stuff. |
7594354 to
88ca8ad
Compare
Job with the fastest running tests, keep running all tests (1619 of them): CM VS2012, Release, x86, Schannel, Shared, Build-tests
previous: CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j30 Succeeded in 7 min 36 sec 6m27 CM VS2012, Release, x86, Schannel, Shared, Build-tests -j20 Succeeded in 7 min 13 sec 6m04 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 Succeeded in 6 min 48 sec WINNER 5m36 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j5 Succeeded in 7 min 9 sec 6m01 https://ci.appveyor.com/project/curlorg/curl/builds/54912772 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j30 Succeeded in 7 min 47 sec 6m37 CM VS2012, Release, x86, Schannel, Shared, Build-tests -j20 Succeeded in 7 min 28 sec 6m19 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 Succeeded in 6 min 50 sec WINNER 5m42 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j5 Succeeded in 6 min 49 sec 5m46 https://ci.appveyor.com/project/curlorg/curl/builds/54912965 round 2: CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j12 Succeeded in 7 min 5m47 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 Succeeded in 7 min 5m45 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 8 Succeeded in 6 min 48 sec WINNER 5m38 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 6 Succeeded in 7 min 2 sec 5m52 https://ci.appveyor.com/project/curlorg/curl/builds/54913060 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j12 Succeeded in 6 min 38 sec 5m28 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 Succeeded in 6 min 33 sec WINNER 5m25 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 8 Succeeded in 6 min 33 sec 5m27 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 6 Succeeded in 7 min 4 sec 5m55 https://ci.appveyor.com/project/curlorg/curl/builds/54913106
previous: CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j30 Succeeded in 7 min 36 sec 6m27 CM VS2012, Release, x86, Schannel, Shared, Build-tests -j20 Succeeded in 7 min 13 sec 6m04 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 Succeeded in 6 min 48 sec WINNER 5m36 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j5 Succeeded in 7 min 9 sec 6m01 https://ci.appveyor.com/project/curlorg/curl/builds/54912772 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j30 Succeeded in 7 min 47 sec 6m37 CM VS2012, Release, x86, Schannel, Shared, Build-tests -j20 Succeeded in 7 min 28 sec 6m19 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 Succeeded in 6 min 50 sec WINNER 5m42 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j5 Succeeded in 6 min 49 sec 5m46 https://ci.appveyor.com/project/curlorg/curl/builds/54912965 round 2: CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j20 Succeeded in 7 min 15 sec 5m59 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j12 Succeeded in 7 min 5m47 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 Succeeded in 7 min 5m45 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 8 Succeeded in 6 min 48 sec WINNER 5m38 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 6 Succeeded in 7 min 2 sec 5m52 https://ci.appveyor.com/project/curlorg/curl/builds/54913060 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j20 Succeeded in 6 min 55 sec 5m46 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j12 Succeeded in 6 min 38 sec 5m28 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 Succeeded in 6 min 33 sec WINNER 5m25 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 8 Succeeded in 6 min 33 sec 5m27 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 6 Succeeded in 7 min 4 sec 5m55 https://ci.appveyor.com/project/curlorg/curl/builds/54913106 round 3: CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j20 Succeeded in 7 min 10 sec 5m57 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 Succeeded in 6 min 45 sec WINNER 5m33 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 9 Succeeded in 7 min 5 sec 5m53 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 8 Succeeded in 6 min 56 sec 5m43 https://ci.appveyor.com/project/curlorg/curl/builds/54913185 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j20 Succeeded in 7 min 32 6m09 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 Succeeded in15 min 44 BLOOP 14m27 due to test 1273 taking 622 seconds. CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 9 Succeeded in 7 min 27 6m14 CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j 8 Succeeded in 6 min 46 5m36 https://ci.appveyor.com/project/curlorg/curl/builds/54913219
``` test 1167 [Verify curl prefix of public symbols in header files] perl -I. -I../../tests returned 127, when expecting 0 1167: exit FAILED == Contents of files in the log/2/ directory after test 1167 === Start of file commands.log perl -I. -I../../tests ../../tests/test1167.pl ../../tests/.. > log/2/stdout1167 2> log/2/stderr1167 === End of file commands.log === Start of file server.cmd Testnum 1167 === End of file server.cmd === Start of file stderr1167 C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory Error preprocessing ../../tests/../include/curl/curl.h at ../../tests/test1167.pl line 117. === End of file stderr1167 test 1169 [Verify that runtests.pl accepts an -L option] -------e--- OK (992 out of 1742, remaining: 02:05, took 0.956s, duration: 02:45) ``` https://ci.appveyor.com/project/curlorg/curl/builds/54917936/job/s7aba35cn6goyse8 Still can't believe that invoking MSVC cl.exe has been such an unresolved absolute total horrible nightmare for the last 20 years, with zero advance.
``` * PATH: /c/projects/curl/_bld/lib/Release:/c/projects/curl/cmake-3.21.7-windows-x86_64/bin:/usr/bin:/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin:/c/Perl/site/bin:/c/Perl/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files/7-Zip:/c/Program Files/Microsoft/Web Platform Installer:/c/Tools/GitVersion:/c/Tools/PsTools:/c/Program Files/Git LFS:/c/Program Files (x86)/Subversion/bin:/c/Program Files/Microsoft SQL Server/120/Tools/Binn:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/110/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn:/c/Program Files/Microsoft SQL Server/120/DTS/Binn:/c/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn/ManagementStudio:/c/Tools/WebDriver:/c/Program Files (x86)/Microsoft SDKs/TypeScript/1.4:/c/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/PrivateAssemblies:/c/Program Files (x86)/Microsoft SDKs/Azure/CLI/wbin:/c/Ruby193/bin:/c/Tools/NUnit/bin:/c/Tools/xUnit:/c/Tools/MSpec:/c/Tools/Coverity/bin:/c/Program Files (x86)/CMake/bin:/c/go/bin:/c/Program Files/Java/jdk1.8.0/bin:/c/Python27:/c/Program Files/nodejs:/c/Program Files (x86)/iojs:/c/Program Files/iojs:/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/c/Program Files (x86)/MSBuild/14.0/Bin:/c/Tools/NuGet:/c/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TestWindow:/c/Program Files/Microsoft DNX/Dnvm:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/130/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/130/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/130/DTS/Binn:/c/Program Files/Microsoft SQL Server/130/DTS/Binn:/c/Program Files (x86)/Microsoft SQL Server/110/DTS/Binn:/c/Program Files (x86)/Microsoft SQL Server/120/DTS/Binn:/c/Program Files (x86)/Apache/Maven/bin:/c/Python27/Scripts:/c/Tools/NUnit3:/c/Program Files/Mercurial:/c/Program Files/dotnet:/c/Tools/curl/bin:/c/Program Files (x86)/Microsoft SQL Server/140/DTS/Binn:/c/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Extensions/Microsoft/SQLDB/DAC/140:/c/Tools/vcpkg:/c/Program Files (x86)/Microsoft SQL Server/140/Tools/Binn:/c/Program Files/Microsoft SQL Server/140/Tools/Binn:/c/Program Files/Microsoft SQL Server/140/DTS/Binn:/c/Program Files/erl9.2/bin:/c/Program Files (x86)/NSIS:/c/Tools/Octopus:/c/Program Files/Microsoft Service Fabric/bin/Fabric/Fabric.Code:/c/Program Files/Microsoft SDKs/Service Fabric/Tools/ServiceFabricLocalClusterManager:/c/Program Files/LLVM/bin:/c/Users/appveyor/AppData/Roaming/npm:/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/c/Program Files/PowerShell/6:/c/Program Files (x86)/nodejs:/c/Program Files/Git/cmd:/c/Program Files/Git/usr/bin:/c/Program Files/Meson:/c/ProgramData/chocolatey/bin:/c/Program Files/Amazon/AWSCLI:/c/Program Files (x86)/Yarn/bin:/c/Users/appveyor/.dotnet/tools:/c/Users/appveyor/AppData/Roaming/npm:/c/Users/appveyor/AppData/Local/Yarn/bin:/c/Program Files/AppVeyor/BuildAgent ``` https://ci.appveyor.com/project/curlorg/curl/builds/54917984/job/3r64ssbh6d0adk16?fullLog=true
This reverts commit 1fdc522.
There may be other, possibly better ways to detect a Visual Studio/MSBuild CMake build, I think for what it is, this is enough. We can tighten this as needed, e.g. by passing exact details via configurehelp.pm, e.g. CMAKE_GENERATOR always contains `Visual Studio` in the string when this is the case. How to detect if runtests is running via CMake? Fixing: ``` [...] -- Building for: Visual Studio 11 2012 -- Using CMake version 3.21.7 -- curl version=[8.23.1-DEV] -- The C compiler identification is MSVC 17.0.61030.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe - skipped [...] ../../tests/runtests.pl -a -p '~flaky' '~timing-dependent' -r --retry=5 -j10 --buildinfo '~1096' --min=1600 [...] test 1119 [Verify that symbols-in-versions and headers are in sync] 1119: stdout FAILED: --- log/2/check-expected +++ log/2/check-generated @@ -1 +0,0 @@ -OK[LF] == Contents of files in the log/2/ directory after test 1119 === Start of file check-expected OK[LF] === End of file check-expected === Start of file commands.log perl -I. -I../../tests ../../tests/test1119.pl ../../tests/.. ../include/curl > log/2/stdout1119 2> log/2/stderr1119 === End of file commands.log === Start of file server.cmd Testnum 1119 === End of file server.cmd === Start of file stderr1119 C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory Error preprocessing ../../tests/../include/curl/curl.h at ../../tests/test1119.pl line 84. === End of file stderr1119 [...] test 1167 [Verify curl prefix of public symbols in header files] perl -I. -I../../tests returned 127, when expecting 0 1167: exit FAILED == Contents of files in the log/10/ directory after test 1167 === Start of file commands.log perl -I. -I../../tests ../../tests/test1167.pl ../../tests/.. > log/10/stdout1167 2> log/10/stderr1167 === End of file commands.log === Start of file server.cmd Testnum 1167 === End of file server.cmd === Start of file stderr1167 C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory Error preprocessing ../../tests/../include/curl/curl.h at ../../tests/test1167.pl line 121. === End of file stderr1167 [...] FAIL 1119: 'Verify that symbols-in-versions and headers are in sync' source analysis, symbols-in-versions FAIL 1167: 'Verify curl prefix of public symbols in header files' source analysis TESTFAIL: These test cases failed: 1119 1167 ``` For those wonder about the differences in the env in the two invocations: ```diff -- VIA-CMAKE ++ DIRECT-RUN @@ -1,6 +1,6 @@ _=/usr/bin/env -!;=;\ -!C:=C:\projects\curl\_bld\tests +!::=::\ +!C:=C:\projects\curl 7zip="C:\Program Files\7-Zip\7z.exe" ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\appveyor\AppData\Roaming @@ -70,23 +70,19 @@ HOME=C:/projects/curl/_bld/tests HOMEDRIVE=C: HOMEPATH=\Users\appveyor -INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include;C:\Program Files (x86)\Windows Kits\8.0\Include\um;C:\Program Files (x86)\Windows Kits\8.0\Include\shared;C:\Program Files (x86)\Windows Kits\8.0\Include\winrt;; JAVA_HOME=C:\Progra~1\Java\jdk1.8.0 job_name=CM VS2012, Release, x86, Schannel, Shared, Build-tests, -j10 #**** lastexitcode=0 -LIB=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\lib;C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86;; -LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\lib;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib LOCALAPPDATA=C:\Users\appveyor\AppData\Local LOGONSERVER=\\APPVYR-WIN M2_HOME=C:\Program Files (x86)\Apache\Maven MAVEN_HOME=C:\Program Files (x86)\Apache\Maven -MSBuildLoadMicrosoftTargetsReadOnly=true MSYS2_PATH_TYPE=inherit NGHTTPX= NUMBER_OF_PROCESSORS=2 OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg OS=Windows_NT -PATH=/c/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin:/c/Program Files (x86)/Windows Kits/8.0/bin/x86:/c/Program Files (x86)/Microsoft SDKs/Windows/v8.0A/bin/NETFX 4.0 Tools:/c/Program Files (x86)/Microsoft Visual Studio 11.0/Common7/Tools/bin:/c/Program Files (x86)/Microsoft Visual Studio 11.0/Common7/tools:/c/Program Files (x86)/Microsoft Visual Studio 11.0/Common7/ide:/c/Program Files (x86)/HTML Help Workshop:/c/Windows/Microsoft.NET/Framework/v4.0.30319:/c/Program Files (x86)/Microsoft Visual Studio 11.0:/c/windows/SysWow64:/c/projects/curl/_bld/lib/Release:/c/projects/curl/cmake-3.21.7-windows-x86_64/bin:/usr/bin:/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin:/c/Perl/site/bin:/c/Perl/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files/7-Zip:/c/Program Files/Microsoft/Web Platform Installer:/c/Tools/GitVersion:/c/Tools/PsTools:/c/Program Files/Git LFS:/c/Program Files (x86)/Subversion/bin:/c/Program Files/Microsoft SQL Server/120/Tools/Binn:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/110/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn:/c/Program Files/Microsoft SQL Server/120/DTS/Binn:/c/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn/ManagementStudio:/c/Tools/WebDriver:/c/Program Files (x86)/Microsoft SDKs/TypeScript/1.4:/c/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/PrivateAssemblies:/c/Program Files (x86)/Microsoft SDKs/Azure/CLI/wbin:/c/Ruby193/bin:/c/Tools/NUnit/bin:/c/Tools/xUnit:/c/Tools/MSpec:/c/Tools/Coverity/bin:/c/Program Files (x86)/CMake/bin:/c/go/bin:/c/Program Files/Java/jdk1.8.0/bin:/c/Python27:/c/Program Files/nodejs:/c/Program Files (x86)/iojs:/c/Program Files/iojs:/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/c/Program Files (x86)/MSBuild/14.0/Bin:/c/Tools/NuGet:/c/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TestWindow:/c/Program Files/Microsoft DNX/Dnvm:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/130/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/130/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/130/DTS/Binn:/c/Program Files/Microsoft SQL Server/130/DTS/Binn:/c/Program Files (x86)/Microsoft SQL Server/110/DTS/Binn:/c/Program Files (x86)/Microsoft SQL Server/120/DTS/Binn:/c/Program Files (x86)/Apache/Maven/bin:/c/Python27/Scripts:/c/Tools/NUnit3:/c/Program Files/Mercurial:/c/Program Files/dotnet:/c/Tools/curl/bin:/c/Program Files (x86)/Microsoft SQL Server/140/DTS/Binn:/c/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Extensions/Microsoft/SQLDB/DAC/140:/c/Tools/vcpkg:/c/Program Files (x86)/Microsoft SQL Server/140/Tools/Binn:/c/Program Files/Microsoft SQL Server/140/Tools/Binn:/c/Program Files/Microsoft SQL Server/140/DTS/Binn:/c/Program Files/erl9.2/bin:/c/Program Files (x86)/NSIS:/c/Tools/Octopus:/c/Program Files/Microsoft Service Fabric/bin/Fabric/Fabric.Code:/c/Program Files/Microsoft SDKs/Service Fabric/Tools/ServiceFabricLocalClusterManager:/c/Program Files/LLVM/bin:/c/Users/appveyor/AppData/Roaming/npm:/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/c/Program Files/PowerShell/6:/c/Program Files (x86)/nodejs:/c/Program Files/Git/cmd:/c/Program Files/Git/usr/bin:/c/Program Files/Meson:/c/ProgramData/chocolatey/bin:/c/Program Files/Amazon/AWSCLI:/c/Program Files (x86)/Yarn/bin:/c/Users/appveyor/.dotnet/tools:/c/Users/appveyor/AppData/Roaming/npm:/c/Users/appveyor/AppData/Local/Yarn/bin:/c/Program Files/AppVeyor/BuildAgent +PATH=/c/projects/curl/_bld/lib/Release:/c/projects/curl/cmake-3.21.7-windows-x86_64/bin:/usr/bin:/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin:/c/Perl/site/bin:/c/Perl/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files/7-Zip:/c/Program Files/Microsoft/Web Platform Installer:/c/Tools/GitVersion:/c/Tools/PsTools:/c/Program Files/Git LFS:/c/Program Files (x86)/Subversion/bin:/c/Program Files/Microsoft SQL Server/120/Tools/Binn:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/110/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn:/c/Program Files/Microsoft SQL Server/120/DTS/Binn:/c/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn/ManagementStudio:/c/Tools/WebDriver:/c/Program Files (x86)/Microsoft SDKs/TypeScript/1.4:/c/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/PrivateAssemblies:/c/Program Files (x86)/Microsoft SDKs/Azure/CLI/wbin:/c/Ruby193/bin:/c/Tools/NUnit/bin:/c/Tools/xUnit:/c/Tools/MSpec:/c/Tools/Coverity/bin:/c/Program Files (x86)/CMake/bin:/c/go/bin:/c/Program Files/Java/jdk1.8.0/bin:/c/Python27:/c/Program Files/nodejs:/c/Program Files (x86)/iojs:/c/Program Files/iojs:/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/c/Program Files (x86)/MSBuild/14.0/Bin:/c/Tools/NuGet:/c/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TestWindow:/c/Program Files/Microsoft DNX/Dnvm:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/130/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/130/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/130/DTS/Binn:/c/Program Files/Microsoft SQL Server/130/DTS/Binn:/c/Program Files (x86)/Microsoft SQL Server/110/DTS/Binn:/c/Program Files (x86)/Microsoft SQL Server/120/DTS/Binn:/c/Program Files (x86)/Apache/Maven/bin:/c/Python27/Scripts:/c/Tools/NUnit3:/c/Program Files/Mercurial:/c/Program Files/dotnet:/c/Tools/curl/bin:/c/Program Files (x86)/Microsoft SQL Server/140/DTS/Binn:/c/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Extensions/Microsoft/SQLDB/DAC/140:/c/Tools/vcpkg:/c/Program Files (x86)/Microsoft SQL Server/140/Tools/Binn:/c/Program Files/Microsoft SQL Server/140/Tools/Binn:/c/Program Files/Microsoft SQL Server/140/DTS/Binn:/c/Program Files/erl9.2/bin:/c/Program Files (x86)/NSIS:/c/Tools/Octopus:/c/Program Files/Microsoft Service Fabric/bin/Fabric/Fabric.Code:/c/Program Files/Microsoft SDKs/Service Fabric/Tools/ServiceFabricLocalClusterManager:/c/Program Files/LLVM/bin:/c/Users/appveyor/AppData/Roaming/npm:/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/c/Program Files/PowerShell/6:/c/Program Files (x86)/nodejs:/c/Program Files/Git/cmd:/c/Program Files/Git/usr/bin:/c/Program Files/Meson:/c/ProgramData/chocolatey/bin:/c/Program Files/Amazon/AWSCLI:/c/Program Files (x86)/Yarn/bin:/c/Users/appveyor/.dotnet/tools:/c/Users/appveyor/AppData/Roaming/npm:/c/Users/appveyor/AppData/Local/Yarn/bin:/c/Program Files/AppVeyor/BuildAgent PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.CPL PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 2, GenuineIntel @@ -103,12 +99,12 @@ SESSIONNAME=Console SHLVL=4 SOURCE_DATE_EPOCH=179232180* -srcdir=C:/projects/curl/tests +srcdir=../../tests SYSTEMDRIVE=C: SYSTEMROOT=C:\windows TEMP=/c/Users/appveyor/AppData/Local/Temp/1 TERM=cygwin -TFLAGS=-j10 ~1096 --min=1600 +TFLAGS=--min=1600 TMP=/c/Users/appveyor/AppData/Local/Temp/1 USERDOMAIN_ROAMINGPROFILE=APPVYR-WIN USERDOMAIN=APPVYR-WIN @@ -119,7 +115,6 @@ VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ VS90COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\ -vsconsoleoutput=1 VSSDK120Install=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VSSDK\ VSSDK140Install=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VSSDK\ WINDIR=C:\windows ```
This reverts commit 59e913d.
This reverts commit e0f6945.
|
(for visitors and future self: GH buried almost all investigation details, (it's prone to happen when having many subcommits and rebasing |
See #23685 for a bookmarklet that can auto-click on the load links to unhide. |


all (supported) tests in just one job, carefully selected to be the
one running them the fastest.
Per job, it takes ~15 seconds to run ~80 unit tests.
It takes 5 minutes to run all (~1600) tests. Total job time 5.5-6
minutes.
If the full test run turns out to be annoying or grow slow, we disable
or limit it to a subset of tests.
-j10parallelism. It results in the fastest runs,based on tests.
performance, run tests by directly invoking
runtests.pl(not viaCMake → MSBuild →
runtests.pl).It saves 10-40 seconds per full test run.
runtests.pl, exclude test 1119 and 1167.It's not compatible with Visual Studio generator builds.
Running Windows tests in multiple environments makes it more likely they
can run on local machines, too, also making them easier to debug.
AppVeyor also supports remote access via RDP, which may help debugging
notorious Windows issues live, with some luck of reproducing it in a run
with RDP access explicitly enabled beforehand.
Fixes/improvements via this PR, merged separately:
7fa7c6e #23480 appveyor: unignore test 1096
b5b58a4 #23316 tests: drop unused includes
dc99e12 #23467 processhelp.pm: improve task info in trace output (Windows)
70f3f85 #23471 test1488: drop unused C preprocessor logic
af9d2dd #23336 cmake: fix preconditions for option
CURL_STATIC_CRT=ONadf8b78 #23428 setopt: fix setting
CURLWS_NOAUTOPONGwith compilers lacking C99 bool type780405b #23416 tests: add
--dump-module-pathsdebug option (Windows)bc22977 #23400 msvc: replace debug CRT GUI popups with stderr output
87a1dc7 #23396 appveyor: minor improvements
67f3510 #23381 runtests: add
-Soption to show success logse9af987 #23378 tests/server: fix crashing with VS2013 and earlier
8cdee8a #23377 lib557: exclude three floating point test cases for VS2013 and earlier
1aac64a #23375 test1119, 1167: disable MSYS2 argument conversion narrowly
49f003f #23337 unit1664: add workaround for VS2019 16.3 - VS2022 17.4 x64 miscompile
b8f71d6 #23345 test428: skip when running on older MSYS2 versions
2f3f99d #23339 test1119, 1167: disable MSYS2 argument conversion
098d3a0 #23332 runtests: unset
CURL_MEMDEBUGfor curl requests made to the CI APId3e7caf #23335 GHA/windows: drop unused
-acruntests options2874cc6 #23317 mqttd: work around bogus VS2019 32-bit compiler warning
e8adc72 #23315 schannel: fix guard for old MSVC workaround
Follow-up to 41198e0 #20390
[ Note: No LLMs were used for these investigations, nor to develop
solutions. (I used Copilot for PR review in some cases.) ]
Another post-commit note: 400 tests (20%) are skipped for whatever
reasons and still not run after this patch. Notably missing are HTTPS
ones. Future effort can fix some of these; the ultimate limit is obtaining
dependencies for MSVC builds. On Windows this remains an incredibly
difficult and/or time-consuming task. vcpkg can do it, but needs to
build everything from scratch (no cache or pre-built binaries!), which
in practice makes it a no-go. With VS2015+ it's possible to reuse prebuilt
MSYS2 libs, but also not just a flip of a switch, most likely. Things for
the future, if it's worth it. First, it'd be nice to stabilize the infrastructure
I think, and it's not at all trivial this will happen anytime soon.
With default -j20, it takes around 21 seconds to run the ~80 unit tests.
Caveat: Thanks to the undisablable MSBuild heuristics unpredictably
flagging valid test runs as failed depending on their log output,
enabling tests in AppVeyor may re-introduce this issue to the CI. In GHA
the solution was to avoid MSBuild. That workaround is not generic and
unpractical for AppVeyor, and we'd also like to continue testing builds
with MSBuild. The issue has been mitigated, and expected to happen
rarely, but it isn't and cannot be fixed 100% when using this build
tool. This is further mitigated by running only a limited set of tests
in AppVeyor CI.
→ test 1119 is one gotcha here. and 1167. These two tests are a time-sink, I wonder if there is another way.
wow, removing MSBuild from this step saves 20-40 seconds per job with -j10 and all tests.
Bef: https://ci.appveyor.com/project/curlorg/curl/builds/54913825
Aft: https://ci.appveyor.com/project/curlorg/curl/builds/54917936
how does the CRT define bool? find/use smallest workaround.
(CRTDBG, AppVeyor CI RDP option, config support, debug stuff, artifact upload minor improvements; document AppVeyor CI runner details, dedupe DLL list dumper code into curlx/toolx)
→ appveyor: minor improvements #23396
→ msvc: replace debug CRT GUI popups with stderr output #23400
→ tests: add
--dump-module-pathsdebug option (Windows) #23416move to toolx, print directly (drop slist), reuse from src and libtests/first.
stuck job? force-kill after a while? (= taskkill /f on Windows) → runtests: hung tests keep runtests from finishing #23488 (report)
https://ci.appveyor.com/project/curlorg/curl/builds/54868825/job/r9ldgbtd36q8e9g4
https://ci.appveyor.com/project/curlorg/curl/builds/54869181/job/hv88edlb1rnwp7ut
(1 such job per run, in these 2 runs. Maybe possible to catch one live?) → added a note about this to the "megathread" of Windows problems: Windows CI/GHA, jobs failing #14854 (comment)
Combinations used in CI jobs:
Visual Studio disk locations:
Runners and Visual Studio availability