Official build: Run loc and build concurrently - #12871
#12871Merged
ViktorHofer merged 1 commit intoDec 4, 2025
dotnet:maindotnet/msbuild:mainfrom
rainersigwald:parallel-loc-in-official-buildrainersigwald/msbuild:parallel-loc-in-official-buildCopy head branch name to clipboard
Merged
Official build: Run loc and build concurrently#12871ViktorHofer merged 1 commit intodotnet:maindotnet/msbuild:mainfrom rainersigwald:parallel-loc-in-official-buildrainersigwald/msbuild:parallel-loc-in-official-buildCopy head branch name to clipboard
ViktorHofer merged 1 commit into
dotnet:maindotnet/msbuild:mainfrom
rainersigwald:parallel-loc-in-official-buildrainersigwald/msbuild:parallel-loc-in-official-buildCopy head branch name to clipboard
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR optimizes the official build pipeline by enabling parallel execution of the localization and build stages, reducing overall build time by approximately 9 minutes. Previously, the build stage implicitly depended on the localization stage to complete first. By explicitly setting dependsOn: [] on the build stage, both stages can now run concurrently. The post-build stage will still wait for the build stage to complete (via the default validateDependsOn: [build] parameter in the post-build template), ensuring the correct sequencing of critical build artifacts.
Key Changes
- Added explicit empty dependency to the build stage to enable parallel execution with localization
- Localization stage continues to run independently and can complete at any time
- Post-build stage correctly waits for build stage but not localization
ViktorHofer
approved these changes
Dec 4, 2025
ViktorHofer
left a comment
Member
There was a problem hiding this comment.
Yeah I notice that as well
This was referenced Dec 6, 2025
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.
This should reduce our official build time by ~9 minutes by moving the Localization step off the critical path.
Before:

https://dev.azure.com/devdiv/DevDiv/\_build/results?buildId=12889574 shows it working (though it required some additional tweaks to get the loc stuff to run at all on a branch that's not main or vs*):