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 Cpp to test pipeline #4217

Merged
merged 2 commits into from
Sep 26, 2022
Merged
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
45 changes: 45 additions & 0 deletions tools/perf-automation/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ parameters:
- name: PythonRepoCommitish
type: string
default: 'main'
- name: IncludeCpp
displayName: Include Cpp?
type: boolean
default: true
- name: CppRepoCommitish
type: string
default: 'main'
- name: PackageVersions
type: string
default: '12|source'
Expand All @@ -53,6 +60,11 @@ resources:
endpoint: Azure
name: Azure/azure-sdk-for-python
ref: main
- repository: azure-sdk-for-cpp
type: github
endpoint: Azure
name: Azure/azure-sdk-for-cpp
ref: main

variables:
# Use general pools instead of perf pools for faster startup due to more warm agents
Expand Down Expand Up @@ -184,6 +196,32 @@ stages:
# Iterations parameter has type 'number' so must use this variable syntax
Iterations: ${{ variables.Iterations }}

- ${{ if parameters.IncludeCpp }}:
- template: /eng/common/pipelines/templates/jobs/perf.yml
parameters:
JobName: 'Perf_Cpp'
LinuxPool: $(LinuxPool)
LinuxVmImage: $(LinuxVmImage)
WindowsPool: $(WindowsPool)
WindowsVmImage: $(WindowsVmImage)
Language: 'Cpp'
LanguageRepoName: 'Azure/azure-sdk-for-cpp'
LanguageRepoCommitish: ${{ parameters.CppRepoCommitish }}
ToolsRepoCommitish: $(ToolsRepoCommitish)
Variables:
- template: /eng/pipelines/templates/variables/globals.yml@azure-sdk-for-cpp
InstallLanguageSteps:
- template: /eng/pipelines/templates/steps/vcpkg-clone.yml@azure-sdk-for-cpp
parameters:
RepoOwner: Microsoft
ServiceDirectory: 'core'
Services: '^core$'
PackageVersions: 'source'
Tests: '^(extendedOptions)$'
Arguments: '.*'
# Iterations parameter has type 'number' so must use this variable syntax
Iterations: ${{ variables.Iterations }}

- stage: Print_Results
displayName: Print Results
pool:
Expand Down Expand Up @@ -238,3 +276,10 @@ stages:
get-content results-Python-Linux/results.txt
workingDirectory: $(Pipeline.Workspace)
displayName: Python

- ${{ if parameters.IncludeCpp }}:
- pwsh: |
write-host results-Cpp-Linux/results.txt
get-content results-Cpp-Linux/results.txt
workingDirectory: $(Pipeline.Workspace)
displayName: Cpp