-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create-PrJobMatrix
#9281
Create-PrJobMatrix
#9281
Conversation
…rix. they are treated as the default, versus some PRMatrix setting that is manually set
…return a value. it's very spammy in use for a mostly null value
@@ -170,10 +170,86 @@ function GetValueSafelyFrom-Yaml { | |||
$current = $current[$key] | |||
} | |||
else { | |||
Write-Host "The '$key' part of the path $($Keys -join "/") doesn't exist or is null." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JimSuplizio FYI I know you did like this output.
This is very spammy when invoking for MatrixConfigs
, as it is mostly null. I think that if the caller wants there to be a message about $null
, they can log it.
The following pipelines have been queued for testing: |
The following pipelines have been queued for testing: |
The following pipelines have been queued for testing: |
The following pipelines have been queued for testing: |
@@ -64,9 +64,7 @@ $packageProperties = Get-ChildItem -Recurse "$PackagePropertiesFolder" *.json ` | |||
|
|||
# set default matrix config for each package if there isn't an override | |||
$packageProperties | ForEach-Object { | |||
if (-not $_.CIMatrixConfigs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I blindly took this and it definitely doesn't work. It's because CIMatrixConfigs
isn't null, it's Empty Array.
This PR addresses a lot of the boilerplate code that would be necessary to distribute packages to one or multiple matrix files.
We allow our users to customize their platform using
ci.yml -> MatrixConfigs
params, but we don't honor those in the PR build (which is a single unified matrix).This PR allows the PR build to automatically use the correct matrix. Here it is in use.
Pardon the long runtime, I have further fixes from my other sdk-for-js branch that aren't there, which is why the builds are timing out. Nothing to do with this matrix logic 👍