Skip to content

Commit

Permalink
Pipeline core (#3953)
Browse files Browse the repository at this point in the history
* test1

* glob

* quick cleanup

* ddasda

* ddsa

* envs

* dsds

* Revert "ddsa"

This reverts commit 6d9e385.

* wq

* comment out issues

* valid test

* maybe

* qwewqewq

* lang steps

* Vcpkg pre-steps in the place Daniel should've recommend they go

* RepoOwner

* Correct repo owner name

* Remove vcpkg.yml (we don't need to write)

* PR trigger

* small change

* Update eng/pipelines/templates/jobs/perf.yml

Co-authored-by: Mike Harder <[email protected]>

* Update eng/pipelines/templates/jobs/perf.yml

Co-authored-by: Mike Harder <[email protected]>

* Update sdk/core/perf.yml

Co-authored-by: Mike Harder <[email protected]>

Co-authored-by: Daniel Jurek <[email protected]>
Co-authored-by: Mike Harder <[email protected]>
  • Loading branch information
3 people authored Sep 26, 2022
1 parent 68eea9a commit c8d7961
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
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 }}

0 comments on commit c8d7961

Please sign in to comment.