microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.96k stars 1.65k forks source link

Cpprestsdk failed to run run "httpclient_test" test on release and debug configuration with MSVC on windows x86 and x64 #1689

Closed rachelhe123 closed 2 years ago

rachelhe123 commented 2 years ago

Hi All,

The MSVC team recently test Cpprestsdk project failed to run "httpclient_test" test on release and debug configuration on Windows_x86 and windows_x64. Below are details of this issue:

Describe the bug Cpprestsdk failed to run run "httpclient_test" test on release and debug configuration with MSVC on windows x86 and x64. Could you please help look at this issue or provide some workarounds? Thanks in advance.

Error message outside_tests:server_hostname_host_override_after_upgrade FAILED Finished running all 206 tests. Took 56066ms Start 2: httplistener_test 2/8 Test #2: httplistener_test ................ Passed 6.92 sec Start 3: json_test 3/8 Test #3: json_test ........................ Passed 0.07 sec Start 4: pplx_test 4/8 Test #4: pplx_test ........................ Passed 0.85 sec Start 5: streams_test 5/8 Test #5: streams_test ..................... Passed 3.29 sec Start 6: uri_test 6/8 Test #6: uri_test ......................... Passed 0.06 sec Start 7: utils_test 7/8 Test #7: utils_test ....................... Passed 0.07 sec Start 8: websocketsclient_test 8/8 Test #8: websocketsclient_test ............ Passed 9.96 sec

88% tests passed, 1 tests failed out of 8

Total Test time (real) = 193.32 sec

The following tests FAILED: 1 - httpclient_test (Failed) Errors while running CTest

Expected behavior For Cpprestsdk x86 and x64, "httpclient_test" test should be run pass on the windows.

To Reproduce on Windows

  1. git clone https://github.com/microsoft/cpprestsdk F:\gitP\microsoft\cpprestsdk
  2. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
  3. cd F:\gitP\microsoft\cpprestsdk\vcpkg
  4. bootstrap-vcpkg.bat 2>&1
  5. vcpkg.exe install --recurse openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp brotli --triplet x64-windows --clean-after-build 2>&1
  6. cd F:\gitP\microsoft\cpprestsdk\build_amd64
  7. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=F:\gitP\microsoft\cpprestsdk\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows .. 2>&1
  8. msbuild /m /p:Platform=x64 /p:Configuration=Debug cpprestsdk-root.sln /t:Rebuild 2>&1
  9. cd F:\gitP\microsoft\cpprestsdk\build_amd64\Release
  10. msbuild /m /p:Platform=x64 /p:Configuration=Debug cpprestsdk.sln /t:Rebuild 2>&1
  11. cd F:\gitP\microsoft\cpprestsdk\build_amd64
  12. ctest --build-config Debug --output-on-failure 2>&1
  13. cd F:\gitP\microsoft\cpprestsdk\build_amd64\Release
  14. ctest --build-config Debug --output-on-failure 2>&1

Setup VS 2019 + Windows Server 2019

Additional context test logs test.log test.log.2.txt test.log.4.txt

rachelhe123 commented 2 years ago

Due to http://198.35.26.96/ server shut down issue blocked "httpclient_test", so closed it.