From 4e868b40e05cb205016c50d083556e7a9631d6f3 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Fri, 14 Jan 2022 17:27:30 +0000 Subject: [PATCH 1/4] ci: Update Ubuntu to 20.04 Azure pipelines removed the option of Ubuntu 16.04 and ubuntu-latest. Upgrade to the current latest LTS release of Ubuntu explicitly. --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 73eb6d257a..34719e0f4d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,7 +15,7 @@ stages: - job: code_style_check pool: - vmImage: ubuntu-16.04 + vmImage: ubuntu-20.04 steps: - task: UsePythonVersion@0 @@ -38,15 +38,15 @@ stages: sendCoverage: "false" linux_python_3_6: python.version: "3.6" - imageName: ubuntu-16.04 + imageName: ubuntu-20.04 sendCoverage: "false" linux_python_3_7: python.version: "3.7" - imageName: ubuntu-16.04 + imageName: ubuntu-20.04 sendCoverage: "false" linux_python_3_8: python.version: "3.8" - imageName: ubuntu-16.04 + imageName: ubuntu-20.04 sendCoverage: "true" mac_python_2_7: python.version: "2.7" @@ -181,7 +181,7 @@ stages: runOnce: deploy: pool: - vmImage: 'ubuntu-latest' + vmImage: 'ubuntu-20.04' steps: - checkout: self From d061ec9566dd54a6b4371e1183ec8f60cfe61fc4 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Fri, 14 Jan 2022 17:28:51 +0000 Subject: [PATCH 2/4] ci: Remove testing of Python 2.7 Python 2 isn't readily available in Azure pipelines anymore. Instead of testing Python 2 in CI, we'll have to rely on bug reports from Python 2 users. --- azure-pipelines.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 34719e0f4d..1203582aba 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,10 +32,6 @@ stages: strategy: maxParallel: 10 matrix: - linux_python_2_7: - python.version: "2.7" - imageName: ubuntu-16.04 - sendCoverage: "false" linux_python_3_6: python.version: "3.6" imageName: ubuntu-20.04 @@ -48,10 +44,6 @@ stages: python.version: "3.8" imageName: ubuntu-20.04 sendCoverage: "true" - mac_python_2_7: - python.version: "2.7" - imageName: macOS-10.15 - sendCoverage: "false" mac_python_3_6: python.version: "3.6" imageName: macOS-10.15 @@ -64,10 +56,6 @@ stages: python.version: "3.8" imageName: macOS-10.15 sendCoverage: "false" - windows_python_2_7: - python.version: "2.7" - imageName: vs2017-win2016 - sendCoverage: "false" windows_python_3_6: python.version: "3.6" imageName: vs2017-win2016 From d712174e39ccf88f5f0ac347b93d6093715efe10 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Mon, 17 Jan 2022 14:43:16 +0000 Subject: [PATCH 3/4] ci: Upgrade windows image to windows-2019 The image we currently use, vs2017-win2016, is deprecated. It's currently subject to "brownouts" and will be removed in the future. Switch to using windows-2019 as a replacement, as that version hasn't yet been deprecated. See https://devblogs.microsoft.com/devops/hosted-pipelines-image-deprecation/#windows for more information about the deprecation. --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1203582aba..a06ae16ef5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -58,15 +58,15 @@ stages: sendCoverage: "false" windows_python_3_6: python.version: "3.6" - imageName: vs2017-win2016 + imageName: windows-2019 sendCoverage: "false" windows_python_3_7: python.version: "3.7" - imageName: vs2017-win2016 + imageName: windows-2019 sendCoverage: "false" windows_python_3_8: python.version: "3.8" - imageName: vs2017-win2016 + imageName: windows-2019 sendCoverage: "false" pool: From c4e0c80442a2f001faf271e4bdc6bcb98f761063 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Mon, 17 Jan 2022 15:23:42 +0000 Subject: [PATCH 4/4] ci: Specify the image for the CiCheckpoint stage Without specifying which image to use for the CiCheckpoint stage, Azure will default to using Ubuntu 16.04. However, Ubuntu 16.04 has been removed from Azure, so the pipeline stage will end up cancelling itself with the following error: ##[warning]An image label with the label Ubuntu16 does not exist. ,##[error]The remote provider was unable to process the request. Pool: Azure Pipelines Image: Ubuntu16 Explicitly specify the image to use in the CiCheckpoint stage to ensure the stage doesn't cancel itself. --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a06ae16ef5..3b0e46aa6c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -150,6 +150,8 @@ stages: jobs: - job: ChecksPassing displayName: 'Checks Passing' + pool: + vmImage: ubuntu-20.04 # A dummy job is required due to a bug in Azure which runs the previous job if nothing is defined. steps: - bash: echo "All prerequisite stages have passed and the package should be suitable for release."