Pass non sparse parameters through to PR job matrix generator (#6386)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
parent
e0c5f27d6b
commit
494f9ff858
@ -100,6 +100,7 @@ function GeneratePRMatrixForBatch {
|
||||
$matrixResults = @()
|
||||
foreach ($matrixConfig in $matrixConfigs) {
|
||||
Write-Host "Generating config for $($matrixConfig.Path)"
|
||||
$nonSparse = $matrixConfig.PSObject.Properties['NonSparseParameters'] ? $matrixConfig.NonSparseParameters : @()
|
||||
|
||||
$matrixResults = @()
|
||||
if ($directBatch) {
|
||||
@ -108,7 +109,8 @@ function GeneratePRMatrixForBatch {
|
||||
-Selection $matrixConfig.Selection `
|
||||
-DisplayNameFilter $DisplayNameFilter `
|
||||
-Filters $Filters `
|
||||
-Replace $Replace
|
||||
-Replace $Replace `
|
||||
-NonSparseParameters $nonSparse
|
||||
|
||||
if ($matrixResults) {
|
||||
Write-Host "We have the following direct matrix results: "
|
||||
@ -121,7 +123,8 @@ function GeneratePRMatrixForBatch {
|
||||
-Selection $matrixConfig.Selection `
|
||||
-DisplayNameFilter $DisplayNameFilter `
|
||||
-Filters ($Filters + $IndirectFilters) `
|
||||
-Replace $Replace
|
||||
-Replace $Replace `
|
||||
-NonSparseParameters $nonSparse
|
||||
|
||||
if ($matrixResults) {
|
||||
Write-Host "We have the following indirect matrix results: "
|
||||
|
||||
@ -743,10 +743,11 @@ function Get4dMatrixIndex([int]$index, [Array]$dimensions) {
|
||||
function GenerateMatrixForConfig {
|
||||
param (
|
||||
[Parameter(Mandatory = $true)][string] $ConfigPath,
|
||||
[Parameter(Mandatory = $True)][string] $Selection,
|
||||
[Parameter(Mandatory = $true)][string] $Selection,
|
||||
[Parameter(Mandatory = $false)][string] $DisplayNameFilter,
|
||||
[Parameter(Mandatory = $false)][array] $Filters,
|
||||
[Parameter(Mandatory = $false)][array] $Replace
|
||||
[Parameter(Mandatory = $false)][array] $Replace,
|
||||
[Parameter(Mandatory = $false)][Array] $NonSparseParameters = @()
|
||||
)
|
||||
$matrixFile = Join-Path $PSScriptRoot ".." ".." ".." ".." $ConfigPath
|
||||
|
||||
@ -761,7 +762,8 @@ function GenerateMatrixForConfig {
|
||||
-selectFromMatrixType $Selection `
|
||||
-displayNameFilter $DisplayNameFilter `
|
||||
-filters $Filters `
|
||||
-replace $Replace
|
||||
-replace $Replace `
|
||||
-nonSparseParameters $NonSparseParameters
|
||||
|
||||
return , $matrix
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user