Skip to content

Commit 8b38e23

Browse files
scbeddazure-sdk
authored andcommitted
allow indirect packages to run the full matrix, instead of being forced to sparse
1 parent 7230f97 commit 8b38e23

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

eng/common/pipelines/templates/jobs/generate-job-matrix.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ parameters:
5454
- name: PRMatrixIndirectFilters
5555
type: object
5656
default: []
57+
- name: PRMatrixSparseIndirect
58+
type: boolean
59+
default: true
5760
# Mappings to OS name required at template compile time by 1es pipeline templates
5861
- name: Pools
5962
type: object
@@ -142,7 +145,8 @@ jobs:
142145
-Filters '${{ join(''',''', parameters.MatrixFilters) }}', 'container=^$', 'SupportedClouds=^$|${{ parameters.CloudConfig.Cloud }}', 'Pool=${{ pool.filter }}' `
143146
-IndirectFilters '${{ join(''',''', parameters.PRMatrixIndirectFilters) }}' `
144147
-Replace '${{ join(''',''', parameters.MatrixReplace) }}' `
145-
-PackagesPerPRJob ${{ parameters.PRJobBatchSize }}
148+
-PackagesPerPRJob ${{ parameters.PRJobBatchSize }} `
149+
-SparseIndirect $${{ parameters.PRMatrixSparseIndirect }}
146150
displayName: Create ${{ pool.name }} PR Matrix
147151
name: vm_job_matrix_pr_${{ pool.name }}
148152

eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function QueuePop([ref]$queue) {
7474
function GeneratePRMatrixForBatch {
7575
param (
7676
[Parameter(Mandatory = $true)][array] $Packages,
77-
[Parameter(Mandatory = $true)][bool] $FullSparseMatrix
77+
[Parameter(Mandatory = $false)][bool] $FullSparseMatrix = $false
7878
)
7979

8080
$OverallResult = @()
@@ -159,7 +159,7 @@ function GeneratePRMatrixForBatch {
159159
}
160160

161161
if ($batchSuffixNecessary) {
162-
$outputItem["name"] = $outputItem["name"] + "$batchPrefix$batchCounter"
162+
$outputItem["name"] = $outputItem["name"] + "$batchNamePrefix$batchCounter"
163163
}
164164

165165
$OverallResult += $outputItem
@@ -184,7 +184,7 @@ function GeneratePRMatrixForBatch {
184184
}
185185

186186
if ($batchSuffixNecessary) {
187-
$outputItem["name"] = $outputItem["name"] + "_ib$batchCounter"
187+
$outputItem["name"] = $outputItem["name"] + "_$batchNamePrefix$batchCounter"
188188
}
189189
# now we need to take an item from the front of the matrix results, clone it, and add it to the back of the matrix results
190190
# we will add the cloned version to OverallResult

0 commit comments

Comments
 (0)