-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved winhttp tests to WS2022 for WSL support (#3898)
* Moved winhttp tests to WS2022 for WSL support * Windows 2022 images has VS 2022 not 2019 * Fixed get-binarysizes script to account for WS 2022 image; formatted platform matrix files * Install squid proxies * Fixed typo in Install-WSL script * Added WS2022 to live tests * Cleaned up platform matrix platforms; removed code coverage exception to proxy tests * Fixed two compiler warnings reported by the cognitive services team
- Loading branch information
1 parent
2e88a6e
commit 40cf560
Showing
14 changed files
with
453 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
310 changes: 165 additions & 145 deletions
310
eng/pipelines/templates/stages/platform-matrix-live.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,152 +1,172 @@ | ||
{ | ||
"displayNames": { | ||
"_": "" | ||
"displayNames": { | ||
"MacOS": "" | ||
}, | ||
"include": [ | ||
{ | ||
"StaticConfigs": { | ||
"x64_with_unit_test": { | ||
"Pool": "Azure Pipelines", | ||
"OSVmImage": "macos-11", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-osx", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DBUILD_SAMPLES=ON -DDISABLE_PROXY_TESTS=ON ", | ||
"AZURE_CORE_ENABLE_JSON_TESTS": 1, | ||
"BuildArgs": "-j 4" | ||
} | ||
} | ||
}, | ||
{ | ||
"StaticConfigs": { | ||
"Ubu1804": { | ||
"VCPKG_DEFAULT_TRIPLET": "x64-linux", | ||
"BuildArgs": "-j 4", | ||
"Pool": "azsdk-pool-mms-ubuntu-1804-general", | ||
"OSVmImage": "MMSUbuntu18.04", | ||
"RunProxyTests": true | ||
} | ||
}, | ||
"BuildConfig": { | ||
"x64_gcc5_with_unit_test": { | ||
"CmakeEnvArg": "CC=/usr/bin/gcc-5 CXX=/usr/bin/g++-5 cmake", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON" | ||
}, | ||
"x64_with_unit_test": { | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DBUILD_PERFORMANCE_TESTS=ON -DRUN_LONG_UNIT_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DBUILD_CODE_COVERAGE=ON", | ||
"AptDependencies": "gcovr lcov", | ||
"CODE_COVERAGE": "enabled", | ||
"CODE_COVERAGE_COLLECT_ONLY": 1, | ||
"AZURE_CORE_ENABLE_JSON_TESTS": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"StaticConfigs": { | ||
"Ubu20": { | ||
"BuildArgs": "-j 4", | ||
"Pool": "azsdk-pool-mms-ubuntu-2004-general", | ||
"OSVmImage": "MMSUbuntu20.04", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-linux", | ||
"RunProxyTests": true | ||
} | ||
}, | ||
"BuildConfiguration": { | ||
"x64_with_unit_test": { | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DBUILD_PERFORMANCE_TESTS=ON -DRUN_LONG_UNIT_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_SAMPLES=ON", | ||
"AZURE_CORE_ENABLE_JSON_TESTS": 1 | ||
}, | ||
"samples": { | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DCMAKE_BUILD_TYPE=Release ", | ||
"RunSamples": 1 | ||
}, | ||
"x64_no_rtti": { | ||
"CmakeArgs": " -DBUILD_RTTI=OFF -DCMAKE_BUILD_TYPE=Release " | ||
} | ||
} | ||
}, | ||
"include": [ | ||
{ | ||
"StaticConfigs": { | ||
"MacOS_x64_with_unit_test": { | ||
"Pool": "Azure Pipelines", | ||
"OSVmImage": "macos-11", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-osx", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DBUILD_SAMPLES=ON", | ||
"AZURE_CORE_ENABLE_JSON_TESTS": 1, | ||
"BuildArgs": "-j 4" | ||
} | ||
} | ||
{ | ||
"StaticConfigs": { | ||
"Win2019": { | ||
"Pool": "azsdk-pool-mms-win-2019-general", | ||
"OSVmImage": "MMS2019", | ||
"CMAKE_GENERATOR": "Visual Studio 16 2019" | ||
} | ||
}, | ||
"BuildConfig": { | ||
"x86_with_unit_test_winHttp": { | ||
"VcpkgInstall": "openssl", | ||
"CMAKE_GENERATOR_PLATFORM": "Win32", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DMSVC_USE_STATIC_CRT=ON -DDISABLE_PROXY_TESTS=ON ", | ||
"VCPKG_DEFAULT_TRIPLET": "x86-windows-static", | ||
"WindowsCtestConfig": "-C Release", | ||
"BuildArgs": "-v --parallel 8 --config Release" | ||
}, | ||
"x86_no_rtti_with_unit_test": { | ||
"VcpkgInstall": "libxml2 openssl", | ||
"CMAKE_GENERATOR_PLATFORM": "Win32", | ||
"CmakeArgs": " -DBUILD_RTTI=OFF -DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DMSVC_USE_STATIC_CRT=ON -DDISABLE_PROXY_TESTS=ON ", | ||
"VCPKG_DEFAULT_TRIPLET": "x86-windows-static", | ||
"WindowsCtestConfig": "-C Release", | ||
"BuildArgs": "-v --parallel 8 --config Release" | ||
}, | ||
"x86_with_unit_test_libcurl": { | ||
"CMAKE_GENERATOR_PLATFORM": "Win32", | ||
"VCPKG_DEFAULT_TRIPLET": "x86-windows-static", | ||
"CmakeArgs": " -DBUILD_TRANSPORT_CURL=ON -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DMSVC_USE_STATIC_CRT=ON -DDISABLE_PROXY_TESTS=ON ", | ||
"BuildArgs": "-v --parallel 8" | ||
}, | ||
"HSM_x64_with_unit_test_libcurl": { | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TRANSPORT_CURL=ON -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DMSVC_USE_STATIC_CRT=ON -DDISABLE_PROXY_TESTS=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"WindowsCtestConfig": "-C Release", | ||
"KVLocation": "eastus2", | ||
"EnableHSM": 1 | ||
}, | ||
"x64_with_unit_samples_libcurl": { | ||
"VcpkgInstall": "curl[winssl] openssl", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TRANSPORT_CURL=ON -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DBUILD_SAMPLES=ON -DMSVC_USE_STATIC_CRT=ON -DDISABLE_PROXY_TESTS=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"RunSamples": 1, | ||
"WindowsCtestConfig": "-C Release" | ||
} | ||
} | ||
}, | ||
{ | ||
"StaticConfigs": { | ||
"Win2022": { | ||
"Pool": "Azure Pipelines", | ||
"OSVmImage": "windows-2022", | ||
"CMAKE_GENERATOR": "Visual Studio 17 2022", | ||
"RunProxyTests": true | ||
} | ||
}, | ||
"BuildConfig": { | ||
"x64_with_json_unit_test_winHttp": { | ||
"VcpkgInstall": "openssl", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DDISABLE_AZURE_CORE_OPENTELEMETRY=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"AZURE_CORE_ENABLE_JSON_TESTS": 1, | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"WindowsCtestConfig": "-C Release" | ||
}, | ||
"x86_with_unit_test_libcurl": { | ||
"CMAKE_GENERATOR_PLATFORM": "Win32", | ||
"VCPKG_DEFAULT_TRIPLET": "x86-windows-static", | ||
"CmakeArgs": " -DBUILD_TRANSPORT_CURL=ON -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DMSVC_USE_STATIC_CRT=ON ", | ||
"BuildArgs": "-v --parallel 8" | ||
}, | ||
{ | ||
"StaticConfigs": { | ||
"_": { | ||
"VCPKG_DEFAULT_TRIPLET": "x64-linux", | ||
"BuildArgs": "-j 4", | ||
"Pool": "azsdk-pool-mms-ubuntu-1804-general", | ||
"OSVmImage": "MMSUbuntu18.04" | ||
} | ||
}, | ||
"BuildConfig": { | ||
"Linux_x64_gcc5_with_unit_test": { | ||
"CmakeEnvArg": "CC=/usr/bin/gcc-5 CXX=/usr/bin/g++-5 cmake", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON" | ||
}, | ||
"Linux_x64_with_unit_test": { | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DBUILD_PERFORMANCE_TESTS=ON -DRUN_LONG_UNIT_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DBUILD_CODE_COVERAGE=ON", | ||
"AptDependencies": "gcovr lcov", | ||
"CODE_COVERAGE": "enabled", | ||
"CODE_COVERAGE_COLLECT_ONLY": 1, | ||
"AZURE_CORE_ENABLE_JSON_TESTS": 1 | ||
} | ||
} | ||
"x64_with_json_unit_samples_winHttp": { | ||
"VcpkgInstall": "openssl", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DBUILD_SAMPLES=ON -DDISABLE_AZURE_CORE_OPENTELEMETRY=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"AZURE_CORE_ENABLE_JSON_TESTS": 1, | ||
"RunSamples": 1, | ||
"WindowsCtestConfig": "-C Release" | ||
}, | ||
{ | ||
"StaticConfigs": { | ||
"_": { | ||
"BuildArgs": "-j 4", | ||
"Pool": "azsdk-pool-mms-ubuntu-2004-general", | ||
"OSVmImage": "MMSUbuntu20.04", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-linux" | ||
} | ||
}, | ||
"BuildConfiguration": { | ||
"Ubuntu20_x64_with_unit_test": { | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DBUILD_PERFORMANCE_TESTS=ON -DRUN_LONG_UNIT_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_SAMPLES=ON", | ||
"AZURE_CORE_ENABLE_JSON_TESTS": 1 | ||
}, | ||
"Ubuntu20_samples": { | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DCMAKE_BUILD_TYPE=Release ", | ||
"RunSamples": 1 | ||
}, | ||
"Ubuntu20_x64_no_rtti": { | ||
"CmakeArgs": " -DBUILD_RTTI=OFF -DCMAKE_BUILD_TYPE=Release " | ||
} | ||
} | ||
"x64_with_unit_test_winHttp": { | ||
"VcpkgInstall": "openssl", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DMSVC_USE_STATIC_CRT=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"WindowsCtestConfig": "-C Release" | ||
}, | ||
{ | ||
"StaticConfigs": { | ||
"_": { | ||
"Pool": "azsdk-pool-mms-win-2019-general", | ||
"OSVmImage": "MMS2019", | ||
"CMAKE_GENERATOR": "Visual Studio 16 2019" | ||
} | ||
}, | ||
"BuildConfig": { | ||
"Win_x86_with_unit_test_winHttp": { | ||
"VcpkgInstall": "openssl", | ||
"CMAKE_GENERATOR_PLATFORM": "Win32", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DMSVC_USE_STATIC_CRT=ON ", | ||
"VCPKG_DEFAULT_TRIPLET": "x86-windows-static", | ||
"WindowsCtestConfig": "-C Release", | ||
"BuildArgs": "-v --parallel 8 --config Release" | ||
}, | ||
"Win_x86_no_rtti_with_unit_test": { | ||
"VcpkgInstall": "libxml2 openssl", | ||
"CMAKE_GENERATOR_PLATFORM": "Win32", | ||
"CmakeArgs": " -DBUILD_RTTI=OFF -DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DMSVC_USE_STATIC_CRT=ON", | ||
"VCPKG_DEFAULT_TRIPLET": "x86-windows-static", | ||
"WindowsCtestConfig": "-C Release", | ||
"BuildArgs": "-v --parallel 8 --config Release" | ||
}, | ||
"Win_x86_with_unit_test_libcurl": { | ||
"CMAKE_GENERATOR_PLATFORM": "Win32", | ||
"VCPKG_DEFAULT_TRIPLET": "x86-windows-static", | ||
"CmakeArgs": " -DBUILD_TRANSPORT_CURL=ON -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DMSVC_USE_STATIC_CRT=ON ", | ||
"BuildArgs": "-v --parallel 8" | ||
}, | ||
"Win_x64_with_json_unit_test_winHttp": { | ||
"VcpkgInstall": "openssl", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DDISABLE_AZURE_CORE_OPENTELEMETRY=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"AZURE_CORE_ENABLE_JSON_TESTS": 1, | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"WindowsCtestConfig": "-C Release" | ||
}, | ||
"Win_x64_with_json_unit_samples_winHttp": { | ||
"VcpkgInstall": "openssl", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DBUILD_SAMPLES=ON -DDISABLE_AZURE_CORE_OPENTELEMETRY=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"AZURE_CORE_ENABLE_JSON_TESTS": 1, | ||
"RunSamples": 1, | ||
"WindowsCtestConfig": "-C Release" | ||
}, | ||
"Win_x64_with_unit_test_winHttp": { | ||
"VcpkgInstall": "openssl", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DMSVC_USE_STATIC_CRT=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"WindowsCtestConfig": "-C Release" | ||
}, | ||
"Win_x64_with_unit_samples_winHttp": { | ||
"VcpkgInstall": "openssl", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DBUILD_SAMPLES=ON -DMSVC_USE_STATIC_CRT=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"RunSamples": 1, | ||
"WindowsCtestConfig": "-C Release" | ||
}, | ||
"HSM_Win_x64_with_unit_test_libcurl": { | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TRANSPORT_CURL=ON -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DMSVC_USE_STATIC_CRT=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"WindowsCtestConfig": "-C Release", | ||
"KVLocation": "eastus2", | ||
"EnableHSM": 1 | ||
}, | ||
"Win_x64_with_unit_samples_libcurl": { | ||
"VcpkgInstall": "curl[winssl] openssl", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TRANSPORT_CURL=ON -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DBUILD_SAMPLES=ON -DMSVC_USE_STATIC_CRT=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"RunSamples": 1, | ||
"WindowsCtestConfig": "-C Release" | ||
} | ||
} | ||
"x64_with_unit_samples_winHttp": { | ||
"VcpkgInstall": "openssl", | ||
"VCPKG_DEFAULT_TRIPLET": "x64-windows-static", | ||
"CMAKE_GENERATOR_PLATFORM": "x64", | ||
"CmakeArgs": " -DBUILD_TESTING=ON -DRUN_LONG_UNIT_TESTS=ON -DBUILD_PERFORMANCE_TESTS=ON -DBUILD_SAMPLES=ON -DMSVC_USE_STATIC_CRT=ON ", | ||
"BuildArgs": "-v --parallel 8 --config Release", | ||
"RunSamples": 1, | ||
"WindowsCtestConfig": "-C Release" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.