Skip to content
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

Merged
merged 8 commits into from
Oct 30, 2024
Merged

Create-PrJobMatrix #9281

merged 8 commits into from
Oct 30, 2024

Conversation

scbedd
Copy link
Member

@scbedd scbedd commented Oct 30, 2024

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 👍

@scbedd scbedd self-assigned this Oct 30, 2024
@scbedd scbedd requested a review from a team as a code owner October 30, 2024 00:54
…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."
Copy link
Member Author

@scbedd scbedd Oct 30, 2024

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.

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@scbedd scbedd merged commit 409d7eb into main Oct 30, 2024
12 checks passed
@scbedd scbedd deleted the Create-PrJobMatrix branch October 30, 2024 23:55
@@ -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) {
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants