Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{CI} Update Azure Pipelines to use Ubuntu 22.04 pools #30996

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .azure-pipelines/sync-alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ resources:
type: git
name: internal.wiki

variables:
- template: ${{ variables.Pipeline.Workspace }}/.azure-pipelines/templates/variables.yml

jobs:
- job: UpdateYaml
displayName: Update resourceManagement.yml
pool: pool-windows-2019
pool:
name: ${{ variables.windows_pool }}
uses:
repositories:
- ServiceContactList
Expand Down
6 changes: 3 additions & 3 deletions .azure-pipelines/templates/variables.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variables:
ubuntu_pool: 'pool-ubuntu-2004'
ubuntu_multi_core_pool: 'pool-ubuntu-2004-multi-core'
ubuntu_pool: 'pool-ubuntu-2204'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for not using pool-ubuntu-latest is that Azure PowerShell team has already created pool-ubuntu-2204.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the ubuntu version in pool-ubuntu-latest-multi-core, 22.04 or 24.04?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

22.04,because 2204 is the latest one in 1ES image.

Copy link
Contributor

@bebound bebound Mar 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a pretty old image. I prefer to change the PR title to 22.04 instead of latest.

In general, latest should refer to 24.04, which was released 1 year ago.

ubuntu_multi_core_pool: 'pool-ubuntu-latest-multi-core'
windows_pool: 'pool-windows-2019'
ubuntu_arm64_pool: 'ubuntu-arm64-2004-pool'
ubuntu_arm64_pool: 'pool-ubuntu-latest-arm64'
macos_pool: 'macOS-14'
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ parameters:
default:
- name: AMD64
value: amd64
pool: pool-ubuntu-2004-multi-core
pool: pool-ubuntu-latest-multi-core
Copy link
Member Author

@wangzelin007 wangzelin007 Mar 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already tried using variables in the parameters, but Azure Pipelines gives this error:
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, that's why I don't use variable here previously.

- name: ARM64
value: arm64
pool: ubuntu-arm64-2004-pool
pool: pool-ubuntu-latest-arm64

jobs:
- job: CheckPullRequest
Expand Down
4 changes: 2 additions & 2 deletions scripts/live_test/CLITest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ variables:
stages:
# Azure DevOps limits the number of jobs to 256, so it must be split according to the platform and placed in different stages.
- stage: TestUbuntu
displayName: Live Test on Ubuntu 2004
displayName: Live Test on Ubuntu latest
condition: succeededOrFailed()
jobs:
- job: LiveTest
Expand Down Expand Up @@ -455,7 +455,7 @@ stages:
if [[ "$(USER_TARGET)" =~ "$(Target)" || ("$(USER_TARGET)" == "main" && ! "$(Target)" =~ ^ext-.*) || ("$(USER_TARGET)" == "extensions" && "$(Target)" =~ ^ext-.*) || ("$(USER_TARGET)" == "ALL" || "$(USER_TARGET)" == "all" || "$(USER_TARGET)" == "") ]]; then
echo "Match!"
echo "##vso[task.setvariable variable=Match]1"
echo "##vso[task.setvariable variable=platform]ubuntu2004"
echo "##vso[task.setvariable variable=platform]ubuntulatest"
else
echo "Not match!"
echo "##vso[task.setvariable variable=Match]0"
Expand Down
Loading