Skip to content

Commit f812aaa

Browse files
azure-sdkbenbp
andauthored
Support regex/negative regex filters for stress test discovery. Add storage env defaults (#36420)
Co-authored-by: Ben Broderick Phillips <[email protected]>
1 parent 77403d2 commit f812aaa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

eng/common/scripts/stress-testing/find-all-stress-packages.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function ParseChart([string]$chartFile) {
7575

7676
function MatchesAnnotations([hashtable]$chart, [hashtable]$filters) {
7777
foreach ($filter in $filters.GetEnumerator()) {
78-
if (!$chart["annotations"] -or $chart["annotations"][$filter.Key] -ne $filter.Value) {
78+
if (!$chart["annotations"] -or $chart["annotations"][$filter.Key] -notmatch $filter.Value) {
7979
return $false
8080
}
8181
}

eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ function DeployStressTests(
122122
}
123123
$clusterGroup = 'rg-stress-cluster-prod'
124124
$subscription = 'Azure SDK Test Resources'
125+
} elseif ($environment -eq 'storage') {
126+
if ($clusterGroup -or $subscription) {
127+
Write-Warning "Overriding cluster group and subscription with defaults for 'storage' environment."
128+
}
129+
$clusterGroup = 'rg-stress-cluster-storage'
130+
$subscription = 'XClient'
125131
} elseif (!$clusterGroup -or !$subscription) {
126132
throw "clusterGroup and subscription parameters must be specified when deploying to an environment that is not pg or prod."
127133
}

0 commit comments

Comments
 (0)