File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
eng/common/scripts/stress-testing Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,21 @@ function FindStressPackages(
4848
4949 VerifyAddonsVersion $chart $chartFile
5050
51+ # Default to "sparse" matrix selection type, unless a default is specified
52+ # in Chart.yaml annotations, or an override is passed in from the command line
53+ $selection = if ($MatrixSelection ) {
54+ $MatrixSelection
55+ } elseif ($chart [' annotations' ] -and $chart [' annotations' ][' matrixSelection' ]) {
56+ $chart [' annotations' ][' matrixSelection' ]
57+ } else {
58+ " sparse"
59+ }
60+
5161 $matrixFilePath = (Join-Path $chartFile.Directory.FullName $MatrixFileName )
5262 if (Test-Path $matrixFilePath ) {
5363 GenerateScenarioMatrix `
5464 - matrixFilePath $matrixFilePath `
55- - Selection $MatrixSelection `
65+ - Selection $selection `
5666 - DisplayNameFilter $MatrixDisplayNameFilter `
5767 - Filters $MatrixFilters `
5868 -Replace $MatrixReplace `
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ function DeployStressTests(
103103 [Parameter (Mandatory = $False )][switch ]$Template ,
104104 [Parameter (Mandatory = $False )][switch ]$RetryFailedTests ,
105105 [Parameter (Mandatory = $False )][string ]$MatrixFileName ,
106- [Parameter (Mandatory = $False )][string ]$MatrixSelection = " sparse " ,
106+ [Parameter (Mandatory = $False )][string ]$MatrixSelection ,
107107 [Parameter (Mandatory = $False )][string ]$MatrixDisplayNameFilter ,
108108 [Parameter (Mandatory = $False )][array ]$MatrixFilters ,
109109 [Parameter (Mandatory = $False )][array ]$MatrixReplace ,
You can’t perform that action at this time.
0 commit comments