diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 81879063f..f3e0d6812 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -92,6 +92,8 @@ jobs: parameters: AgentImage: $(OsVmImage) + - template: /eng/pipelines/templates/steps/fix-1es-image-apt-azure-sources.yml + - pwsh: sudo apt update && sudo apt install -y $(AptDependencies) condition: and(succeeded(), ne(variables['AptDependencies'], '')) displayName: Install dependencies from apt diff --git a/eng/pipelines/templates/jobs/cmake-generate.tests.yml b/eng/pipelines/templates/jobs/cmake-generate.tests.yml index d2be6f47e..f1b75fc59 100644 --- a/eng/pipelines/templates/jobs/cmake-generate.tests.yml +++ b/eng/pipelines/templates/jobs/cmake-generate.tests.yml @@ -64,6 +64,8 @@ jobs: - template: /eng/common/pipelines/templates/steps/verify-agent-os.yml parameters: AgentImage: $(OSVmImage) + + - template: /eng/pipelines/templates/steps/fix-1es-image-apt-azure-sources.yml - pwsh: sudo apt update && sudo apt install -y $(AptDependencies) condition: and(succeeded(), ne(variables['AptDependencies'], '')) diff --git a/eng/pipelines/templates/jobs/live.tests.yml b/eng/pipelines/templates/jobs/live.tests.yml index f856cda4d..0d1f2add9 100644 --- a/eng/pipelines/templates/jobs/live.tests.yml +++ b/eng/pipelines/templates/jobs/live.tests.yml @@ -78,8 +78,8 @@ jobs: - template: /eng/common/pipelines/templates/steps/verify-agent-os.yml parameters: AgentImage: $(OSVmImage) - - - template: /eng/common/pipelines/templates/steps/bypass-local-dns.yml + + - template: /eng/pipelines/templates/steps/fix-1es-image-apt-azure-sources.yml # Add g++5 repo to ubuntu - bash: sudo sh -c "echo 'deb http://ftp.debian.org/debian/ stretch main' >> /etc/apt/sources.list" diff --git a/eng/pipelines/templates/stages/platform-matrix-cmakegenerate.json b/eng/pipelines/templates/stages/platform-matrix-cmakegenerate.json index 18597e831..02ae3c168 100644 --- a/eng/pipelines/templates/stages/platform-matrix-cmakegenerate.json +++ b/eng/pipelines/templates/stages/platform-matrix-cmakegenerate.json @@ -3,8 +3,8 @@ "CmakeEnvArg": "", "OSConfig": { "Linux": { - "Pool": "azsdk-pool-mms-ubuntu-1804-general", - "OSVmImage": "MMSUbuntu18.04", + "Pool": "azsdk-pool-mms-ubuntu-2204-general", + "OSVmImage": "MMSUbuntu22.04", "AptDependencies": "libcurl4-openssl-dev", "VCPKG_DEFAULT_TRIPLET": "x64-linux" }, diff --git a/eng/pipelines/templates/stages/platform-matrix-cmakesourcegenerate.json b/eng/pipelines/templates/stages/platform-matrix-cmakesourcegenerate.json index 716b1b459..8c7791a0c 100644 --- a/eng/pipelines/templates/stages/platform-matrix-cmakesourcegenerate.json +++ b/eng/pipelines/templates/stages/platform-matrix-cmakesourcegenerate.json @@ -7,8 +7,8 @@ "CmakeEnvArg": "" }, "Linux": { - "Pool": "azsdk-pool-mms-ubuntu-1804-general", - "OSVmImage": "MMSUbuntu18.04", + "Pool": "azsdk-pool-mms-ubuntu-2204-general", + "OSVmImage": "MMSUbuntu22.04", "CmakeEnvArg": "", "AptDependencies": "libcurl4-openssl-dev" }, diff --git a/eng/pipelines/templates/stages/platform-matrix-live.json b/eng/pipelines/templates/stages/platform-matrix-live.json index 263df0a3c..c918f6975 100644 --- a/eng/pipelines/templates/stages/platform-matrix-live.json +++ b/eng/pipelines/templates/stages/platform-matrix-live.json @@ -21,19 +21,15 @@ }, { "StaticConfigs": { - "Ubu1804": { + "Ubu2204": { "VCPKG_DEFAULT_TRIPLET": "x64-linux", "BuildArgs": "-j 4", - "Pool": "azsdk-pool-mms-ubuntu-1804-general", - "OSVmImage": "MMSUbuntu18.04", + "Pool": "azsdk-pool-mms-ubuntu-2204-general", + "OSVmImage": "MMSUbuntu22.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", diff --git a/eng/pipelines/templates/stages/platform-matrix.json b/eng/pipelines/templates/stages/platform-matrix.json index 655101ee3..ca333afeb 100644 --- a/eng/pipelines/templates/stages/platform-matrix.json +++ b/eng/pipelines/templates/stages/platform-matrix.json @@ -135,24 +135,15 @@ }, { "StaticConfigs": { - "Ubuntu18": { - "OSVmImage": "MMSUbuntu18.04", - "Pool": "azsdk-pool-mms-ubuntu-1804-general", + "Ubuntu22": { + "OSVmImage": "MMSUbuntu22.04", + "Pool": "azsdk-pool-mms-ubuntu-2204-general", "VCPKG_DEFAULT_TRIPLET": "x64-linux", "BuildArgs": "-j 10", "RunProxyTests": true } }, "BuildSettings": { - "gpp-5": { - "AptDependencies": "g++-5", - "CmakeEnvArg": "CC=/usr/bin/gcc-5 CXX=/usr/bin/g++-5 " - }, - "gpp-8": { - "AptDependencies": "g++-8", - "CC": "/usr/bin/gcc-8", - "CXX": "/usr/bin/g++-8" - }, "gpp-9": { "AptDependencies": "g++-9", "CC": "/usr/bin/gcc-9", @@ -177,6 +168,24 @@ } } }, + { + "StaticConfigs": { + "Ubuntu20": { + "OSVmImage": "MMSUbuntu20.04", + "Pool": "azsdk-pool-mms-ubuntu-2004-general", + "VCPKG_DEFAULT_TRIPLET": "x64-linux", + "BuildArgs": "-j 10", + "RunProxyTests": true + } + }, + "BuildSettings": { + "gpp-8": { + "AptDependencies": "g++-8", + "CC": "/usr/bin/gcc-8", + "CXX": "/usr/bin/g++-8" + } + } + }, { "StaticConfigs": { "Ubuntu20": { diff --git a/eng/pipelines/templates/steps/fix-1es-image-apt-azure-sources.yml b/eng/pipelines/templates/steps/fix-1es-image-apt-azure-sources.yml new file mode 100644 index 000000000..39594b0a5 --- /dev/null +++ b/eng/pipelines/templates/steps/fix-1es-image-apt-azure-sources.yml @@ -0,0 +1,13 @@ +steps: + - pwsh: | + if ((lsb_release --release --short) -eq "22.04") { + Write-Host "Release is 22.04, modifying apt configuration" + + Write-Host "sudo rm -f /etc/apt/sources.list.d/azure.list" + # Use -f to suppress error if file is not present + sudo rm -f /etc/apt/sources.list.d/azure.list + } else { + Write-Host "Release does not need modification" + } + displayName: Modify Linux configurations + condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) diff --git a/sdk/core/ci.yml b/sdk/core/ci.yml index 35c40e34f..3d43da632 100644 --- a/sdk/core/ci.yml +++ b/sdk/core/ci.yml @@ -44,7 +44,7 @@ stages: CtestRegex: azure-core.|json-test LiveTestCtestRegex: azure-core.|json-test LiveTestTimeoutInMinutes: 90 # default is 60 min. We need a little longer on worst case for Win+jsonTests - LineCoverageTarget: 92 + LineCoverageTarget: 91 BranchCoverageTarget: 50 # PreTestSteps: # - pwsh: |