-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor perf tests and create a YAML perf build (#3297)
* Fix issue with OBO and other token tests. Add Debug flag. Use explicit type in benchmarks. * Join results summary * Remove Random use and IterationSetup. * Disable GetAccounts test. Use (1, 1k) instead of (1, 10k). * Upgrade MSBuild.Sdk.Extras to 3.0.44 * Add build yaml. * PR feedback. Add comment.
- Loading branch information
Showing
10 changed files
with
98 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Build for performance tests | ||
trigger: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- src/client/Microsoft.Identity.Client/* | ||
|
||
pr: none | ||
|
||
pool: | ||
name: MsalNetPerfTest1ESPool | ||
demands: msbuild | ||
|
||
variables: | ||
BuildPlatform: 'any cpu' | ||
BuildConfiguration: 'release' | ||
MSAL_DESKTOP_ONLY_DEV: 'false' # skips building mobile and legacy targets | ||
|
||
jobs: | ||
- job: 'BuildJob' | ||
displayName: 'Build and run tests' | ||
steps: | ||
- task: NuGetToolInstaller@1 | ||
displayName: 'Use NuGet 5.x' | ||
inputs: | ||
versionSpec: 5.x | ||
|
||
- task: NuGetCommand@2 | ||
displayName: 'NuGet restore' | ||
inputs: | ||
restoreSolution: PerformanceTests.sln | ||
|
||
- task: MSBuild@1 | ||
displayName: Build PerformanceTests.sln | ||
inputs: | ||
solution: PerformanceTests.sln | ||
msbuildArchitecture: x64 | ||
platform: '$(BuildPlatform)' | ||
configuration: '$(BuildConfiguration)' | ||
msbuildArguments: '/p:RunCodeAnalysis=false /p:MSAL_DESKTOP_ONLY_DEV=$(MSAL_DESKTOP_ONLY_DEV)' | ||
clean: true | ||
|
||
# The parameters currently are not used, but can be uploaded into the reporting system in the future. | ||
# Currently the build runs automatically but the results have to be compared manually. | ||
- script: '$(Build.SourcesDirectory)\tests\Microsoft.Identity.Test.Performance\bin\$(BuildConfiguration)\$(BuildRuntime)\Microsoft.Identity.Test.Performance.exe -BranchName $(Build.SourceBranch) -BranchCommit $(Build.SourceVersion)' | ||
displayName: 'Run performance tests' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"msbuild-sdks": { | ||
"MSBuild.Sdk.Extras": "3.0.23" | ||
"MSBuild.Sdk.Extras": "3.0.44" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.