Sync eng/common directory with azure-sdk-tools for PR 9259 (#8182)
* Run perf tests under federated auth Run the tests under the same federated auth used to deploy the tests and setup the variables needed to configure AzurePipelineCredential. * Fix indention for working directory --------- Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
This commit is contained in:
Родитель
5e08a1f6af
Коммит
28921b904a
|
@ -122,23 +122,34 @@ jobs:
|
||||||
ResourceType: perf
|
ResourceType: perf
|
||||||
ServiceConnection: azure-sdk-tests-public
|
ServiceConnection: azure-sdk-tests-public
|
||||||
|
|
||||||
- script: >-
|
- task: AzurePowerShell@5
|
||||||
dotnet run -- run
|
inputs:
|
||||||
--language ${{ parameters.Language }}
|
azureSubscription: azure-sdk-tests-public
|
||||||
--language-version ${{ parameters.LanguageVersion }}
|
azurePowerShellVersion: LatestVersion
|
||||||
--repo-root $(System.DefaultWorkingDirectory)
|
pwsh: true
|
||||||
--tests-file $(System.DefaultWorkingDirectory)/sdk/${{ parameters.ServiceDirectory }}/perf-tests.yml
|
ScriptType: InlineScript
|
||||||
--package-versions "${{ parameters.PackageVersions }}"
|
Inline: >-
|
||||||
--tests "${{ parameters.Tests }}"
|
$account = (Get-AzContext).Account;
|
||||||
--arguments "${{ parameters.Arguments }}"
|
$env:AZURESUBSCRIPTION_CLIENT_ID = $account.Id;
|
||||||
--iterations ${{ parameters.Iterations }}
|
$env:AZURESUBSCRIPTION_TENANT_ID = $account.Tenants;
|
||||||
$(Profile)
|
|
||||||
${{ parameters.AdditionalArguments }}
|
dotnet run -- run
|
||||||
workingDirectory: azure-sdk-tools/tools/perf-automation/Azure.Sdk.Tools.PerfAutomation
|
--language ${{ parameters.Language }}
|
||||||
|
--language-version ${{ parameters.LanguageVersion }}
|
||||||
|
--repo-root $(System.DefaultWorkingDirectory)
|
||||||
|
--tests-file $(System.DefaultWorkingDirectory)/sdk/${{ parameters.ServiceDirectory }}/perf-tests.yml
|
||||||
|
--package-versions "${{ parameters.PackageVersions }}"
|
||||||
|
--tests "${{ parameters.Tests }}"
|
||||||
|
--arguments "${{ parameters.Arguments }}"
|
||||||
|
--iterations ${{ parameters.Iterations }}
|
||||||
|
$(Profile)
|
||||||
|
${{ parameters.AdditionalArguments }}
|
||||||
|
workingDirectory: azure-sdk-tools/tools/perf-automation/Azure.Sdk.Tools.PerfAutomation
|
||||||
|
displayName: Run perf tests
|
||||||
env:
|
env:
|
||||||
|
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
||||||
${{ each var in parameters.EnvVars }}:
|
${{ each var in parameters.EnvVars }}:
|
||||||
${{ var.key }}: ${{ var.value }}
|
${{ var.key }}: ${{ var.value }}
|
||||||
displayName: Run perf tests
|
|
||||||
|
|
||||||
- pwsh: |
|
- pwsh: |
|
||||||
get-content results.txt
|
get-content results.txt
|
||||||
|
|
Загрузка…
Ссылка в новой задаче