Skip to content

Move cross-AOT legs into shared SDK job matrix - #55479

Merged
baronfel merged 2 commits into
mainfrom
michaelsimons-move-aot-legs-matrix
Jul 27, 2026
Merged

baronfel merged 2 commits into
mainfrom
michaelsimons-move-aot-legs-matrix

Conversation

@MichaelSimons

@MichaelSimons MichaelSimons commented Jul 27, 2026 •

Copy link
Copy Markdown
Member

Summary

This change encapsulates the cross-architecture AOT legs in the shared sdk-job-matrix instead of defining those legs directly in the top-level CI/PR pipelines.

Why

The AOT legs run on the same OS pools as the rest of the matrix jobs. Keeping those legs inside the shared matrix improves maintainability by removing duplicated leg definitions from .vsts-ci.yml and .vsts-pr.yml.

This also helps ensure CI and PR continue to run the same job legs because those legs now come from one shared definition.

What changed

  • Added cross-AOT job parameter sets directly to eng/pipelines/templates/jobs/sdk-job-matrix.yml:
    • Windows AOT cross-build (win-arm64, build-only)
    • Linux AOT cross-build (linux-arm64 via azureLinuxCrossArm64, build-only)
    • macOS AOT cross-build (osx-arm64 with cross-build)
  • Removed the duplicated standalone AOT matrix-template invocations from:
    • .vsts-pr.yml
    • .vsts-ci.yml
  • Linux AOT cross-build uses the default job timeout; this leg is currently taking roughly the same amount of time as other legs so there is no reason for an extended timeout.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 0cf84acb-d2e5-4370-9c9f-810695a6caeb
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@baronfel

Copy link
Copy Markdown
Member

Nice simplification!

@MichaelSimons
MichaelSimons marked this pull request as ready for review July 27, 2026 14:26
@MichaelSimons
MichaelSimons requested a review from MiYanni as a code owner July 27, 2026 14:26
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR centralizes the cross-architecture NativeAOT (“AOT”) build legs inside the shared sdk-job-matrix template so that PR and CI pipelines consume the same AOT leg definitions without duplicating template invocations.

Changes:

  • Added Windows (win-arm64), Linux (linux-arm64 via azureLinuxCrossArm64), and macOS (osx-arm64) cross-AOT parameter sets to eng/pipelines/templates/jobs/sdk-job-matrix.yml.
  • Removed the standalone per-pipeline AOT matrix-template invocations from .vsts-pr.yml and .vsts-ci.yml.
  • Dropped the explicit extended timeout previously used for the Linux arm64 AOT cross-build leg, relying on the shared job defaults.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
eng/pipelines/templates/jobs/sdk-job-matrix.yml Adds the cross-AOT legs to the shared OS job parameter set lists so they’re generated consistently wherever the template is used.
.vsts-pr.yml Removes duplicated AOT leg template invocations; PR legs now come from the shared matrix definition.
.vsts-ci.yml Removes duplicated conditional AOT leg invocations for internal PR/test builds; AOT legs now flow from the shared matrix.

@baronfel

Copy link
Copy Markdown
Member

Looks like many legs failed due to

Value cannot be null. (Parameter 'ContainerId')

@MichaelSimons

Copy link
Copy Markdown
Member Author

Looks like many legs failed due to

Value cannot be null. (Parameter 'ContainerId')

I don't know what is going on, I think those are from the run that was cancelled after marking this as ready for review. All of the jobs are currently running in https://dev.azure.com/dnceng-public/public/_build/results?buildId=1528244&view=results.

Use OS + architecture before category so jobs group by architecture and categories sort consistently within each group.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 0cf84acb-d2e5-4370-9c9f-810695a6caeb
@MichaelSimons

Copy link
Copy Markdown
Member Author

I pushed a small change to update the ordering to be OS/Arch/Category.

image

@baronfel
baronfel merged commit e5b5609 into main Jul 27, 2026
28 checks passed
@baronfel
baronfel deleted the michaelsimons-move-aot-legs-matrix branch July 27, 2026 16:01
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants