Skip to content

Commit 4207b9f

Browse files
authored
Remaining livetest matrices, ci.yml uses image.yml variables (#34727)
* ensure that image.yml is populated everywhere * update ci.yml to also use the variables as provided by image.yml * update gitignore so that our updates don't break anyone's analyze * ensure analyze weekly runs on the correct job
1 parent 5170e10 commit 4207b9f

File tree

12 files changed

+52
-44
lines changed

12 files changed

+52
-44
lines changed

.vscode/cspell.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@
454454
"amltemp",
455455
"deserializers",
456456
"dicom",
457+
"WINDOWSVMIMAGE",
458+
"LINUXVMIMAGE",
459+
"MACVMIMAGE"
457460
],
458461
"overrides": [
459462
{

eng/pipelines/templates/jobs/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jobs:
7272
timeoutInMinutes: 90
7373

7474
pool:
75-
name: azsdk-pool-mms-ubuntu-2004-general
76-
image: azsdk-pool-mms-ubuntu-2004-1espt
75+
name: $(LINUXPOOL)
76+
image: $(LINUXVMIMAGE)
7777
os: linux
7878

7979
steps:
@@ -93,8 +93,8 @@ jobs:
9393
timeoutInMinutes: 90
9494

9595
pool:
96-
name: azsdk-pool-mms-ubuntu-2004-general
97-
image: azsdk-pool-mms-ubuntu-2004-1espt
96+
name: $(LINUXPOOL)
97+
image: $(LINUXVMIMAGE)
9898
os: linux
9999

100100
steps:
@@ -114,8 +114,8 @@ jobs:
114114
timeoutInMinutes: 90
115115

116116
pool:
117-
name: azsdk-pool-mms-win-2022-general
118-
image: azsdk-pool-mms-win-2022-1espt
117+
name: $(WINDOWSPOOL)
118+
image: $(WINDOWSVMIMAGE)
119119
os: windows
120120

121121
steps:
@@ -135,8 +135,8 @@ jobs:
135135
timeoutInMinutes: 90
136136

137137
pool:
138-
name: 'Azure Pipelines'
139-
vmImage: macos-11
138+
name: $(MACPOOL)
139+
vmImage: $(MACVMIMAGE)
140140
os: macOS
141141

142142
steps:
@@ -161,8 +161,8 @@ jobs:
161161
timeoutInMinutes: 90
162162

163163
pool:
164-
name: azsdk-pool-mms-ubuntu-2004-general
165-
image: azsdk-pool-mms-ubuntu-2004-1espt
164+
name: $(LINUXPOOL)
165+
image: $(LINUXVMIMAGE)
166166
os: linux
167167

168168
steps:
@@ -197,8 +197,8 @@ jobs:
197197
timeoutInMinutes: 90
198198

199199
pool:
200-
name: azsdk-pool-mms-ubuntu-2004-general
201-
image: azsdk-pool-mms-ubuntu-2004-1espt
200+
name: $(LINUXPOOL)
201+
image: $(LINUXVMIMAGE)
202202
os: linux
203203

204204
steps:
@@ -223,8 +223,8 @@ jobs:
223223
- 'Build_Extended'
224224

225225
pool:
226-
name: azsdk-pool-mms-ubuntu-2004-general
227-
image: azsdk-pool-mms-ubuntu-2004-1espt
226+
name: $(LINUXPOOL)
227+
image: $(LINUXVMIMAGE)
228228
os: linux
229229

230230
steps:

eng/pipelines/templates/jobs/live.tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474

7575
variables:
7676
- template: ../variables/globals.yml
77+
- template: ../variables/image.yml
7778

7879
- name: skipComponentGovernanceDetection
7980
value: true

eng/pipelines/templates/stages/archetype-sdk-client.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ extends:
146146

147147
variables:
148148
- template: /eng/pipelines/templates/variables/globals.yml@self
149+
- template: /eng/pipelines/templates/variables/image.yml@self
149150

150151
# The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch.
151152
- ${{if and(in(variables['Build.Reason'], 'Manual', ''), eq(variables['System.TeamProject'], 'internal'))}}:

eng/pipelines/templates/stages/platform-matrix-ai.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
},
77
"matrix": {
88
"Agent": {
9-
"windows-2022": { "OSVmImage": "MMS2022", "Pool": "azsdk-pool-mms-win-2022-general" },
10-
"ubuntu-20.04": { "OSVmImage": "MMSUbuntu20.04", "Pool": "azsdk-pool-mms-ubuntu-2004-general" },
11-
"macos-11": { "OSVmImage": "macos-11", "Pool": "Azure Pipelines" }
9+
"windows-2022": { "OSVmImage": "env:WINDOWSVMIMAGE", "Pool": "env:WINDOWSPOOL" },
10+
"ubuntu-20.04": { "OSVmImage": "env:LINUXVMIMAGE", "Pool": "env:LINUXPOOL" },
11+
"macos-11": { "OSVmImage": "env:MACVMIMAGE", "Pool": "env:MACPOOL" }
1212
},
1313
"PythonVersion": ["3.8", "3.10", "3.11" ],
1414
"CoverageArg": "--disablecov",
@@ -18,8 +18,8 @@
1818
{
1919
"CoverageConfig": {
2020
"ubuntu2004_39_coverage": {
21-
"OSVmImage": "MMSUbuntu20.04",
22-
"Pool": "azsdk-pool-mms-ubuntu-2004-general",
21+
"OSVmImage": "env:LINUXVMIMAGE",
22+
"Pool": "env:LINUXPOOL",
2323
"PythonVersion": "3.9",
2424
"CoverageArg": "",
2525
"TestSamples": "false"

eng/pipelines/templates/stages/python-analyze-weekly.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ stages:
1919
timeoutInMinutes: 90
2020

2121
variables:
22-
PythonVersion: '3.8'
22+
- template: /eng/pipelines/templates/variables/image.yml
23+
- name: PythonVersion
24+
value: '3.8'
2325

2426
pool:
25-
name: azsdk-pool-mms-ubuntu-2004-general
26-
vmImage: MMSUbuntu20.04
27+
name: $(LINUXPOOL)
28+
vmImage: $(LINUXVMIMAGE)
29+
os: linux
2730

2831
steps:
2932
- task: UsePythonVersion@0

sdk/communication/azure-communication-phonenumbers/phonenumbers-livetest-matrix.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
"matrix": {
88
"Agent": {
99
"ubuntu-20.04": {
10-
"OSVmImage": "MMSUbuntu20.04",
11-
"Pool": "azsdk-pool-mms-ubuntu-2004-general",
10+
"OSVmImage": "env:LINUXVMIMAGE",
11+
"Pool": "env:LINUXPOOL",
1212
"COMMUNICATION_SKIP_CAPABILITIES_LIVE_TEST": "true"
1313
},
1414
"windows-2022": {
15-
"OSVmImage": "MMS2022",
16-
"Pool": "azsdk-pool-mms-win-2022-general",
15+
"OSVmImage": "env:WINDOWSVMIMAGE",
16+
"Pool": "env:WINDOWSPOOL",
1717
"AZURE_TEST_AGENT": "WINDOWS_2019_PYTHON36",
1818
"COMMUNICATION_SKIP_CAPABILITIES_LIVE_TEST": "false"
1919
},
2020
"macos-11": {
21-
"OSVmImage": "macos-11",
22-
"Pool": "Azure Pipelines",
21+
"OSVmImage": "env:MACVMIMAGE",
22+
"Pool": "env:MACPOOL",
2323
"AZURE_TEST_AGENT": "MACOS_1015_PYTHON37",
2424
"COMMUNICATION_SKIP_CAPABILITIES_LIVE_TEST": "false"
2525
}
@@ -32,8 +32,8 @@
3232
{
3333
"CoverageConfig": {
3434
"ubuntu2004_39_coverage": {
35-
"OSVmImage": "MMSUbuntu20.04",
36-
"Pool": "azsdk-pool-mms-ubuntu-2004-general",
35+
"OSVmImage": "env:LINUXVMIMAGE",
36+
"Pool": "env:LINUXPOOL",
3737
"PythonVersion": "3.9",
3838
"CoverageArg": "",
3939
"TestSamples": "false",
@@ -45,8 +45,8 @@
4545
{
4646
"Config": {
4747
"Ubuntu2004_3120": {
48-
"OSVmImage": "MMSUbuntu20.04",
49-
"Pool": "azsdk-pool-mms-ubuntu-2004-general",
48+
"OSVmImage": "env:LINUXVMIMAGE",
49+
"Pool": "env:LINUXPOOL",
5050
"PythonVersion": "3.12",
5151
"CoverageArg": "--disablecov",
5252
"TestSamples": "false",

sdk/cosmos/cosmos-emulator-matrix.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"matrix": {
88
"Agent": {
9-
"windows-2022": { "OSVmImage": "MMS2022", "Pool": "azsdk-pool-mms-win-2022-general" }
9+
"windows-2022": { "OSVmImage": "env:WINDOWSVMIMAGE", "Pool": "env:WINDOWSPOOL" }
1010
},
1111
"EmulatorConfig": {
1212
"Emulator Tests Python 3.8": {

sdk/identity/platform-matrix-integration.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{
44
"Agent": {
55
"identity-integration": {
6-
"OSVmImage": "MMSUbuntu20.04",
7-
"Pool": "azsdk-pool-mms-ubuntu-2004-general",
6+
"OSVmImage": "env:LINUXVMIMAGE",
7+
"Pool": "env:LINUXPOOL",
88
"ArmTemplateParameters": "@{ ProvisionLiveResources = $true }"
99
}
1010
},

sdk/identity/platform-matrix.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
{
1010
"Config": {
1111
"ubuntu_20.04_3.8_msal": {
12-
"OSVmImage": "MMSUbuntu20.04",
13-
"Pool": "azsdk-pool-mms-ubuntu-2004-general",
12+
"OSVmImage": "env:LINUXVMIMAGE",
13+
"Pool": "env:LINUXPOOL",
1414
"PythonVersion": "3.8",
1515
"CoverageArg": "--disablecov",
1616
"InjectedPackages": "git+https://github.com/AzureAD/microsoft-authentication-library-for-python@dev",

0 commit comments

Comments
 (0)