diff options
author | Brad Warren <bmw@users.noreply.github.com> | 2022-08-30 09:39:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 09:39:48 +0300 |
commit | f9d148be56929813af739670474e489db0936a56 (patch) | |
tree | 9a99becb6aceb19f32b748e3948826b1fd5abd02 | |
parent | 012314d946b4e2bd9b60053166f42ff9617ffba6 (diff) |
Upgrade CI OS (#9391)
* upgrade ubuntu
* upgrade macos
* use python3
5 files changed, 26 insertions, 26 deletions
diff --git a/.azure-pipelines/templates/jobs/extended-tests-jobs.yml b/.azure-pipelines/templates/jobs/extended-tests-jobs.yml index c5a1fb628..7c586ee5b 100644 --- a/.azure-pipelines/templates/jobs/extended-tests-jobs.yml +++ b/.azure-pipelines/templates/jobs/extended-tests-jobs.yml @@ -2,7 +2,7 @@ jobs: - job: extended_test variables: - name: IMAGE_NAME - value: ubuntu-18.04 + value: ubuntu-22.04 - name: PYTHON_VERSION value: 3.10 - group: certbot-common @@ -47,13 +47,13 @@ jobs: nginx-compat: TOXENV: nginx_compat linux-integration-rfc2136: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 PYTHON_VERSION: 3.8 TOXENV: integration-dns-rfc2136 docker-dev: TOXENV: docker_dev le-modification: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 TOXENV: modification farmtest-apache2: PYTHON_VERSION: 3.8 diff --git a/.azure-pipelines/templates/jobs/packaging-jobs.yml b/.azure-pipelines/templates/jobs/packaging-jobs.yml index 5545e559d..c5dcf16dd 100644 --- a/.azure-pipelines/templates/jobs/packaging-jobs.yml +++ b/.azure-pipelines/templates/jobs/packaging-jobs.yml @@ -1,7 +1,7 @@ jobs: - job: docker_build pool: - vmImage: ubuntu-18.04 + vmImage: ubuntu-22.04 strategy: matrix: amd64: @@ -37,7 +37,7 @@ jobs: - job: docker_run dependsOn: docker_build pool: - vmImage: ubuntu-18.04 + vmImage: ubuntu-22.04 steps: - task: DownloadPipelineArtifact@2 inputs: @@ -116,7 +116,7 @@ jobs: displayName: Run certbot integration tests - job: snaps_build pool: - vmImage: ubuntu-18.04 + vmImage: ubuntu-22.04 strategy: matrix: amd64: @@ -164,7 +164,7 @@ jobs: - job: snap_run dependsOn: snaps_build pool: - vmImage: ubuntu-18.04 + vmImage: ubuntu-22.04 steps: - task: UsePythonVersion@0 inputs: @@ -194,7 +194,7 @@ jobs: - job: snap_dns_run dependsOn: snaps_build pool: - vmImage: ubuntu-18.04 + vmImage: ubuntu-22.04 steps: - script: | set -e diff --git a/.azure-pipelines/templates/jobs/standard-tests-jobs.yml b/.azure-pipelines/templates/jobs/standard-tests-jobs.yml index 4deaf4f2b..cf5e20c0b 100644 --- a/.azure-pipelines/templates/jobs/standard-tests-jobs.yml +++ b/.azure-pipelines/templates/jobs/standard-tests-jobs.yml @@ -5,11 +5,11 @@ jobs: strategy: matrix: macos-py37-cover: - IMAGE_NAME: macOS-10.15 + IMAGE_NAME: macOS-12 PYTHON_VERSION: 3.7 TOXENV: py37-cover macos-py310-cover: - IMAGE_NAME: macOS-10.15 + IMAGE_NAME: macOS-12 PYTHON_VERSION: 3.10 TOXENV: py310-cover windows-py37: @@ -25,42 +25,42 @@ jobs: PYTHON_VERSION: 3.9 TOXENV: integration-certbot linux-oldest-tests-1: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 PYTHON_VERSION: 3.7 TOXENV: '{acme,apache,apache-v2,certbot}-oldest' linux-oldest-tests-2: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 PYTHON_VERSION: 3.7 TOXENV: '{dns,nginx}-oldest' linux-py37: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 PYTHON_VERSION: 3.7 TOXENV: py37 linux-py310-cover: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 PYTHON_VERSION: 3.10 TOXENV: py310-cover linux-py310-lint: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 PYTHON_VERSION: 3.10 TOXENV: lint-posix linux-py310-mypy: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 PYTHON_VERSION: 3.10 TOXENV: mypy-posix linux-integration: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 PYTHON_VERSION: 3.8 TOXENV: integration ACME_SERVER: pebble apache-compat: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 TOXENV: apache_compat apacheconftest: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 TOXENV: apacheconftest-with-pebble nginxroundtrip: - IMAGE_NAME: ubuntu-18.04 + IMAGE_NAME: ubuntu-22.04 TOXENV: nginxroundtrip pool: vmImage: $(IMAGE_NAME) diff --git a/.azure-pipelines/templates/stages/deploy-stage.yml b/.azure-pipelines/templates/stages/deploy-stage.yml index 424ffed10..8144f4bee 100644 --- a/.azure-pipelines/templates/stages/deploy-stage.yml +++ b/.azure-pipelines/templates/stages/deploy-stage.yml @@ -35,7 +35,7 @@ stages: # more info. - job: publish_snap pool: - vmImage: ubuntu-18.04 + vmImage: ubuntu-22.04 variables: - group: certbot-common strategy: @@ -71,7 +71,7 @@ stages: displayName: Publish to Snap store - job: publish_docker pool: - vmImage: ubuntu-18.04 + vmImage: ubuntu-22.04 strategy: matrix: amd64: diff --git a/.azure-pipelines/templates/steps/tox-steps.yml b/.azure-pipelines/templates/steps/tox-steps.yml index 3e5fb995d..fbda960a5 100644 --- a/.azure-pipelines/templates/steps/tox-steps.yml +++ b/.azure-pipelines/templates/steps/tox-steps.yml @@ -12,7 +12,7 @@ steps: set -e sudo apt-get update sudo apt-get install -y --no-install-recommends \ - python-dev \ + python3-dev \ gcc \ libaugeas0 \ libssl-dev \ @@ -36,8 +36,8 @@ steps: # problems with its lack of real dependency resolution. - bash: | set -e - python tools/pipstrap.py - python tools/pip_install.py -I tox virtualenv + python3 tools/pipstrap.py + python3 tools/pip_install.py -I tox virtualenv displayName: Install runtime dependencies - task: DownloadSecureFile@1 name: testFarmPem @@ -49,7 +49,7 @@ steps: export TARGET_BRANCH="`echo "${BUILD_SOURCEBRANCH}" | sed -E 's!refs/(heads|tags)/!!g'`" [ -z "${SYSTEM_PULLREQUEST_TARGETBRANCH}" ] || export TARGET_BRANCH="${SYSTEM_PULLREQUEST_TARGETBRANCH}" env - python -m tox + python3 -m tox env: AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID) AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY) |