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

[Perf] Add parameter TimeoutInMinutes, update pools #5456

Merged
merged 4 commits into from
Feb 15, 2023
Merged
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
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
mikeharder marked this conversation as resolved.
Show resolved Hide resolved
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