Skip to content

Commit

Permalink
[Perf] Add parameter TimeoutInMinutes, update pools (#5456)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder authored Feb 15, 2023
1 parent 18d81c0 commit 8f4c086
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 29 deletions.
22 changes: 6 additions & 16 deletions eng/common/pipelines/templates/jobs/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@ parameters:
- name: JobName
type: string
default: 'Perf'
- name: TimeoutInMinutes
type: number
default: '360'
- name: LinuxPool
type: string
default: 'azsdk-pool-mms-ubuntu-2004-perf'
- name: LinuxVmImage
type: string
default: 'MMSUbuntu20.04'
default: 'azsdk-pool-mms-ubuntu-2204-perf'
- name: WindowsPool
type: string
default: 'azsdk-pool-mms-win-2019-perf'
- name: WindowsVmImage
type: string
default: 'MMS2019'
default: 'azsdk-pool-mms-win-2022-perf'
- name: Language
type: string
default: ''
Expand Down Expand Up @@ -65,18 +62,16 @@ parameters:

jobs:
- job: ${{ parameters.JobName }}
timeoutInMinutes: 360
timeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
strategy:
matrix:
${{ if contains(parameters.OperatingSystems, 'Linux') }}:
Linux:
Pool: ${{ parameters.LinuxPool }}
OsVmImage: ${{ parameters.LinuxVmImage }}
MatrixName: 'Linux'
${{ if contains(parameters.OperatingSystems, 'Windows') }}:
Windows:
Pool: ${{ parameters.WindowsPool }}
OsVmImage: ${{ parameters.WindowsVmImage }}
MatrixName: 'Windows'
variables:
- ${{ parameters.Variables }}
Expand All @@ -87,7 +82,6 @@ jobs:
value: ''
pool:
name: $(Pool)
vmImage: $(OSVmImage)
steps:

- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
Expand All @@ -106,10 +100,6 @@ jobs:
Commitish: ${{ parameters.ToolsRepoCommitish }}
WorkingDirectory: $(System.DefaultWorkingDirectory)/azure-sdk-tools

- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml
parameters:
AgentImage: $(OSVmImage)

- ${{ parameters.InstallLanguageSteps }}

- template: /eng/common/TestResources/deploy-test-resources.yml
Expand Down
21 changes: 8 additions & 13 deletions tools/perf-automation/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ parameters:
- name: WindowsPool
type: string
default: 'azsdk-pool-mms-win-2022-general'
- name: TimeoutInMinutes
type: number
default: '360'

resources:
repositories:
Expand Down Expand Up @@ -124,8 +127,6 @@ resources:
ref: main

variables:
LinuxVmImage: MMSUbuntu22.04
WindowsVmImage: 'MMS2022'
ToolsRepoCommitish: $(Build.SourceVersion)

stages:
Expand All @@ -136,10 +137,9 @@ stages:
- template: /eng/common/pipelines/templates/jobs/perf.yml
parameters:
JobName: 'Perf_Net'
TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
LinuxPool: ${{ parameters.LinuxPool }}
LinuxVmImage: $(LinuxVmImage)
WindowsPool: ${{ parameters.WindowsPool }}
WindowsVmImage: $(WindowsVmImage)
Language: 'Net'
LanguageVersion: ${{ parameters.NetLanguageVersion }}
LanguageRepoName: 'Azure/azure-sdk-for-net'
Expand All @@ -164,10 +164,9 @@ stages:
- template: /eng/common/pipelines/templates/jobs/perf.yml
parameters:
JobName: 'Perf_Java'
TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
LinuxPool: ${{ parameters.LinuxPool }}
LinuxVmImage: $(LinuxVmImage)
WindowsPool: ${{ parameters.WindowsPool }}
WindowsVmImage: $(WindowsVmImage)
Language: 'Java'
LanguageVersion: ${{ parameters.JavaLanguageVersion }}
LanguageRepoName: 'Azure/azure-sdk-for-java'
Expand Down Expand Up @@ -199,10 +198,9 @@ stages:
- template: /eng/common/pipelines/templates/jobs/perf.yml
parameters:
JobName: 'Perf_JS'
TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
LinuxPool: ${{ parameters.LinuxPool }}
LinuxVmImage: $(LinuxVmImage)
WindowsPool: ${{ parameters.WindowsPool }}
WindowsVmImage: $(WindowsVmImage)
Language: 'JS'
LanguageVersion: ${{ parameters.JSLanguageVersion }}
LanguageRepoName: 'Azure/azure-sdk-for-js'
Expand All @@ -227,10 +225,9 @@ stages:
- template: /eng/common/pipelines/templates/jobs/perf.yml
parameters:
JobName: 'Perf_Python'
TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
LinuxPool: ${{ parameters.LinuxPool }}
LinuxVmImage: $(LinuxVmImage)
WindowsPool: ${{ parameters.WindowsPool }}
WindowsVmImage: $(WindowsVmImage)
Language: 'Python'
LanguageVersion: ${{ parameters.PythonLanguageVersion }}
LanguageRepoName: 'Azure/azure-sdk-for-python'
Expand Down Expand Up @@ -258,10 +255,9 @@ stages:
- template: /eng/common/pipelines/templates/jobs/perf.yml
parameters:
JobName: 'Perf_Cpp'
TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
LinuxPool: ${{ parameters.LinuxPool }}
LinuxVmImage: $(LinuxVmImage)
WindowsPool: ${{ parameters.WindowsPool }}
WindowsVmImage: $(WindowsVmImage)
Language: 'Cpp'
LanguageVersion: 'N/A'
LanguageRepoName: 'Azure/azure-sdk-for-cpp'
Expand All @@ -286,7 +282,6 @@ stages:
displayName: Print Results
pool:
name: azsdk-pool-mms-ubuntu-2204-general
vmImage: MMSUbuntu22.04
condition: succeededOrFailed()
variables:
- template: /eng/pipelines/templates/variables/globals.yml
Expand Down

0 comments on commit 8f4c086

Please sign in to comment.