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

Pipeline core #3953

Merged
merged 23 commits into from
Sep 26, 2022
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
44 changes: 44 additions & 0 deletions eng/pipelines/templates/jobs/perf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
parameters:
- name: ServiceDirectory
type: string
default: ''
- name: Services
type: string
default: ''
- name: PackageVersions
type: string
default: '.*'
- name: Tests
type: string
default: '.*'
- name: Arguments
type: string
default: '.*'
- name: Iterations
type: number
default: '5'
- name: AdditionalArguments
type: string
default: ''
- name: EnvVars
type: object
default: []

extends:
template: /eng/common/pipelines/templates/jobs/perf.yml
parameters:
Variables:
- template: /eng/pipelines/templates/variables/globals.yml
Language: Cpp
ServiceDirectory: ${{ parameters.ServiceDirectory }}
Services: ${{ parameters.Services }}
PackageVersions: ${{ parameters.PackageVersions }}
Tests: ${{ parameters.Tests }}
Arguments: ${{ parameters.Arguments }}
Iterations: ${{ parameters.Iterations }}
AdditionalArguments: ${{ parameters.AdditionalArguments }}
EnvVars: ${{ parameters.EnvVars}}
InstallLanguageSteps:
- template: /eng/pipelines/templates/steps/vcpkg-clone.yml
parameters:
RepoOwner: Microsoft
22 changes: 22 additions & 0 deletions eng/pipelines/templates/variables/globals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
variables:
# True if 'Enable system diagnostics' is checked when running a pipeline manually
IsDebug: $[coalesce(variables['System.Debug'], 'false')]

AdditionalOptions: ''

# Exists if needed in coalesce situations.
DefaultTestGoals: 'surefire:test'
# This will be overwritten by the test matrix, if configured.
TestGoals: $(DefaultTestGoals)

# This will be overwritten by the test matrix, if configured.
TestOptions: ''
# TestFromSource is one of the cache keys but isn't set until the test matrix
# has been processed. Without a default value it'll be treated as a string literal
# "$(TestFromSource)" instead of true/false. It'll be overwritten when the test
# matrix has been processed
TestFromSource: false

skipComponentGovernanceDetection: true
DisableDockerDetector: true
Package.EnableSBOMSigning: true
32 changes: 32 additions & 0 deletions sdk/core/perf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
parameters:
- name: PackageVersions
displayName: PackageVersions (regex of package versions to run)
type: string
default: 'source'
- name: Tests
displayName: Tests (regex of tests to run)
type: string
default: '^(extendedOptions)$'
- name: Arguments
displayName: Arguments (regex of arguments to run)
type: string
default: '.*'
- name: Iterations
displayName: Iterations (times to run each test)
type: number
default: '5'
- name: AdditionalArguments
displayName: AdditionalArguments (passed to PerfAutomation)
type: string
default: ' '

extends:
template: /eng/pipelines/templates/jobs/perf.yml
parameters:
ServiceDirectory: core
Services: "^core$"
PackageVersions: ${{ parameters.PackageVersions }}
Tests: ${{ parameters.Tests }}
Arguments: ${{ parameters.Arguments }}
Iterations: ${{ parameters.Iterations }}
AdditionalArguments: ${{ parameters.AdditionalArguments }}