Split x64/arm64 builds into parallel pipeline stages#14497
Open
Split x64/arm64 builds into parallel pipeline stages#14497
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR restructures the Azure Pipelines build flow to run x64 and arm64 builds in parallel so test execution can start as soon as the x64 build finishes, while packaging waits for both architectures.
Changes:
- Split the monolithic build stage into parallel
build_x64andbuild_arm64stages, and update test dependencies to only wait forbuild_x64. - Introduce a new
packagestage to produce the msixbundle/appxupload and NuGet artifacts after both builds complete. - Update CloudTest setup to install and test using the x64 MSI instead of the combined msixbundle.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/test/test-setup.ps1 | Adds MSI install/uninstall support alongside existing MSIX setup logic for tests. |
| cloudtest/TestGroup.xml.in | Switches CloudTest inputs from msixbundle to x64 MSI. |
| .pipelines/build-stage.yml | Splits build into parallel x64/arm64 stages and updates artifact outputs. |
| .pipelines/package-stage.yml | New packaging stage to bundle outputs from both builds and create NuGet/appxupload artifacts. |
| .pipelines/test-stage.yml | Makes tests depend only on build_x64. |
| .pipelines/flight-stage.yml | Updates flight stage dependencies and artifact source to the new package stage. |
| .pipelines/nuget-stage.yml | Updates NuGet publish stage to depend on/package artifacts from the new package stage. |
| .pipelines/wsl-build-pr.yml | Wires the new package stage into the PR pipeline. |
| .pipelines/wsl-build-pr-onebranch.yml | Wires the new package stage into the OneBranch PR pipeline. |
| .pipelines/wsl-build-nightly-onebranch.yml | Wires the new package stage into the nightly OneBranch pipeline. |
| .pipelines/wsl-build-release-onebranch.yml | Wires the new package stage into the release OneBranch pipeline. |
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
.pipelines/build-stage.yml:60
- In the new
checksstage, the first job is declared as- job:without an identifier. Azure Pipelines requires each job to have a name (e.g.,job: checks) and this will fail YAML compilation as-is.
jobs:
- job:
displayName: "Formatting & localization checks"
timeoutInMinutes: 30
3f8148b to
ee56eac
Compare
ee56eac to
09f3cc3
Compare
168b58b to
83741bf
Compare
2792cbd to
769b30c
Compare
769b30c to
1c1c0ce
Compare
1c1c0ce to
60653db
Compare
c2105c0 to
078ce32
Compare
078ce32 to
c2c647d
Compare
c2c647d to
e9d452f
Compare
6f1f719 to
081385e
Compare
Restructure the CI/CD pipeline to build x64 and arm64 in parallel instead of sequentially, reducing end-to-end build time. Pipeline shapes: - PR: build_x64 ∥ build_arm64 → test (uses installer.msix directly) - Nightly: build_x64 ∥ build_arm64 → package → test (dev-cert bundle) - Release: build_x64 ∥ build_arm64 → package → test (ESRP-signed bundle) Key changes: - Extract shared build-job.yml template parameterized by platform - Add package-stage.yml that creates msixbundle from both platform artifacts, ESRP-signs for release, dev-cert signs for nightly - PR tests run immediately after x64 build using installer.msix (no package stage, no bundle needed) - Release/nightly tests wait for the package stage and test the real signed bundle that gets published - CloudTest configs are parameterized: release tests pull the bundle from the [package] artifact, PR tests use installer.msix from [drop] - arm64 + formatting checks always run in parallel with x64 but don't block the PR test gate - CodeQL runs in the arm64 stage (off the critical path) - flight-stage and nuget-stage updated for new stage names
081385e to
45e246b
Compare
44e026c to
bc7c330
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restructure the CI/CD pipeline to build x64 and arm64 in parallel instead of sequentially, reducing end-to-end build time.
Pipeline shapes
PR:
build_x64 ∥ build_arm64 → test(tests use installer.msix directly)Nightly:
build_x64 ∥ build_arm64 → package → test(dev-cert signed bundle)Release:
build_x64 ∥ build_arm64 → package → test(ESRP-signed bundle)Key changes
build-job.ymltemplate parameterized by platformpackage-stage.ymlthat creates msixbundle from both platform artifacts, ESRP-signs for release, dev-cert signs for nightlyinstaller.msix(no package stage, no bundle needed)[package]artifact, PR tests useinstaller.msixfrom[drop]flight-stageandnuget-stageupdated for new stage names