-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stress development maturity updates (#3481)
* Support local addons path override in stress test deployment * Support username based deployId in local stress deployment * Fix network chaos example * Add stress test example release ci * Support WhatIf in stress infrastructure provision script * Fix image ref issues in powershell template * Add stress cluster provision and validation pipeline * Simplify provision pipeline yaml and enable sub config/sp auth * Fix chart.lock local reference in stress example * Simplify stress user detection Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com> * Run helm plugin add with helper * Use mms pool for stress test release * Fix default parameter set for stress cluster provision script * Add WhatIf support to ps module install helper function Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
- Loading branch information
1 parent
19ee48d
commit 552b521
Showing
16 changed files
with
308 additions
and
124 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pr: none | ||
|
||
trigger: none | ||
|
||
parameters: | ||
- name: Environment | ||
type: string | ||
default: test | ||
values: | ||
- prod | ||
- test | ||
- name: WhatIf | ||
type: boolean | ||
default: false | ||
|
||
extends: | ||
template: /eng/pipelines/templates/jobs/stress-cluster-provision.yml | ||
parameters: | ||
Environment: ${{ parameters.Environment }} | ||
WhatIf: ${{ parameters.WhatIf }} |
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,28 @@ | ||
parameters: | ||
- name: Environment | ||
type: string | ||
- name: WhatIf | ||
type: boolean | ||
default: true | ||
|
||
jobs: | ||
- job: | ||
variables: | ||
- template: /eng/pipelines/templates/variables/globals.yml | ||
${{ if eq(parameters.WhatIf, true) }}: | ||
displayName: 'Validate Provision' | ||
${{ else }}: | ||
displayName: 'Provision' | ||
pool: | ||
name: 'azsdk-pool-mms-ubuntu-2004-general' | ||
vmImage: 'MMSUbuntu20.04' | ||
steps: | ||
- pwsh: | | ||
$subscriptionConfiguration = @' | ||
$(sub-config-azure-cloud-test-resources) | ||
'@ | ConvertFrom-Json -AsHashtable; | ||
tools/stress-cluster/cluster/provision.ps1 ` | ||
-WhatIf:$${{ parameters.WhatIf }} ` | ||
-Environment ${{ parameters.Environment }} ` | ||
@subscriptionConfiguration |
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,76 @@ | ||
parameters: | ||
- name: Environment | ||
type: string | ||
default: test | ||
- name: TestRepository | ||
type: string | ||
default: all | ||
- name: DeployFromBranchOrCommit | ||
type: string | ||
default: main | ||
|
||
jobs: | ||
- job: | ||
variables: | ||
- template: /eng/pipelines/templates/variables/globals.yml | ||
strategy: | ||
matrix: | ||
${{ if or(eq(parameters.TestRepository, 'examples'), eq(parameters.TestRepository, 'all')) }}: | ||
examples: | ||
Repository: Azure/azure-sdk-tools | ||
Filters: '@{ "example" = "true" }' | ||
${{ if or(eq(parameters.TestRepository, 'javascript'), eq(parameters.TestRepository, 'all')) }}: | ||
javascript: | ||
Repository: Azure/azure-sdk-for-js | ||
Filters: '@{}' | ||
${{ if or(eq(parameters.TestRepository, 'java'), eq(parameters.TestRepository, 'all')) }}: | ||
java: | ||
Repository: Azure/azure-sdk-for-java | ||
Filters: '@{}' | ||
${{ if or(eq(parameters.TestRepository, 'net'), eq(parameters.TestRepository, 'all')) }}: | ||
net: | ||
Repository: Azure/azure-sdk-for-net | ||
Filters: '@{}' | ||
${{ if or(eq(parameters.TestRepository, 'python'), eq(parameters.TestRepository, 'all')) }}: | ||
python: | ||
Repository: Azure/azure-sdk-for-python | ||
Filters: '@{}' | ||
${{ if or(eq(parameters.TestRepository, 'go'), eq(parameters.TestRepository, 'all')) }}: | ||
go: | ||
Repository: Azure/azure-sdk-for-go | ||
Filters: '@{}' | ||
pool: | ||
name: 'azsdk-pool-mms-ubuntu-2004-general' | ||
vmImage: 'MMSUbuntu20.04' | ||
steps: | ||
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml | ||
parameters: | ||
Repositories: | ||
- Name: $(Repository) | ||
Commitish: ${{ parameters.DeployFromBranchOrCommit }} | ||
WorkingDirectory: $(System.DefaultWorkingDirectory)/$(Repository) | ||
Paths: | ||
- '/*' | ||
- '!sdk/**/recordings/*' | ||
- '!sdk/**/test-recordings/*' | ||
- '!sdk/**/session-records/*' | ||
- '!sdk/**/SessionRecords/*' | ||
|
||
- task: AzureCLI@2 | ||
displayName: Build and Deploy Stress Tests | ||
inputs: | ||
${{ if eq(parameters.Environment, 'prod') }}: | ||
azureSubscription: Azure SDK Test Resources | ||
${{ if eq(parameters.Environment, 'test') }}: | ||
azureSubscription: Azure SDK Playground | ||
scriptType: pscore | ||
scriptPath: $(System.DefaultWorkingDirectory)/$(Repository)/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 | ||
arguments: | ||
-SearchDirectory '$(System.DefaultWorkingDirectory)/$(Repository)' | ||
-Filters $(Filters) | ||
-Environment '${{ parameters.Environment }}' | ||
-Repository '$(Agent.JobName)' | ||
-PushImages | ||
-Login | ||
-DeployId '$(Build.BuildNumber)' | ||
-CI |
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
2 changes: 1 addition & 1 deletion
2
tools/stress-cluster/chaos/examples/network-stress-example/templates/network_loss.yaml
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.